[issue20309] Not all method descriptors are callable

2021-03-31 Thread STINNER Victor
STINNER Victor added the comment: I proposed again a similar idea, but only for @staticmethod: bpo-43682. -- nosy: +vstinner ___ Python tracker ___

[issue20309] Not all method descriptors are callable

2019-03-20 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: See also PEP 579 (issue 11) and the thread https://mail.python.org/pipermail/python-ideas/2018-June/051572.html -- nosy: +jdemeyer ___ Python tracker

[issue20309] Not all method descriptors are callable

2018-11-21 Thread Simon Ruggier
Simon Ruggier added the comment: I hit this problem today with what I'd consider a valid use case: I wanted to use a static method as a default argument to a function on the same class. Within the class definition context, automatic unwrapping of the staticmethod object doesn't occur, so

[issue20309] Not all method descriptors are callable

2015-04-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't agree that this is a bug that should be fixed. It adds code that will likely never get called or needed (i.e. there has never been a request for this in the decade long history of desciptors and it seems like a made up requirement to me. I

[issue20309] Not all method descriptors are callable

2015-04-14 Thread Nick Coghlan
Nick Coghlan added the comment: I agree with Raymond's recommendation - actually supporting this would mean adding code that would need to be maintained indefinitely without providing a compensating practical benefit, so I'm flagging this as not a bug. Thanks Christian for nudging us to make

[issue20309] Not all method descriptors are callable

2015-04-14 Thread Christian Hudon
Christian Hudon added the comment: As a newbie to the CPython source code (and as someone who started working on this bug because it was on the lists of easy bugs for PyCon 2014), I don't have a strong attachment either way, as long as some kind of decision is reached, and I can check this

[issue20309] Not all method descriptors are callable

2015-04-13 Thread Christian Hudon
Christian Hudon added the comment: Updated patch to work with current state of repository. Tests still pass (including the new ones). -- Added file: http://bugs.python.org/file38942/descr_v3.diff ___ Python tracker rep...@bugs.python.org

[issue20309] Not all method descriptors are callable

2015-04-13 Thread Ernest
Changes by Ernest ozial...@gmail.com: -- nosy: +ozialien ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20309 ___ ___ Python-bugs-list mailing list

[issue20309] Not all method descriptors are callable

2015-04-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: needs patch - patch review versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20309 ___

[issue20309] Not all method descriptors are callable

2014-04-17 Thread eryksun
eryksun added the comment: classmethod_descriptor instances such as vars(dict)['fromkeys'] are callable. The first argument has to be a subclass of __objclass__: vars(dict)['fromkeys'].__objclass__ class 'dict' Calling the descriptor creates a bound built-in method; slices the args

[issue20309] Not all method descriptors are callable

2014-04-17 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20309 ___ ___ Python-bugs-list

[issue20309] Not all method descriptors are callable

2014-04-17 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20309 ___

[issue20309] Not all method descriptors are callable

2014-04-17 Thread Christian Hudon
Christian Hudon added the comment: Here is the (first?) complete version of the patch. All tests pass. Note that I had to remove a test that was checking that the object returned from staticmethod was not callable. Let me know if I should add more tests, or if there are any other problems

[issue20309] Not all method descriptors are callable

2014-04-16 Thread Christian Hudon
Christian Hudon added the comment: Work in progress for fixing this bug. (See descr_v1.diff) I converted the curious.py file into additional testcases. I started writing the functions for the tp_call slots for class and static methods. To do: add tests to make sure that the code works for

[issue20309] Not all method descriptors are callable

2014-01-20 Thread Nick Coghlan
Nick Coghlan added the comment: Oh, so that's how that happens :) (the title reverted because I replied via email from a part of the thread before Larry changed the issue name) -- title: Class method descriptors are different between builtin and user classes - Not all method

[issue20309] Not all method descriptors are callable

2014-01-20 Thread R. David Murray
R. David Murray added the comment: See also issue 19072 for previous report of the classmethod problem. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20309 ___

[issue20309] Not all method descriptors are callable

2014-01-20 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20309 ___ ___ Python-bugs-list mailing

[issue20309] Not all method descriptors are callable

2014-01-20 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20309 ___