A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-January/012335.html below:

[Python-Dev] Read-only function attributes

[Python-Dev] Read-only function attributes [Python-Dev] Read-only function attributesGuido van Rossum guido@digicool.com
Tue, 30 Jan 2001 09:01:15 -0500
> I see that the function attribute feature specifically allows
> assignment to func_code and func_defaults, but no other special
> attributes.  This seems really suspect to me.  Why would we want
> to allow the reassignment of special attributes at all?

As Effbot said, this is useful in certain circumstances where a
development environment wants to implement a "better reload".  For
this same reason you can assign to a class's __bases__ and __dict__
and to an instance's __class__ and __dict__.

--Guido van Rossum (home page: http://www.python.org/~guido/)




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