A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-August/082052.html below:

[Python-Dev] confusing exec error message in 3.0

[Python-Dev] confusing exec error message in 3.0 [Python-Dev] confusing exec error message in 3.0Fredrik Lundh fredrik at pythonware.com
Wed Aug 27 20:21:21 CEST 2008
(using 3.0a4)

 >>> exec(open("file.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

so what's "file" referring to here?

(the above works under 2.5, of course)

</F>

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4