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/2009-September/091530.html below:

[Python-Dev] why different between staticmethod and classmethod on non-callable object?

[Python-Dev] why different between staticmethod and classmethod on non-callable object? [Python-Dev] why different between staticmethod and classmethod on non-callable object?Benjamin Peterson benjamin at python.org
Tue Sep 1 16:21:05 CEST 2009
2009/8/31 xiaobing jiang <s7v7nislands at gmail.com>:
> My idea is: here, the two functions (or maybe classes) should have the
> same behavior).
> so is this a bug or something I missing ?

I think they should both not check their arguments in __init__ to
allow for duck typing.



-- 
Regards,
Benjamin
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