Message208444
Here's a patch. Wasn't as easy as I thought, it kind of took all day.
Changes include:
* __init__ and __new__ always take kwargs.
* if the function signature doesn't accept keyword arguments,
it calls _PyArg_NoKeywords().
* __init__ returns int, not PyObject *.
* __init__ and __new__ should support all argument parsing
scenarios (unpack tuple, positional only, etc).
Pre-exiting behavior:
* The C function basename chosen for __new__ is just the name of
the class, it doesn't end in __new__.
* The methoddef #define is suppressed. |
|
Date |
User |
Action |
Args |
2014-01-19 04:40:03 | larry | set | recipients:
+ larry, serhiy.storchaka |
2014-01-19 04:40:03 | larry | set | messageid: <1390106403.12.0.602072346214.issue20294@psf.upfronthosting.co.za> |
2014-01-19 04:40:03 | larry | link | issue20294 messages |
2014-01-19 04:39:59 | larry | create | |
|