ipython / ipython/ipython

Incorrect parsing when executing %debug print('m n')

Đang mở
#8,136 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
core
Ngôn ngữ chính
Python
Star
16.8k
Fork
4.5k
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
6

Mô tả

II ran into this issue with a more complicated command and distilled it to this testcase. Other print commands, for example `%debug print('mn')` without the space can be debugged. Also, any other function instead of `print` yields the same result:

```
$ sage -ipython
Python 2.7.8 (default, Feb 15 2015, 03:39:19)
Type "copyright", "credits" or "license" for more information.

IPython 3.0.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.

In [1]: %debug print('m n')
NOTE: Enter 'c' at the ipdb> prompt to continue execution.
---------------------------------------------------------------------------
SyntaxError Traceback (most recent call last)
SyntaxError: EOL while scanning string literal (, line 1)
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.