[Tutor] probando el email / mail test

2009-11-04 Thread rh00667
--- MENSAJE AUTOMATICO --- Estoy probando mi lista de contactos. Pueden ignorar este msg. Mis mejores deseos para todos. --- AUTOMATIC MESSAGE --- I'm testing my contact list. Please ignore this msg. My best wishes for all. ___ Tutor maillist - Tutor@p

Re: [Tutor] why is os.path.walk so slow?

2009-11-04 Thread Modulok
[snip] > I need to synchronize the files on my home and office machine and have > been using someone else's code for this to date but have been > frustrated by how slow it is in getting the information on files for > the mounted drive from my office machine... [/snip] Not to cut your coding projec

Re: [Tutor] trouble using 2to3.py

2009-11-04 Thread Richard D. Moores
On Wed, Nov 4, 2009 at 11:32, ALAN GAULD wrote: > You can do some pretty clever stuff with BAT files but frankly I wouldn't > bother. > Python can do almost all of the same things more elegantly and in most > cases faster using fewer resources. > Trying out a few loops and if/else type statements

Re: [Tutor] trouble using 2to3.py

2009-11-04 Thread ALAN GAULD
> > Yes, but I was talking about the DOS help utility not the Python one... > > Lots of info there, but for a .bat beginner it's hard to put it > together. I've put a couple of old books on batch files on hold at my > local library, and also found the XP Command-line reference A-Z at >

Re: [Tutor] trouble using 2to3.py

2009-11-04 Thread Richard D. Moores
On Wed, Nov 4, 2009 at 00:31, ALAN GAULD wrote: >> > Start the cmd shell in windows and run the help command to get a list of >> > things you can put in to spruce them up. >> >> Sorry, put in where? > > In bat files, that's what you were discussing :-) >> Wow, the "online help utility" for 3.1 loo

Re: [Tutor] PolyRange -- iterator

2009-11-04 Thread Stefan Lesicnik
On Wed, Nov 4, 2009 at 7:17 PM, Hugo Arts wrote: > On Wed, Nov 4, 2009 at 5:38 PM, spir wrote: >> Hello, >> >> as I was crawling in endless complications with unadequate ranges, I decided >> to create a "PolyRange" type able to hold arbitrary many "sub-range"; which >> means finally a big range

Re: [Tutor] PolyRange -- iterator

2009-11-04 Thread Hugo Arts
On Wed, Nov 4, 2009 at 5:38 PM, spir wrote: > Hello, > > as I was crawling in endless complications with unadequate ranges, I decided > to create a "PolyRange" type able to hold arbitrary many "sub-range"; which > means finally a big range with wholes in it. This whole stuff again to cope > wit

[Tutor] PolyRange -- iterator

2009-11-04 Thread spir
Hello, as I was crawling in endless complications with unadequate ranges, I decided to create a "PolyRange" type able to hold arbitrary many "sub-range"; which means finally a big range with wholes in it. This whole stuff again to cope with unicode -- a poly-range would be able to hold a range

Re: [Tutor] why is os.path.walk so slow?

2009-11-04 Thread Hugo Arts
On Wed, Nov 4, 2009 at 4:56 PM, Wayne Werner wrote: > On Wed, Nov 4, 2009 at 6:16 AM, Garry Willgoose > wrote: >> >> >> >> This is very fast for a directory on my local machine but significantly >> slower on the remote machine. Not surprising but I would have expected that >> the run time for th

Re: [Tutor] why is os.path.walk so slow?

2009-11-04 Thread Wayne Werner
On Wed, Nov 4, 2009 at 6:16 AM, Garry Willgoose < garry.willgo...@newcastle.edu.au> wrote: > > > This is very fast for a directory on my local machine but significantly > slower on the remote machine. Not surprising but I would have expected that > the run time for the remote directory would be l

Re: [Tutor] trouble using 2to3.py

2009-11-04 Thread Tim Golden
Dave Angel wrote: I've thought of using hard links (using fsutil.exe, in case anyone else is interested), but I keep my scripts and batch files, as well as small utilities on a separate drive partition from the one that has my OS and installed programs. And hard links don't work across separa

[Tutor] why is os.path.walk so slow?

2009-11-04 Thread Garry Willgoose
I need to synchronize the files on my home and office machine and have been using someone else's code for this to date but have been frustrated by how slow it is in getting the information on files for the mounted drive from my office machine so I thought I'd experiment with a python facili

Re: [Tutor] idiomatic way of merging two dictionaries

2009-11-04 Thread Lie Ryan
Amit Sethi wrote: Hi , I am trying to merge(I am not sure if that is the right term) dictionaries like this dict1 ={'a':4,'b':3,'v':7,'h':4} dict2={'a':5,'v':4,'k':3} dict3 would be {'a':[4,5],'b':[3,4],'v':[7,4],'k':[0,3],'h':[4,0]} I can't see what you're trying to do there. is 'b' suppose

Re: [Tutor] idiomatic way of merging two dictionaries

2009-11-04 Thread Alan Gauld
"Amit Sethi" wrote Hi , I am trying to merge(I am not sure if that is the right term) dictionaries like this dict1 ={'a':4,'b':3,'v':7,'h':4} dict2={'a':5,'v':4,'k':3} dict3 would be {'a':[4,5],'b':[3,4],'v':[7,4],'k':[0,3],'h':[4,0]} I don't know how "idiomatic" it is but I'd probably just

Re: [Tutor] trouble using 2to3.py

2009-11-04 Thread ALAN GAULD
> >> My sincere thanks to Dave Angel and Alan Gauld for their clear > >> explanations of .bat files and how to use them. I've already made > > > > Start the cmd shell in windows and run the help command to get a list of > > things you can put in to spruce them up. > > Sorry, put in where? In ba