Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #49578
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <tshepard@rcsreg.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.016 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'explicitly': 0.05; "'.'": 0.09; 'idea?': 0.09; 'imported': 0.09; 'subject:module': 0.09; 'python': 0.11; 'turn,': 0.16; 'web2py,': 0.16; 'thanks,': 0.17; 'library': 0.18; 'import': 0.22; 'header:User-Agent:1': 0.23; 'specify': 0.24; 'question': 0.24; "skip:' 10": 0.31; 'file': 0.32; 'regular': 0.32; 'received:209.85': 0.35; 'created': 0.35; 'received:209.85.220': 0.35; 'something': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'received:209': 0.37; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'does': 0.39; 'bad': 0.39; 'to:addr:python.org': 0.39; 'called': 0.40; 'today,': 0.61; 'simply': 0.61; 'received:10.10': 0.74; 'received:10.10.10': 0.84 |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=x5rHFnFLd82xqARbk7uPtx0mSu3WoSCmtNKzJWRTHmA=; b=W43iWy724SpLYsf5C4HMy3wFm1D9X9oUpVGKn/FhOuHaQn9oYtE7vQWiUtIzLhjsI3 hS/9LVwRJ7OmF4UK3oEYAP2nlBWZPmwwjAdcM3Uqcl75K27OrZG5W0h4spfX1mnNwn82 k77+5S6i/kK+3Wqf66Xa02jvwkk27UqYMBVbaj6WHi211yqFxjxvY8BWDT5cWICbBk1E yg9ecTW828jNc3sSi4dWw3UlvawW6tLBB0WDKW+gYYSyWksCRToavO27TFUiqpKdmmTB rJOZnvVbNSFRfwf8eyhjT7FqXJzX5FhxPvNSHAR+GD73xefDe31ZCGCgqCdqGp1JrVq6 DJ6w== |
| X-Received | by 10.68.189.10 with SMTP id ge10mr22172877pbc.127.1372703355985; Mon, 01 Jul 2013 11:29:15 -0700 (PDT) |
| Date | Mon, 01 Jul 2013 11:29:35 -0700 |
| From | Tobiah <tshepard@rcsreg.com> |
| User-Agent | Mozilla/5.0 (X11; Linux i686 on x86_64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | PYTHONPATH and module names |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gm-Message-State | ALoCoQksWJ1Wty+GTZs8pJwP382e9EiVB1pTOYrTx9G8pPR4OO6nCd12zBTq8BVaLQsur7+NVXbt |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4074.1372703671.3114.python-list@python.org> (permalink) |
| Lines | 16 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1372703671 news.xs4all.nl 15872 [2001:888:2000:d::a6]:50303 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:49578 |
Show key headers only | View raw
So today, I created a file called 'formatter.py', and my program broke. It turned out that I was also import 'gluon' from web2py, which in turn, somewhere, imported the regular python formatter.py with which I was not familiar. So the question is: Does one simply always have to be knowledgeable about existing python library names, or is having '.' in the python path just a bad idea? Is there a way, not having '.' in the path to explicitly specify the current directory? Something analogous to import ./foo ? Thanks, Tobiah
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
PYTHONPATH and module names Tobiah <tshepard@rcsreg.com> - 2013-07-01 11:29 -0700
Re: PYTHONPATH and module names rusi <rustompmody@gmail.com> - 2013-07-01 11:39 -0700
Re: PYTHONPATH and module names Tobiah <toby@tobiah.org> - 2013-07-01 12:54 -0700
Re: PYTHONPATH and module names rusi <rustompmody@gmail.com> - 2013-07-01 14:38 -0700
Re: PYTHONPATH and module names Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-07-01 22:05 +0000
Re: PYTHONPATH and module names Lele Gaifax <lele@metapensiero.it> - 2013-07-02 07:30 +0200
Re: PYTHONPATH and module names Fábio Santos <fabiosantosart@gmail.com> - 2013-07-01 23:08 +0100
Re: PYTHONPATH and module names "SpaghettiToastBook ." <spaghettitoastbook@gmail.com> - 2013-07-01 16:40 -0400
csiph-web