Re: Extreme n00b question

2005-07-27 Thread Michael Hoffman
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

Re: Extreme n00b question

2005-07-26 Thread Anupam Kapoor
, | Something like | a_simple_python_example = __import__('a-simple-python-example') ` thanks ! that works. kind regards anupam -- http://mail.python.org/mailman/listinfo/python-list

Re: Extreme n00b question

2005-07-25 Thread Erik Max Francis
Anupam Kapoor wrote: > 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. Something like a_simple_python_example = __import__('a-simple-python-example') --