Re: ipython / vs \ in readline on MS Windows (and ipython help grepper)

2009-03-11 Thread Tim Roberts
bdb112 wrote: > >Q1/ I run a standard python ditribution with ipython and readline >under cygwin. The tab filename completion works fine in the OS (bash >shell) as expected, and tab filename completion at the ipython command >line works, but with MS style path separators (backslash: run examples

Re: A Dangling Tk Entry

2009-03-11 Thread W. eWatson
I happened to notice that BJ and Rhondi started a small subthread to this, so I thought I'd explore it. It led to interesting things, but not for its content. I reviewed some things. I'll do you the courtesy or wrapping this up. I'll get straight to the point and be a minimal as possible in my

Re: Question on periods in strings

2009-03-11 Thread John Yeung
On Mar 11, 9:42 pm, "Philip Bloom" wrote: > #test A > #runs in 5.8 seconds. > from datetime import datetime > testvar2='9a00' > startTime = datetime.now() > filehandle=open('testwriting.txt','w') > for var in range(1000): >     filehandle.write(testvar2) > filehandle.close() > print (datetime.

Re: nohup and os.system

2009-03-11 Thread Cameron Simpson
On 11Mar2009 21:05, Gideon wrote: | I've got a python script, batch.py that, amongst other things, | executes commands: | | os.system('cmd1') | os.system('cmd2') | | now, these programs output certain information at the command line, | and if i execute | | ./batch.py | | it shows up as I would

Re: nohup and os.system

2009-03-11 Thread Cameron Simpson
On 12Mar2009 16:37, I wrote: | With nohup, the outputs of cmd1 and cmd2 are going to the nohup.out | file, and thus are set to block buffering. Unless cmd1 and cmd2 have | special command line switches to get them to line buffer (or no-buffer) | your only recourse is to attach them to terminals, th

Re: Why is lambda allowed as a key in a dict?

2009-03-11 Thread Lie Ryan
Terry Reedy wrote: r wrote: On Mar 11, 3:40 pm, Craig Allen wrote: On Mar 10, 1:39 pm, Paul Rubin wrote: Identical strings don't necessarily have the same id: A more verbose way to put this is "Requesting a string with a value that is the same an an existi

NameError: name 'execfile' is not defined

2009-03-11 Thread Henrik Bechmann
Newbie issue: I downloaded http://www.python.org/download/releases/3.0.1/ (windows insaller), opened the interpreter, wrote a print "Hello World" program in helloworld.py, and in the interpreter typed execfile("helloworld.py") Got back NameError: name 'execfile' is not defined (following tutor

<    1   2