[issue20228] Argument Clinic should understand Python special methods

2014-01-12 Thread Larry Hastings
Changes by Larry Hastings : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue20228] Argument Clinic should understand Python special methods

2014-01-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset bc5f257f5cc1 by Larry Hastings in branch 'default': Issue #20228: Argument Clinic now has special support for class special http://hg.python.org/cpython/rev/bc5f257f5cc1 -- nosy: +python-dev ___ Python tr

[issue20228] Argument Clinic should understand Python special methods

2014-01-12 Thread Larry Hastings
Larry Hastings added the comment: Updated patch incorporating changes from Georg Brandl. Thanks Georg! -- Added file: http://bugs.python.org/file33434/larry.special.methods.support.patch.2.txt ___ Python tracker

[issue20228] Argument Clinic should understand Python special methods

2014-01-12 Thread Larry Hastings
New submission from Larry Hastings: As per Georg's request (and hacks in other places), Argument Clinic should have support for special methods. To wit: __init__ should be required to be an instance method. Clinic should suppress its methoddef #define. __new__ should be required to be a cla