A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2007-January/070845.html below:

[Python-Dev] Scoping [Patience, please]

[Python-Dev] Scoping [Patience, please]lingwitt at gmail.com lingwitt at gmail.com
Wed Jan 31 15:52:48 CET 2007
lingwitt at gmail.com wrote:
> #### Tangent (Utter Tomfoolery) ####
>
> More interestingly, one sees (if one squints) the distinction  
> between modules,
> classes, and functions blur:
>
> >>> def new_b():
> ...     print "tee hee"
> >>> a.b = new_b()
> >>>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 print_record():
> ...         print('The last person created had the name ' +  
> Person.name_last)
> ...         print("However, I don't know any of the details")
> ...
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4