[Tutor] How to design the structure of multi-steps(and substeps) scripts

2011-04-10 Thread leechau
i-steps scripts? Thanks! -- leechau ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How to use a module when only import package

2011-04-08 Thread leechau
Steven wrote: leechau wrote: I wrote module1 in package1, and want to use a method named 'method1' in module1, the caller(test.py) is like this: import package1 package1.module1.method1() [...] When i run test.py, the output is: AttributeError: 'module' object has no attr

[Tutor] How to use a module when only import package

2011-04-07 Thread leechau
I wrote module1 in package1, and want to use a method named 'method1' in module1, the caller(test.py) is like this: import package1 package1.module1.method1() module1.py is like this: def method1(): print 'method1 run!' The filesystem structure is: test.py package1 |__ __init__.py |__ m