Re: Python vs. Lisp -- please explain

2006-02-23 Thread Peter Mayne
Torsten Bronger wrote: > Another example: is Java the bytecode, which is compiled from Java the language, interpreted or not? Even when the HotSpot JIT cuts in? >>> It is partly interpreted and partly compiled. That's why it's >>> faster than Python. >> But Python is partly interpr

Re: Python stdout and Win 2003

2006-02-23 Thread Philippe Martin
PS: I forgot to mention that some of the "print"s are made from wxPython timer events. Philippe Philippe Martin wrote: > Hi, > > I have a program at a customer's site that seems to have random problem > which eventually come down to not being able to read/write from serial > ports. > > I trap

Re: regular expresson for Unix and Dos Lineendings wanted

2006-02-23 Thread John Zenger
How about r"\s+[\n\r]+|\s+$" ? Franz Steinhaeusler wrote: > Hello, I need a regularexpression, which trims trailing whitespaces. > > While with unix line endings, it works; > but not with Window (Dos) CRLF's: > > import re retrailingwhitespace = re.compile('(?<=\S)[ \t]+$', re.MULTILI

Re: 'rar' is not recognized as an internal or external command��������

2006-02-23 Thread ���ϲ��
thank everyone!!! the code: import os import time source = [r'e:\temp\code',r'e:\temp\domains'] target_dir = r'e:\temp\bak' target = target_dir+time.strftime('%Y%m%d%H%M%S')+'.rar' rar_cmd = "D:\\Progra~1\\WinRAR\\rar.exe a -idcdp %s %s" % (target,' '.join(source)) print rar_cmd if os.system(rar_

Re: time.sleep(1) sometimes runs for 200 seconds under windows

2006-02-23 Thread Grant Edwards
On 2006-02-23, Paul Probert <[EMAIL PROTECTED]> wrote: >>In similar situation I would start to blame the hardware for the >>problem, so below a kind of checklist to go through: > > Thanks for the reply. I should have mentioned, this happens to just > about every machine in our collection of ab

Re: PyAtom, a Python module for creating Atom syndication feeds

2006-02-23 Thread Steve R. Hastings
I have edited PyAtom, and now it should be in better conformance with the PEP 8 guidelines. It is available from the same place as before: http://www.blarg.net/~steveha/pyatom.tar.gz -- Steve R. Hastings"Vita est" [EMAIL PROTECTED]http://www.blarg.net/~steveha -- http://mail.python.or

Re: CSV module and UNICODE

2006-02-23 Thread Rudy Schockaert
Thanks a lot Skip. Sure that this will help. Learned two things: how to do it and to look at the docs for 2.5 also. These samples are not in the 2.4.2 reference guide. RudyOn 2/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Rudy> I'm having problems writing unicode to a csv file.Rud

Re: time.sleep(1) sometimes runs for 200 seconds under windows

2006-02-23 Thread Paul Rubin
Dennis Lee Bieber <[EMAIL PROTECTED]> writes: > Any chance they all tend to have slow clocks, and are getting bitten > by a semi-random NTP time update; my machine tends to run the NTP update > at 7-day intervals (including time of day), counting from the last > successful synchronization. T

ls files --> list packer

2006-02-23 Thread kpp9c
I would like to use the power of Python to build some list structures for me. Namely i have organized a bunch of folders that have soundfiles in them and would like Python to slurp up all the .aif/.aiff (or .wav whatever) files in a given set of directories. My friend hacked up this is perl: $fil

Re: 'rar' is not recognized as an internal or external command��������

2006-02-23 Thread cn.popeye
os.chdir() ? thank you! -- "Dennis Lee Bieber" <[EMAIL PROTECTED]> news:[EMAIL PROTECTED] > On Fri, 24 Feb 2006 11:36:08 +0800, "Ê÷Éϲä»Ò" <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > thank everyone!!! > > > I'd had to run to work so couldn't test, b

Re: ls files --> list packer

2006-02-23 Thread kpp9c
and one example of a slightly fancier version would be a variation that looks recursively into subdirectories and makes separate lists for each subdirectory encountered. so if i had a directory called "~/snd/" and in "~/snd/" i had: "~/snd/one/" "~/snd/two/" "~/snd/three/" each with soundfiles

Re: ls files --> list packer

2006-02-23 Thread I V
kpp9c wrote: > Namely i have organized a bunch of folders that have soundfiles in them > and would like Python to slurp up all the .aif/.aiff (or .wav whatever) > files in a given set of directories. My friend hacked up this is perl: > > $files = `ls /snd/Public/*.aiff`; You could use posix.popen

Re: Using ElementTree to tidy up an XML string to my liking

2006-02-23 Thread Simon Dahlbacka
..I hope that you are aware that xml is *case sensitive* -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3