Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug handling Ellipsis #3061

Closed
enkore opened this issue Mar 23, 2013 · 1 comment
Closed

Bug handling Ellipsis #3061

enkore opened this issue Mar 23, 2013 · 1 comment
Milestone

Comments

@enkore
Copy link

enkore commented Mar 23, 2013

In [1]: Ellipsis is ...
Out[1]: True

In [2]: (...)
Out[2]: Ellipsis

In [3]: ...
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/usr/lib/python3.3/site-packages/IPython/core/prefilter.py in prefilter_lines(self, lines, continue_prompt)
    359                              for lnum, line in enumerate(llines) ])
    360         else:
--> 361             out = self.prefilter_line(llines[0], continue_prompt)
    362 
    363         return out

/usr/lib/python3.3/site-packages/IPython/core/prefilter.py in prefilter_line(self, line, continue_prompt)
    326         if not stripped:
    327             if not continue_prompt:
--> 328                 self.shell.displayhook.prompt_count -= 1
    329 
    330             return normal_handler.handle(line_info)

AttributeError: can't set attribute

The normal Python shell handles this properly:

>>> Ellipsis is ...
True
>>> (...)
Ellipsis
>>> ...
Ellipsis
@takluyver
Copy link
Member

This one has already been fixed by PR #2783, and it looks like @minrk has backported it for 0.13.2 in 1d9f2d9. So I'll close this; thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants