[IPython-User] bug with question marks in comments?

Skipper Seabold jsseabold@gmail....
Sat Jun 23 11:32:35 CDT 2012


I am able to reproduce this with the latest master. Can anyone
reproduce? Known issue? If I have a function with a line that ends in
a commented out question mark I get an error when using paste magic.

Ie., this code

def func():
    if True: #am i true?
        a = 3

if copied and pasted into the IPython interpreter via paste looks like this

[39]: paste
def func():
    if True: #am i true?
        a = 3
## -- End pasted text --
Object `if` not found.


More information about the IPython-User mailing list