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/2000-April/003537.html below:

Arbitrary attributes on funcs and methods)

[Python-Dev] Object customization (was: Arbitrary attributes on funcs and methods) [Python-Dev] Object customization (was: Arbitrary attributes on funcs and methods)Tim Peters tim_one@email.msn.com
Fri, 14 Apr 2000 12:04:32 -0400
[Tim]
> Yes, of course people will use it to get the effect of function
> statics.  OK by me.  People do the same thing today with class data
> attributes (i.e., to

[Andrew M. Kuchling]
> Wait, the attributes added to a function are visible inside the
> function?

No, same as in JavaScript, you need funcname.attr, just as you need
classname.attr in Python today to fake the effect of mutable class statics
(in the C++ sense).

> [hysteria deleted <wink>]
> ...
> +0 if they're not.





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