Re: Retrieving modification time of file class was declared in

2005-01-24 Thread Orlando Vazquez
Actually, what my comment wass supposed to say was "Checking the modification time of the file the Thread class was defined in", but I'm sure you understood what I meant. ;-) Orlando Vazquez wrote: [EMAIL PROTECTED] wrote: Assume I am using a class Foo. I want to find out the mo

Re: Retrieving modification time of file class was declared in

2005-01-24 Thread Orlando Vazquez
name = vars()[threading.Thread.__module__].__file__ >>> >>> mtime = os.path.getmtime(module_filename) >>> >>> print time.ctime(mtime) Sun Nov 14 20:29:42 2004 I hope that answer's your question :-) -- Orlando Vazquez -- http://mail.python.org/mailman/listinfo/python-list

Re: Another scripting language implemented into Python itself?

2005-01-24 Thread Orlando Vazquez
nguage is just domain-specific factors, e.g. if you need the extension language to be easily used non-programmers. Just a thought. -- Orlando Vazquez -- http://mail.python.org/mailman/listinfo/python-list

Re: re Insanity

2005-01-23 Thread Orlando Vazquez
Tim Daneliuk wrote: For some reason, I am having the hardest time doing something that should be obvious. (Note time of posting ;) Given an arbitrary string, I want to find each individual instance of text in the form: "[PROMPT:optional text]" I tried this: y=re.compile(r'\[PROMPT:.*\]') Whic