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/2006-March/062451.html below:

[Python-Dev] Making staticmethod objects callable?

[Python-Dev] Making staticmethod objects callable? [Python-Dev] Making staticmethod objects callable?Guido van Rossum guido at python.org
Thu Mar 16 06:20:21 CET 2006
On 3/15/06, Nicolas Fleury <nidoizo at yahoo.com> wrote:
> I think we all agree on this list that there's no point using a
> staticmethod for that use case.  My suggestion was for some
> comp.lang.python people, a lot coming from other languages.  Their
> reflex would be much more to define a staticmethod.  This issue has been
> pointed a lot of times on comp.lang.python.

There's no need to change Python so that people coming from other
languages won't make silly mistakes, is there?

BTW I question the claimed reflex -- assuming by "other languages" you
mean Java or C++ (the only languages I know that *have* static
methods) -- since those languages don't have the ability to call
methods (static or otherwise) at class definition time.

So perhaps you need to dig deeper to find out *why* this is a recurring issue.

--
--Guido van Rossum (home page: http://www.python.org/~guido/)
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