[Tutor] scoping oddity

Michael.Coll-Barth@VerizonWireless.com Michael.Coll-Barth at VerizonWireless.com
Mon May 9 15:39:30 CEST 2005


Ziyad,

Thanks for the tip.  Much of the code written here in my office, do exactly
what you describe.  The code I am working on is purely personal and
educational.  I guess I got sloppy, which in a way is educational.  

All,

Obviously, you can't put every variable on the 'def' line.  Is there a
utility of some sort that will present me with a list of the variables used
in an application?  Preferably, something that might pick up possible scope
'collisions'?  If you know what I mean.  And if that isn't the right word,
what is?

thanks guys!
Michael

-----Original Message-----
From: tutor-bounces at python.org [mailto:tutor-bounces at python.org]On
Behalf Of ZIYAD A. M. AL-BATLY

        def testb(astr, x = x):
             x = x - 1
             print astr, x
        

___________________________________________________________________
The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure.  If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof.  Thank you.



More information about the Tutor mailing list