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 ms
Recipients ms
Date 2008-06-24.20:45:44
SpamBayes Score 0.16837011
Marked as misclassified No
Message-id <1214340347.28.0.744958218652.issue3192@psf.upfronthosting.co.za>
In-reply-to
Content
In 2.5, exec(open(filename)), where filename refers to a file with
python code, executes the code.
In 2.5, open returns an open file, but in 3.0, open returns a stream,
and so exec (which wants "a string, file, or code object, not
TextIOWrapper") returns an error. exec should probably be able to handle
a stream.
History
Date User Action Args
2008-06-24 20:45:47mssetspambayes_score: 0.16837 -> 0.16837011
recipients: + ms
2008-06-24 20:45:47mssetspambayes_score: 0.16837 -> 0.16837
messageid: <1214340347.28.0.744958218652.issue3192@psf.upfronthosting.co.za>
2008-06-24 20:45:45mslinkissue3192 messages
2008-06-24 20:45:45mscreate