when using py-execute-buffer, the line count Incorrect
Bug #925586 reported by
lowstz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
Medium
|
Andreas Roehler |
Bug Description
Hi:
I write “from __future__import division ” in the first line, but it counts as line 6.
>>> ## executing /usr/tmp/
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/tmp/
from __future__ import division
SyntaxError: from __future__ imports must occur at the beginning of the file
My .emacs config
(add-to-list 'load-path "~/.emacs.
(setq py-install-
(require 'python-mode)
Thanks,
Lowstz Chen.
Changed in python-mode: | |
assignee: | nobody → Andreas Roehler (a-roehler) |
milestone: | none → 6.0.5 |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
can you check out the current trunk and see if it's gone?
thanks for the report,
Andreas