This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients
Date 2007-08-03.20:26:16
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Arguably we don't need this feature any more.  The only reasonable way to implement it would be to slurp the entire contents of the file into a string and then exec that.  The caller might as well do this.  Alternatively one could use execfile() (which takes a filename instead of a stream).  The only advantage of using exec(<stream>) might be that it would deal with encoding declarations transparantly; but we should probably have a way to handle those somewhere in the library anyway, as it's also necessary for other tools (e.g. modulefinder.py, pyclbr.py and linecache.py).  Alternatively I'm not so sure that we will need to support encoding declarations forever -- I'm hoping that at some point UTF-8 and BOM+UTF-16 will take over the world.
History
Date User Action Args
2007-08-23 14:58:53adminlinkissue1762972 messages
2007-08-23 14:58:53admincreate