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/2019-April/157012.html below:

[Python-Dev] Deprecating "instance method" class

[Python-Dev] Deprecating "instance method" class [Python-Dev] Deprecating "instance method" classJeroen Demeyer J.Demeyer at UGent.be
Mon Apr 8 11:24:34 EDT 2019
On 2019-04-08 17:08, Robert White wrote:
> So we're making pretty heavy use of PyInstanceMethod_New in our python
> binding library that we've written for a bunch of in house tools.
> If this isn't the best / correct way to go about adding methods to
> objects, what should we be using instead?

First of all, the consensus in this thread is not to deprecate 
instancemethod.

Well, it depends what you mean with "adding methods to objects", that's 
vaguely formulated. Do you mean adding methods at run-time (a.k.a. 
monkey-patching) to a pre-existing class? And is the process of adding 
methods done in C or in Python?

Do you only need PyInstanceMethod_New() or also other 
PyInstanceMethod_XXX functions/macros?
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