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

2009-10-17 Thread Barry Warsaw
On Oct 17, 2009, at 11:54 AM, Andreas Roehler wrote: (defcustom py-adressed-python-version "" "*With different Python versions, changes have been made, which affect python execution as editing likewise. If a version is specified here, python-mode will adapt its proceeding to it. Otherwise

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

2009-10-17 Thread Andreas Roehler
Rustom wrote: > Public bug reported: > > python 3 has removed execfile > This makes python-mode stop working > > In function py-execute-file changing the line > > (cmd (format "execfile(r'%s') # PYTHON-MODE\n" filename))) > > to > (cmd (format "exec(open(r'%s').read()) # PYTHON-MODE\n" filename