From: | Daniel Troeder <daniel@×××××××××.com> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] Python+readline? | ||
Date: | Sat, 28 Jan 2012 23:12:50 | ||
Message-Id: | 4F248093.2020503@admin-box.com | ||
In Reply to: | [gentoo-user] Python+readline? by Walter Dnes |
1 | On 28.01.2012 10:01, Walter Dnes wrote: |
2 | > I've enabled the readline flag for the python build, but it doesn't |
3 | > seem to work. Are there any other settings I'm missing? |
4 | > |
5 | daniel@moja ~ $ cat .pythonstartup |
6 | #!/usr/bin/python |
7 | try: |
8 | import readline |
9 | except ImportError: |
10 | print "Module readline not available." |
11 | else: |
12 | import rlcompleter |
13 | readline.parse_and_bind("tab: complete") |
14 | |
15 | |
16 | -- |
17 | PGP key @ http://pgpkeys.pca.dfn.de/pks/lookup?search=0xBB9D4887&op=get |
18 | # gpg --recv-keys --keyserver hkp://subkeys.pgp.net 0xBB9D4887 |
File name | MIME type |
---|---|
signature.asc | application/pgp-signature |