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 nnorwitz
Recipients
Date 2007-08-12.17:12:04
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
exec() is documented to take an open file.  The error message also says it takes one, however:

>>> exec(open('nn.py'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: exec() arg 1 must be a string, file, or code object, not TextIOWrapper
History
Date User Action Args
2007-08-23 14:59:10adminlinkissue1772686 messages
2007-08-23 14:59:10admincreate