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/003380.html below:

[Python-Dev] Arbitrary attributes on funcs and methods

[Python-Dev] Arbitrary attributes on funcs and methods [Python-Dev] Arbitrary attributes on funcs and methodsSkip Montanaro skip@mojam.com (Skip Montanaro)
Wed, 12 Apr 2000 12:28:04 -0500 (CDT)
    BAW> Functions and methods are first class objects, and they already
    BAW> have attributes, some of which are writable.

(Trying to read Fredrik's mind...)

By extension, we should allow writable attributes to work for other objects.
To pollute this discussion with an example from another one:

    i = 3.1416
    i.__precision__ = 4

I haven't actually got anything against adding attributes to functions (or
numbers, if it's appropriate).  Just wondering out loud and playing a bit of
a devil's advocate.

Skip



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