Thanks for all the changes! On Fri, Apr 16, 2010 at 4:00 PM, Barry Warsaw <ba...@python.org> wrote: > On Apr 15, 2010, at 08:01 PM, Guido van Rossum wrote: >>Hm. I wish there was a way to find out whether the bytecode (or >>whatever) actually *was* read from this file. __file__ in Python 2 >>supports this (though not in Python 3). > > Do you have a use case for that? It might be interesting to know, but I can't > think of a good way to infer that from __file__ and __cached__, or of a good > way to expose that on module objects. Of course, it would be totally Python > implementation dependent too.
The only use case I can think of is a unit test that would indirectly assess that bytecode was (or wasn't) read in specific conditions. You can safely ignore this use case. -- --Guido van Rossum (python.org/~guido) _______________________________________________ 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