all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Amir Teymuri" <amirteymuri@gmx.de>
To: help-gnu-emacs@gnu.org
Subject: Line number problem in python-mode Errors
Date: Sat, 1 Oct 2016 18:50:30 +0200	[thread overview]
Message-ID: <trinity-fd761d9e-a63b-4041-9724-86d3c6cad5d9-1475340630576@3capp-gmx-bs48> (raw)

   Hello,

   i am using emacs in python mode. There is a problem with the line
   numbers each time the python interpreter shows an Error:

   each time an error occurs inside my file.py, the error message shows
   always the actual line number + 1. Here is an example:
# file.py
1 from tst import *

# the interpreter error message:
>>> Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/home/amir/programming/python/c_m/lern.py", line 2, in <module>

AttributeError: 'module' object has no attribute 'foo'

   How can i fix this problem?


   Kind regards,

   Amir


             reply	other threads:[~2016-10-01 16:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-01 16:50 Amir Teymuri [this message]
2016-10-02 11:04 ` Line number problem in python-mode Errors Tomas Nordin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=trinity-fd761d9e-a63b-4041-9724-86d3c6cad5d9-1475340630576@3capp-gmx-bs48 \
    --to=amirteymuri@gmx.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.