Message83858
martin> There is a much simpler solution to the problem:
martin> use exec(open(fn,"rb").read())
Ok... but there is the newline issue: (self quote) "exec() doesn't support
newline different than \n, see issue #4628".
And open_python() can be used for other usages than execfile() ;-)
Note: tokenize.open_python() is maybe not the best module and/or function
name. |
|
Date |
User |
Action |
Args |
2009-03-20 08:53:11 | vstinner | set | recipients:
+ vstinner, loewis |
2009-03-20 08:53:09 | vstinner | link | issue5524 messages |
2009-03-20 08:53:09 | vstinner | create | |
|