How to use *.py modules instead of *.pyc?

2009-01-18 Thread dsblizzard
How to use *.py modules instead of *.pyc or automatically recompile
all modules each time I change *.py files?
Thank you in advance.
--
http://mail.python.org/mailman/listinfo/python-list


How to convert \n and \t symbols to new lines and tabs?

2009-04-13 Thread DSblizzard
How to convert string with \n and \t symbols to natural string - with
new lines and tabs?
--
http://mail.python.org/mailman/listinfo/python-list


Problem with modules reloading

2010-03-04 Thread DSblizzard
I have had already following question:
"How to use *.py modules instead of *.pyc?"

Last time I when asked that question I resolved problem by using one
big .py file. And answers doesn't work in my case. Now I ought to use
several files and almost the same problem arises again. Admit I have 2
modules: m2.py and m1.py

in m2.py:
from m1.py import *

def foo2():
  foo1()

foo2()

in m1.py:

# empty

After copying m2.py contents directly to python.exe:
"NameError: global name 'foo1' is not defined"

Then I define foo1 in m1 and copy following lines to python.exe:
from m1.py import *
foo2()

Nothing changes, the same error, and .pyc files, if I have deleted
them doesn't created again.

What is the solution?
-- 
http://mail.python.org/mailman/listinfo/python-list