Re: Extreme n00b question
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: Extreme n00b question

From: Michael Hoffman <cam.ac.uk@mh391.invalid>
Date: Wed Jul 27 2005 - 14:49:10 CEST

Anupam Kapoor wrote:

> i generally name python sources as a-simple-python-example.py. when i
> try to import a module named as above, i (obviously) get tracebacks
> from python interpreter.
>
> is there a way to continue naming python sources as above, and still
> use it as python modules ? i can ofcourse change the name to
> 'a_simple_python_example.py', which then works.

Your question has already been answered, but I think your life (and that
of anyone trying to use your code) would probably be easier if you
switched to underscores.

-- 
Michael Hoffman
Received on Thu Sep 29 17:11:29 2005