Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #99200

Re: Traceback error

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From dieter <dieter@handshake.de>
Newsgroups comp.lang.python
Subject Re: Traceback error
Date Sat, 21 Nov 2015 08:31:13 +0100
Lines 18
Message-ID <mailman.31.1448091309.2291.python-list@python.org> (permalink)
References <e5d80196-61c5-44d9-bec8-dc563d58fa6a@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace news.uni-berlin.de 881ku1QSC5Vcj6jviA/PGAPfmAhA5Ld3E81n8apk7aNw==
Cancel-Lock sha1:jhrflfQf6FkjK8PHF+bWl1vihV4=
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'nameerror:': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:error': 0.11; 'appropriate': 0.14; '"python",': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'received:t-ipconnect.de': 0.16; 'have:': 0.18; 'assign': 0.22; 'defined': 0.23; 'tried': 0.24; '(most': 0.24; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'error': 0.27; 'there.': 0.30; 'code': 0.30; 'run': 0.33; 'traceback': 0.33; 'file': 0.34; 'false': 0.35; 'comment': 0.35; 'problem.': 0.35; 'lines': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'charset:us-ascii': 0.37; 'to:addr:python.org': 0.40; 'received:de': 0.40; 'your': 0.60; 'information': 0.63; 'received:217': 0.66; '"j"': 0.84
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host pd9e09693.dip0.t-ipconnect.de
User-Agent Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:99200

Show key headers only | View raw


Cai Gengyang <gengyangcai@gmail.com> writes:

> This is a piece of code about comparators :
> j# Assign True or False as appropriate on the lines below!
> ...
> When I tried to run it, this is the error I got : 
>
> Traceback (most recent call last):
>   File "python", line 1, in <module>
> NameError: name 'j' is not defined

The error information is very precise: in your line 1, you have:

    j# Assign True or False as appropriate on the lines below!

The "j" before the comment ("#...") is what causes the problem.
Likely, you did not want it there.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Traceback error Cai Gengyang <gengyangcai@gmail.com> - 2015-11-20 22:54 -0800
  Re: Traceback error "Frank Millman" <frank@chagford.com> - 2015-11-21 09:26 +0200
    Re: Traceback error Cai Gengyang <gengyangcai@gmail.com> - 2015-11-20 23:33 -0800
  Re: Traceback error dieter <dieter@handshake.de> - 2015-11-21 08:31 +0100

csiph-web