Le Fri, 30 Aug 2013 22:09:37 +1000, Nick Coghlan <ncogh...@gmail.com> a écrit : > On 30 August 2013 20:27, Andrew Svetlov <andrew.svet...@gmail.com> > wrote: > > I've filed http://bugs.python.org/issue18882 for this. > > I don't actually object to the addition, but is there any way that > "threading.enumerate()[0]" *won't* be the main thread?
enumerate() doesn't guarantee any ordering, and the underlying container is a dict (actually, there are two of them). > (subinterpreters, perhaps, but they're going to have trouble anyway, > since they won't have access to the real main thread) Ah, subinterpreters :-) cheers Antoine. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com