[Python-mode] [Bug 450552] Re: python-mode breaks for python 3

Rustom Mody rustompmody at gmail.com
Thu Oct 22 07:16:14 CEST 2009


On Tue, Oct 20, 2009 at 1:59 PM, Andreas Roehler
<andreas.roehler at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-mode/attachments/20091022/927b6d2b/attachment.htm>


More information about the Python-mode mailing list