Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.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.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'before.': 0.09; 'lawrence': 0.09; 'subject:module': 0.09; 'do,': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'naming': 0.16; 'next.': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'fix': 0.17; '>>>': 0.18; 'code.': 0.20; 'import': 0.21; 'fixing': 0.22; 'programming': 0.23; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'chris': 0.28; 'run': 0.28; 'function': 0.30; 'file': 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'text': 0.34; 'list': 0.35; 'whatever': 0.35; 'problem,': 0.35; 'received:209.85.220': 0.35; 'sometimes': 0.35; 'table': 0.35; 'received:209.85': 0.35; 'depends': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'object': 0.38; 'to:addr:python.org': 0.39; 'apply': 0.39; '2013': 0.84; 'console,': 0.84; 'multipli': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=5ebgVabrJ5LsZZRjDsYyLLzzmJI6eShrpDAo/BcgxPc=; b=zRNj+M9nnJNmuUf4d4u9aXWqrkWVJShyMTmd3W5Yd/lp0QNsHpXquP+jXZZxUvXZVE Oia0s13tIoxKX8kZuV92wCoC9K/ZYlTOM7x1mPJTJ1EjxVUID1T49jtGb+VPfIF6F9+u UvvjtfIp+/qEdJzVwbGNb3zfd1LDe6fjuzlEhCZxlFInNPEUh62oCLMrSTmrtjXb5/fH NOFziSu6g5ZnbgBwn+VBDkfbWgvp1hiesR1OeWIH3GVhGAdjIeM60c5UzZYIU1Vk3L7Z r4eWFIcPa7efvUb5HIzCCDjHkhuF2OY/E0+hUvW/jqLZP2D3m6yi+zSO+0tN+uoeSC5U FEaw== MIME-Version: 1.0 X-Received: by 10.52.37.109 with SMTP id x13mr10166487vdj.10.1364141721627; Sun, 24 Mar 2013 09:15:21 -0700 (PDT) In-Reply-To: References: <2c7cb491-62d7-43f6-a1fd-ea8ea8833cda@googlegroups.com> Date: Mon, 25 Mar 2013 03:15:21 +1100 Subject: Re: ImportError: No module named multipli From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364141731 news.xs4all.nl 6892 [2001:888:2000:d::a6]:36005 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41793 On Mon, Mar 25, 2013 at 3:10 AM, Mark Lawrence wrote: > On 24/03/2013 15:48, Chris Angelico wrote: >> >> On Mon, Mar 25, 2013 at 2:35 AM, yahya Kacem wrote: >>> >>> file named multipli: >>> >>> and file naled test: >>> >>> from multipli import table >> >> >> Try naming it multipli.py >> >> ChrisA >> > > Before or after fixing the infinite loop? :) Before. Then you run it, see it spew text to the console, and hit Ctrl-C. Programming is iterative: once you fix one problem, you find the next. Programming is also recursive: in fixing one problem, you sometimes have to deal with others that it depends on. Programming is functional, too: you take a list of problems, apply the "Code" function to them, and keep the list of return values, which will be hopefully-working code. And programming is object-oriented... whatever you do, someone will object to it. ChrisA