On Tue, Oct 20, 2009 at 1:59 PM, Andreas Roehler
<andreas.roeh...@online.de>wrote:

> Rustom wrote:
> > (cmd (format "exec(compile(open('%s').read(), '%s', 'exec')) #
> > PYTHON-MODE\n" filename filename)))
> What puzzles me still is a pure python question -
>
> do we need this `read()' here, i.e. if a file opened is
> delivered to exec, will it not being read anyway?
>
> Thanks
>
>
See Guido's 2 to 3 doc
http://docs.python.org/dev/3.0/whatsnew/3.0.html#removed-syntax
says stream argument not taken
_______________________________________________
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode

Reply via email to