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


Groups > comp.lang.python > #99197

Re: Traceback error

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From "Frank Millman" <frank@chagford.com>
Newsgroups comp.lang.python
Subject Re: Traceback error
Date Sat, 21 Nov 2015 09:26:06 +0200
Lines 28
Message-ID <mailman.29.1448090792.2291.python-list@python.org> (permalink)
References <e5d80196-61c5-44d9-bec8-dc563d58fa6a@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; format=flowed; charset="iso-8859-1"; reply-type=original
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de jZLi8hEOPM7va/N+Vj/edQAcxKixvMnn2JHEFJDfJDRQ==
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.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'debug': 0.04; '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:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'there?': 0.16; 'typo.': 0.16; 'assign': 0.22; 'skip:n 60': 0.22; 'defined': 0.23; 'wrote': 0.23; 'tried': 0.24; '(most': 0.24; 'header:In-Reply-To:1': 0.24; 'header:X-Complaints-To:1': 0.26; 'rest': 0.26; 'error': 0.27; 'looks': 0.29; 'code': 0.30; 'run': 0.33; 'traceback': 0.33; 'file': 0.34; 'false': 0.35; 'there': 0.36; 'lines': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'doing': 0.38; 'to:addr:python.org': 0.40; 'frank': 0.72
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host 197.89.92.4
In-Reply-To <e5d80196-61c5-44d9-bec8-dc563d58fa6a@googlegroups.com>
X-MSMail-Priority Normal
Importance Normal
X-Newsreader Microsoft Windows Live Mail 15.4.3502.922
X-MimeOLE Produced By Microsoft MimeOLE V15.4.3502.922
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:99197

Show key headers only | View raw


"Cai Gengyang"  wrote in message 
news:e5d80196-61c5-44d9-bec8-dc563d58fa6a@googlegroups.com...

> This is a piece of code about comparators :


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

[snip rest of code]

> 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


> Any ideas how to debug this ?


It looks to me as if the error is right there on the first line. What is 
that 'j' doing there? It looks like a typo.

HTH

Frank Millman

Back to comp.lang.python | Previous | NextPrevious in thread | Next 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