newbie question, doesn't the opertion steps can be shorter?

C

chenyu

hi everyone,
I have read others code and tried to add some test code by "print"
command. But I found the operations in "pythonwin" are too much. Is
there any unneccessary step in the operations? or short way?

For example, use interactive window, class1.py(contains "classA" file
1. modify file "class1.py" by add one line of modification code into
"__init__" method.
2. push the "Save button" or "ctrl-s"
3. push the "check button"
4. push the "reload button"
5. switch to "interactive window"
6. add "from class1 import classA" line
7. create new object of "classA"


Thank you in advance.
kind regards/chenyu
 
B

Bob Gailer

hi everyone,
I have read others code and tried to add some test code by "print"
command. But I found the operations in "pythonwin" are too much. Is
there any unneccessary step in the operations? or short way?

For example, use interactive window, class1.py(contains "classA" file
1. modify file "class1.py" by add one line of modification code into
"__init__" method.
2. push the "Save button" or "ctrl-s"
3. push the "check button"
4. push the "reload button"
5. switch to "interactive window"
6. add "from class1 import classA" line
7. create new object of "classA"

It would help if you told us more about what you want to do.

However 4. reload does save and check, so you can drop 2 and 3 above.

Why are you doing some of the testing in the interactive window? It is
often easier to add the test code to class1.py in its edit window, then run
the code by pressing F5 or using the debugger.

Bob Gailer
(e-mail address removed)
303 442 2625
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,001
Messages
2,570,255
Members
46,853
Latest member
GeorgiaSta

Latest Threads

Top