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

2009-11-02 Thread Andreas Roehler
... Hi Rustom, seems I have a ipython-bug here. with print 3 * 4 in foo.py I get the correct result only first time in a separate buffer without ipython. Afterwards always strange output: IPython 0.8.1 -- An enhanced Interactive Python. object? - Details about 'object'. ?object also

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

2009-10-23 Thread Rustom Mody
On Tue, Oct 20, 2009 at 1:59 PM, Andreas Roehler andreas.roeh...@online.dewrote: 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

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

2009-10-23 Thread Rustom Mody
On Fri, Oct 23, 2009 at 12:50 AM, Andreas Roehler andreas.roeh...@online.de wrote: Sorry. Simply tried to catch the execution of your form with edebug. The ways I tried, it wasn't called. Ok -- Here goes 1. Take some trivial python file (say foo.py) in python-mode A single line x = 1 will

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

2009-10-22 Thread Andreas Roehler
Rustom Mody wrote: On Tue, Oct 20, 2009 at 1:59 PM, Andreas Roehler andreas.roeh...@online.de mailto:andreas.roeh...@online.de wrote: Rustom wrote: (cmd (format exec(compile(open('%s').read(), '%s', 'exec')) # PYTHON-MODE\n filename filename))) For me both of your variants

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

2009-10-22 Thread Andreas Roehler
Rustom wrote: On Thu, Oct 22, 2009 at 8:32 PM, Andreas Roehler andreas.roeh...@online.dewrote: ... Rustom wrote: (cmd (format exec(compile(open('%s').read(), '%s', 'exec')) # PYTHON-MODE\n filename filename))) For me both of your variants are working,