On 1/1/07, Brett Cannon <[EMAIL PROTECTED]> wrote: > * thread > + People should use 'threading' instead.
'threading' has no equivalent to 'thread.get_ident()'. If this function is ported, I'd support renaming 'thread'. You need it to print "Thread #123 doing bla bla bla" messages, to distinguish threads in a thread pool, to keep track of thread-local data, etc. The threading.Thread name isn't the same thing because it's an arbitrary string, not a guaranteed-unique integer, and the routine creating the threads may be third-party and not setting unique identifiers. > * stat > + ``os.stat`` now returns a tuple with attributes. Certain things in 'stat' do not exist elsewhere: S_ISCHR, S_ISBLK, S_ISFIFO, S_ISSOCK. These could be made into more friendly os.path.is*() functions that take the pathname rather than the st_mode. I've never used them, but it would be a pity to make people calculate the bitmasks manually. > * fileinput +1 to leave it. -- Mike Orr <[EMAIL PROTECTED]> _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
