Brett Cannon <br...@python.org> added the comment:

So the problem with the function is that had this been implemented in Python 
3.2 it already would be outdated thanks to the 3.3 change of storing the file 
size in the .pyc file, and simply changing the length of the sequence returned 
would probably break code.

I have thought about exposing something like this over the years, and I always 
come back to the conclusion that it is really touchy and the best you could do 
is pass in the data and info you have from the source and either raise the 
proper exception or return the code object/bytes.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15031>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to