Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'languages.': 0.04; 'remaining': 0.07; 'expectation': 0.09; 'subject:design': 0.09; 'cc:addr:python-list': 0.11; 'cc:name:python list': 0.16; 'collections': 0.16; 'filesystem,': 0.16; 'imports': 0.16; 'subject:Language': 0.16; 'variable.': 0.16; 'module': 0.19; "hasn't": 0.19; 'import': 0.22; 'cc:addr:python.org': 0.22; 'circular': 0.24; 'cc:2**0': 0.24; 'source': 0.25; 'defined': 0.27; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'file': 0.32; 'class': 0.32; 'quite': 0.32; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'simply': 0.61; 'simple': 0.61; 'more': 0.64; 'difficulty': 0.68; 'complex,': 0.84; 'difficult?': 0.84; 'washington': 0.93 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:to :cc:content-type; bh=QWl17P8VuGg4Sf4KyNaC6xK+eAg8WSa28DGXLp+ppE0=; b=uza60hv/lhVt1Jl66voh78O0NBQb9Ut1x13us4AMqd6/gPFWd0ggMzLvwllVWuWu4V hIqlCSnLL6BBaP83ioUwFfd6WjcQ88Fp3HiBklAmzATRyQkcFRX3JlGzHYL0DM6/cE3o yfHkqrpKCW/ofPIGwDOmcJidOskDYIMMWTauWXClD02ZKBt/t+eDkiorIm9Bau0/nky8 nEQofE/E5BCmRysyFDRciJgyGlq3hVTK9xGmlCXgDMUpYSEZQYPMgBV9kg1uPBvF1MFR /q6HTW6CoLjEJak6vTGFeaE79dvZzA+Ao7FwLX15a9hUErwv4xYWItVUEDLeOD7ShbIs 7bzQ== MIME-Version: 1.0 X-Received: by 10.180.39.242 with SMTP id s18mr2005wik.47.1378934541275; Wed, 11 Sep 2013 14:22:21 -0700 (PDT) In-Reply-To: <7wbo412m02.fsf@benfinney.id.au> References: <522eb795$0$29999$c3e8da3$5496439d@news.astraweb.com> <7wbo412m02.fsf@benfinney.id.au> Date: Wed, 11 Sep 2013 14:22:21 -0700 Subject: Re: Language design From: Mark Janssen To: Ben Finney Content-Type: text/plain; charset=ISO-8859-1 Cc: Python List 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1378934549 news.xs4all.nl 15970 [2001:888:2000:d::a6]:58482 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:53998 > * Imports are fiendishly complex, hidden below deceptively simple > syntax. > > It's a reasonable expectation that one can import a module from a > source code file given its path on the filesystem, but this turns out > to be much more complicated than in many other languages. Why is this so difficult? Add a Graph class to the collections module (networkx is quite good) and simply check for circular imports. The remaining difficulty I encounter is because the user hasn't defined their PYTHONPATH variable. -- MarkJ Tacoma, Washington