RE: Is there a better way of listing Windows shares other than us ing os.listdir

2004-12-31 Thread Doran_Dermot
Hi David, Thanks for the bit of code on finding shares! I'd been using something a bit different (win32com.client stuff) but your code looks better. I've found that win32file.FindFilesIterator (suggested to me by another person on this mailing list) allows the gui to remain responsive. Using

Is there a better way of listing Windows shares other than using os.listdir

2004-12-30 Thread Doran_Dermot
Hi All, I'm currently using os.listdir to obtain the contents of some slow Windows shares. I think I've seen another way of doing this using the win32 library but I can't find the example anymore. My main problem with using os.listdir is that it hangs my gui application. The tread running the

RE: Is there a better way of listing Windows shares other than us ing os.listdir

2004-12-30 Thread Doran_Dermot
Hi Tim, That does the trick! Now my gui remains responsive during the long search time. Thanks! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Golden Sent: 30 December 2004 10:54 To: python-list@python.org Subject: RE: Is there a better way of

RE: Cool object trick

2004-12-16 Thread Doran_Dermot
I rather like it! I prefer writing obj.spam to obj[spam]! I wonder if there is a technical downside to this use of Python? P.S. Certainly makes writing 'print obj.spam, obj.spam, obj.eggs, obj.bacon, obj.sausages, and, obj.spam' a lot easier ;-) -Original Message- From: [EMAIL

RE: KeyError

2004-12-16 Thread Doran_Dermot
If a default value would be acceptable to the application (which is quite likely), then this would be a much cleaner solution. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roland Heiber Sent: 16 December 2004 10:28 To: [EMAIL PROTECTED] Subject: Re:

RE: Import trouble

2004-12-15 Thread Doran_Dermot
Hi Craig, How about creating your own module that does this in __init__.py. You could create a directory (Eg craig_init) and in that directory create the file __init__.py containing the following code: try: import libxml except: # Blah, blah, blah. A clever bit of code goes here! WARNING:

RE: AsmL/Python relationship? Anyone using AsmL? What for?

2004-12-15 Thread Doran_Dermot
Hi Claudio, If I recall correctly Guido van Rossum (creator/father of Python) did not mention AsmL as being an influence. Also AsmL appears to be more recent (circa .NET epoch) than Python (circa 1991). Hence, I would suggest that the Foundations of Software Engineering group at Microsoft have

RE: Python mascot proposal

2004-12-14 Thread Doran_Dermot
Here are my suggestions: 1. A larch (nice play on early Java) 2. Shoebox in middle o' road! (totally meaningless) 3. A Python sitting in a comfy chair (indicating ease-of-use) 4. A larch All very Pythonic and non-controversial (unless you're a member of the Prevention of Cruelty to Shoeboxes

RE: Python IDE

2004-12-14 Thread Doran_Dermot
If you want to spend the $35 I can recommend WingIDE. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Sent: 14 December 2004 16:37 To: [EMAIL PROTECTED] Subject: Python IDE What IDE's do y'all recommend for Python? I'm using PythonWin atm, but

RE: Regular Expression Problem...

2004-12-01 Thread Doran_Dermot
You could try the following: regex = re.compile([\$]\w+, re.IGNORECASE) I've only done a bit of testing. Maybe somebody has a better solution. Cheers!! Dermot. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: 01 December 2004