[Python-Dev] Scoping [Patience, please] (original) (raw)
lingwitt at gmail.com lingwitt at gmail.com
Wed Jan 31 15:52:48 CET 2007
- Previous message: [Python-Dev] Scoping [Patience, please]
- Next message: [Python-Dev] Scoping [Patience, please]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
lingwitt at gmail.com wrote:
#### Tangent (Utter Tomfoolery) ####
More interestingly, one sees (if one squints) the distinction between modules, classes, and functions blur: >>> def newb(): ... print "tee hee" >>> a.b = newb() >>>a() tee hee 3 >>> print x 5
After falling into bed, I realized that everything after this point
contradictions
with my earlier usage of qualified names.
Upon further investigation, it seems what I have suggested above conflicts with the use of func_dict.
or perhaps:
>>> # Interestingly, the following code is valid already ... >>> def Person(name, age, location): ... def printrecord(): ... print('The last person created had the name ' + Person.namelast) ... print("However, I don't know any of the details") ...
- Previous message: [Python-Dev] Scoping [Patience, please]
- Next message: [Python-Dev] Scoping [Patience, please]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]