Adding GNU Readline after installation?

S

snewman18

I compiled Python from source on a bunch of my development machines
without enabling the readline modules. Is it possible to add readline
support after installation?

I really just want to get my "up arrow" history working...
 
U

Uwe Grauer

I compiled Python from source on a bunch of my development machines
without enabling the readline modules. Is it possible to add readline
support after installation?

I really just want to get my "up arrow" history working...

No.
You have to uncomment readline support in Modules/Setup, call make
again and do a reinstall.

Uwe
 
M

Michele Simionato

I compiled Python from source on a bunch of my development machines
without enabling the readline modules. Is it possible to add readline
support after installation?

I really just want to get my "up arrow" history working...

Google for "rlwrap".

Michele Simionato
 
S

snewman18

I really just want to get my "up arrow" history working...
Google for "rlwrap".

Thanks for the rlwrap tip - much easier than reinstalling Python (for
the short term). For anyone interested, I installed it and put this in
my .bashrc file:

alias python='rlwrap python'

Now I have my up-arrow history functionality. Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top