Re: Syntax error in ".py" file and globals variable values not available.

2008-08-29 Thread Timothy Grant
On Fri, Aug 29, 2008 at 12:48 AM, Alexis Boutillier <[EMAIL PROTECTED]> wrote: > Timothy Grant a écrit : >> >> On Thu, Aug 28, 2008 at 1:40 AM, Alexis Boutillier >> <[EMAIL PROTECTED]> wrote: >>> >>> Timothy Grant a écrit : On Wed, Aug 27, 2008 at 2:49 AM, Alexis Boutillier <[EMAIL P

Re: Syntax error in ".py" file and globals variable values not available.

2008-08-29 Thread Alexis Boutillier
Timothy Grant a écrit : On Thu, Aug 28, 2008 at 1:40 AM, Alexis Boutillier <[EMAIL PROTECTED]> wrote: Timothy Grant a écrit : On Wed, Aug 27, 2008 at 2:49 AM, Alexis Boutillier <[EMAIL PROTECTED]> wrote: Hi, I have a strange behaviour of python with pdb and import statement. Here is the examp

Re: Syntax error in ".py" file and globals variable values not available.

2008-08-28 Thread Timothy Grant
On Thu, Aug 28, 2008 at 1:40 AM, Alexis Boutillier <[EMAIL PROTECTED]> wrote: > Timothy Grant a écrit : >> >> On Wed, Aug 27, 2008 at 2:49 AM, Alexis Boutillier >> <[EMAIL PROTECTED]> wrote: >>> >>> Hi, >>> >>> I have a strange behaviour of python with pdb and import statement. >>> Here is the exam

Re: Syntax error in ".py" file and globals variable values not available.

2008-08-28 Thread Alexis Boutillier
Timothy Grant a écrit : On Wed, Aug 27, 2008 at 2:49 AM, Alexis Boutillier <[EMAIL PROTECTED]> wrote: Hi, I have a strange behaviour of python with pdb and import statement. Here is the example code : file my1.py: import my2 file my2.py: a=5 toto I intentionnaly put a syntax error in file my

Re: Syntax error in ".py" file and globals variable values not available.

2008-08-27 Thread Timothy Grant
On Wed, Aug 27, 2008 at 2:49 AM, Alexis Boutillier <[EMAIL PROTECTED]> wrote: > Hi, > > I have a strange behaviour of python with pdb and import statement. > Here is the example code : > > file my1.py: > import my2 > > file my2.py: > a=5 > toto > > I intentionnaly put a syntax error in file my2.py.

Syntax error in ".py" file and globals variable values not available.

2008-08-27 Thread Alexis Boutillier
Hi, I have a strange behaviour of python with pdb and import statement. Here is the example code : file my1.py: import my2 file my2.py: a=5 toto I intentionnaly put a syntax error in file my2.py. If I run "python -i my2.py" and run pdb I got : NameError: name 'toto' is not defined >>> import