[Python-Dev] confusing exec error message in 3.0 (original) (raw)
Fredrik Lundh fredrik at pythonware.com
Wed Aug 27 20:21:21 CEST 2008
- Previous message: [Python-Dev] the explicit self
- Next message: [Python-Dev] confusing exec error message in 3.0
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
(using 3.0a4)
exec(open("file.py")) Traceback (most recent call last): File "", line 1, in 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)
- Previous message: [Python-Dev] the explicit self
- Next message: [Python-Dev] confusing exec error message in 3.0
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]