Skip to contentSkip to conversation

org.oe.dev python 2.5.1 ship sitecustomize.py that enables some convenient features when

oe-commits Paul Sokolovsky 2 participants 2 messages Jan 24, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

This is a forwarded message
From: mickeyl commit <[email protected]>
To: [email protected]
Date: Tuesday, January 22, 2008, 6:03:49 PM
Subject: [oe-commits] org.oe.dev python 2.5.1 ship sitecustomize.py that enables some convenient features when

===8<==============Original message text===============
python 2.5.1 ship sitecustomize.py that enables some convenient features when working with the interactive interpreter: attribute completion and persistent command history

[]
============================================================

python/python-2.5.1/sitecustomize.py af970496467ab4f0fbef36bbcac4de27afc77306 +0 -0
@@ -0,0 +1,45 @@

[]
+def __enableReadlineSupport():
+ readline.parse_and_bind("tab: complete")
+ try:
+ readline.read_history_file( "/tmp/python-history-file.txt" )

Shouldn't this file be under ~/ instead?

[]

===8<===========End of original message text===========

Signature · 2 lines
Best regards,
 Paul                            mailto:[email protected]
#2 lore raw
Quoted 19 lines · On Thursday 24 January 2008 21:06:02 Paul Sokolovsky wrote:

This is a forwarded message
From: mickeyl commit <[email protected]>
To: [email protected]
Date: Tuesday, January 22, 2008, 6:03:49 PM
Subject: [oe-commits] org.oe.dev python 2.5.1 ship sitecustomize.py that enables some convenient features when

===8<==============Original message text=============== python 2.5.1 ship sitecustomize.py that enables some convenient features when working with the interactive interpreter: attribute completion and persistent command history

[]
============================================================
--- packages/python/python-2.5.1/sitecustomize.py af970496467ab4f0fbef36bbcac4de27afc77306 +++ packages/python/python-2.5.1/sitecustomize.py af970496467ab4f0fbef36bbcac4de27afc77306 @@ -0,0 +1,45 @@ []

Review

Quoted 6 lines
(quoted diff) +4 -0
+def __enableReadlineSupport():
+    readline.parse_and_bind("tab: complete")
+    try:
+        readline.read_history_file( "/tmp/python-history-file.txt" )
 
    Shouldn't this file be under ~/ instead?

Hmm, yes of course. This way all interpreter users share a history, which may not what we want. Thanks for spotting, I'll rewrite this tomorrow.

Best regards,

:M:

Signature · 1 line
Dr. Michael 'Mickey' Lauer | IT-Freelancer | http://www.vanille-media.de