RE: Python Interpreter: Load Script After Interpreter Starts

  • From: "Homme, James" <james.homme@xxxxxxxxxxxx>
  • To: "programmingblind@xxxxxxxxxxxxx" <programmingblind@xxxxxxxxxxxxx>
  • Date: Tue, 14 Jun 2011 08:49:04 -0400

Hi,
It was easy enough to just close the interpreter and reopen it with -i before 
my script. I was thinking there might be a way to rerun it. Maybe if I put a 
__main__() function in it with my code that displays and alters things?

Jim

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx 
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Johannes Grib
Sent: Tuesday, June 14, 2011 8:33 AM
To: programmingblind@xxxxxxxxxxxxx
Subject: RE: Python Interpreter: Load Script After Interpreter Starts

Might pdb not work for you?


-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx 
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Homme, James
Sent: Tuesday, June 14, 2011 2:30
To: programmingblind@xxxxxxxxxxxxx
Subject: Python Interpreter: Load Script After Interpreter Starts

Hi,

With the Python interpreter already loaded, if you want to load a script you 
are working on, should you type import script from the >>> prompt, where script 
is your script without the extension, or is there some other way to do it 
properly? I want to run a script, then see its variables.

Jim Homme,

Usability Services,

Phone: 412-544-1810.

 


________________________________

This e-mail and any attachments to it are confidential and are intended solely 
for use of the individual or entity to whom they are addressed. If you have 
received this e-mail in error, please notify the sender immediately and then 
delete it. If you are not the intended recipient, you must not keep, use, 
disclose, copy or distribute this e-mail without the author's prior permission. 
The views expressed in this e-mail message do not necessarily represent the 
views of Highmark Inc., its subsidiaries, or affiliates.

__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

Other related posts: