Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.169 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.66; '*S*': 0.00; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'means.': 0.16; 'pulling': 0.16; 'subject:OOP': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'thu,': 0.19; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'sort': 0.25; 'post': 0.26; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'points': 0.29; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'figure': 0.32; 'option': 0.32; 'third': 0.33; 'subject:with': 0.35; 'basic': 0.35; 'problem.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'being': 0.38; 'solving': 0.38; 'pm,': 0.38; 'read': 0.60; 'full': 0.61; 'making': 0.63; 'information': 0.63; 'chance': 0.65; 'here': 0.66; 'yes': 0.68; 'approaches': 0.68; 'effective.': 0.68; 'gathering': 0.68; 'to,': 0.72; 'us,': 0.73; 'jul': 0.74; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=1z2g3Bvhre8njsHm9/jEPi1v/KMMdfzN3WrDbwwQmmQ=; b=mbWRN8FQNOgSDifUBR4/mPraKHpeOlVXpdnBn5zf845nhlMJowkUjJ7+y579eMNR4B /jbowZIWXfheLFOHIDcrvtKqDxOHNTup52XBZZLpVVk5VpvDALGNS0zeCWkjbT8nH/qv lxptGWqYhMdJuP1L7RznNP3/K8/gaBdXEX2dFX+7tcLaG5uYNdkaRn9BvBi0VFc6aazO 1I9QhnPj67uQ/NOKmV6//Dq8YSAjzebjDLyL11gouhluEUPLknd2FF8JEYswmM+jv2bd HbIK0jNcuwwl6p9wuqdJefCnr76GK+7ThpBfY0PSv47+LRXb7KJ4pUnVMY6n5Q4IkM8z zc9Q== MIME-Version: 1.0 X-Received: by 10.58.117.232 with SMTP id kh8mr86330veb.81.1404393464381; Thu, 03 Jul 2014 06:17:44 -0700 (PDT) In-Reply-To: <51a84c60-f1c0-4a30-94de-e047f1b553bc@googlegroups.com> References: <7020a5d8-96a9-4fa4-8e69-4c7593dedee3@googlegroups.com> <51a84c60-f1c0-4a30-94de-e047f1b553bc@googlegroups.com> Date: Thu, 3 Jul 2014 23:17:44 +1000 Subject: Re: OOP with MyTime From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1404393472 news.xs4all.nl 2944 [2001:888:2000:d::a6]:50084 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:73904 On Thu, Jul 3, 2014 at 11:08 PM, wrote: > Altered the code. But yes a nameerror came up When that sort of thing happens, you have three basic approaches to solving the problem. 1) Read the traceback, look at the line of code it points to, and see if you can figure out what it means. 2) Post here with the full traceback so we have a chance of being able to help you 3) Play 20 questions with us, while making the gathering of information as hard as pulling teeth. Suggestion: The third option is the least effective. :) ChrisA