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/2007-November/075343.html below:

[Python-Dev] Should we do away with unbound methods in Py3k?

[Python-Dev] Should we do away with unbound methods in Py3k? [Python-Dev] Should we do away with unbound methods in Py3k?Greg Ewing greg.ewing at canterbury.ac.nz
Sat Nov 24 00:38:54 CET 2007
Phillip J. Eby wrote:

> class MoneyField(Field):
>     # does need staticmethod because two_decimal_places
>     # doesn't take a self
>     converter = staticmethod(two_decimal_places)

Okay, I see what you mean now. But you could just as well wrap
it in a function that takes self and discards it, so I still
don't think staticmethod is essential in the absence of
unbound methods.

Not that I would object if it stayed around -- I don't really
mind one way or the other.

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