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/2009-February/086235.html below:

[Python-Dev] Duck-typing self

[Python-Dev] Duck-typing self [Python-Dev] Duck-typing selfGreg Ewing greg.ewing at canterbury.ac.nz
Thu Feb 19 02:48:51 CET 2009
Christian Heimes wrote:

> In 2.x a class objects wrap their functions in a method wrapper. The
> method wrapper does the type check. You can get around the type check by
> using the im_func attribute of the method wrapper.

You could probably also create a decorator that
gives you something behaving like an unbound
method but without the type check (implementation
details left to the reader).

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