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/2002-September/028803.html below:

[Python-Dev] Puzzling behavior when subclassing from float

[Python-Dev] Puzzling behavior when subclassing from float [Python-Dev] Puzzling behavior when subclassing from floatGuido van Rossum guido@python.org
Fri, 20 Sep 2002 12:42:14 -0400
> Aplogies in advance if this is the wrong forum for this question.

It is, but because you're you, I don't mind.

You're missing that besides __init__, new-style classes also have a
lower-level constructor, __new__.  This is called before __init__.
For immutable objects, __new__ is where the action is.  Read about it
in http://www.python.org/2.2.1/descrintro.html

--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