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

Discussion in 'Python' started by chenyu, Nov 11, 2003.

  1. chenyu

    chenyu Guest

    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
     
    chenyu, Nov 11, 2003
    #1
    1. Advertisements

  2. chenyu

    Bob Gailer Guest

    At 09:01 PM 11/10/2003, chenyu wrote:

    >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

    303 442 2625


    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system (http://www.grisoft.com).
    Version: 6.0.538 / Virus Database: 333 - Release Date: 11/10/2003
     
    Bob Gailer, Nov 12, 2003
    #2
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lowell Kirsh

    how can I make this script shorter?

    Lowell Kirsh, Feb 22, 2005, in forum: Python
    Replies:
    7
    Views:
    385
    Christos TZOTZIOY Georgiou
    Feb 25, 2005
  2. Silas Justiniano

    Little question about what C can do (First steps learner)

    Silas Justiniano, Nov 26, 2005, in forum: C Programming
    Replies:
    9
    Views:
    480
    Giorgos Keramidas
    Dec 27, 2005
  3. trvlDev
    Replies:
    3
    Views:
    344
    trvlDev
    Apr 6, 2007
  4. kj

    Re: can it be shorter?

    kj, Jun 6, 2009, in forum: Python
    Replies:
    5
    Views:
    416
  5. Aaron Brady

    Re: can it be shorter?

    Aaron Brady, Jun 7, 2009, in forum: Python
    Replies:
    7
    Views:
    453
    Carlos Valiente
    Jun 11, 2009
  6. Krekna Mektek
    Replies:
    3
    Views:
    200
  7. WuyaSea Operator

    can it be shorter?

    WuyaSea Operator, Dec 11, 2006, in forum: Ruby
    Replies:
    2
    Views:
    172
    James Edward Gray II
    Dec 11, 2006
  8. Dorren

    can it be shorter?

    Dorren, Jan 24, 2007, in forum: Ruby
    Replies:
    9
    Views:
    286
    Erik Veenstra
    Jan 25, 2007
Loading...