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/2005-August/055524.html below:

[Python-Dev] On decorators implementation

[Python-Dev] On decorators implementation [Python-Dev] On decorators implementationPaolino paolo_veronelli at libero.it
Sun Aug 21 11:35:37 CEST 2005
I noticed (via using them) that decorations are applied to methods
before  they become methods.

This choice flattens down the implementation to no differentiating
methods from functions.



1)
I have to apply euristics on the wrapped function type when I use the
function as an index key.

         if type(observed) is types.MethodType:
           observed=observed.im_func

things like this are inside my decorators.

2)
The behavior of decorations are not definable.
I imagine that a method implementation of them inside the type metaclass
could be better specified by people.
This probably ends up in metamethods or something I can't grasp


Thanks

Paolino



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