[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset a549cd1fc55888e2e287714b25e2cb2251913909 by Victor Stinner in branch '3.9': bpo-46852: Rename float.__set_format__() to float.__setformat__() (GH-31558) (GH-31581)

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2022-02-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29705 pull_request: https://github.com/python/cpython/pull/31581 ___ Python tracker ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2022-02-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0848da19ce8ea037ab1cfc569778e94bf8e3b24a by Victor Stinner in branch '3.10': bpo-46852: Rename float.__set_format__() to float.__setformat__() (GH-31558) (GH-31578)

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2022-02-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +29701 pull_request: https://github.com/python/cpython/pull/31578 ___ Python tracker ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7d03c8be5af2f1559dbc35b775b3116dfd63cfb6 by Victor Stinner in branch 'main': bpo-46852: Rename float.__set_format__() to float.__setformat__() (GH-31558) https://github.com/python/cpython/commit/7d03c8be5af2f1559dbc35b775b3116dfd63cfb6

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2022-02-24 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner nosy_count: 10.0 -> 11.0 pull_requests: +29681 pull_request: https://github.com/python/cpython/pull/31558 ___ Python tracker ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2019-05-07 Thread Julien Palard
Julien Palard added the comment: I rebased the conglomerate patch onto current master, and there's only three methods left, in floatobject.c, it's three methods inside a #if 0, it does not looks interesting to merge it (30 insertions, 12 deletions), so I'm closing this issue. --

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-06-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 57d8de80313c536d409d6a104ae577af8ffc57fb by terryjreedy in branch '3.6': [3.6]bpo-20185: Adjust IDLE test to 3.7 Clinic change [GH-542] (#2116) https://github.com/python/cpython/commit/57d8de80313c536d409d6a104ae577af8ffc57fb -- nosy:

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-06-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2169 ___ Python tracker ___ ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b5c51d3dd95bbfde533655fb86ac0f96f771ba7b by Serhiy Storchaka in branch 'master': bpo-20185: Convert float object implementation to Argument Clinic. (#543) https://github.com/python/cpython/commit/b5c51d3dd95bbfde533655fb86ac0f96f771ba7b

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset fdd42c481edba4261f861fc1dfe24bbd79b5a17a by Serhiy Storchaka in branch 'master': bpo-20185: Convert list object implementation to Argument Clinic. (#542) https://github.com/python/cpython/commit/fdd42c481edba4261f861fc1dfe24bbd79b5a17a

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 0767ad40bfe83525d2ba290cc6eb7c97ce01cdd6 by Serhiy Storchaka in branch 'master': bpo-20185: Convert the marshal module to Argument Clinic. (#541) https://github.com/python/cpython/commit/0767ad40bfe83525d2ba290cc6eb7c97ce01cdd6 --

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1989763f0d0858ce6274f5e1d725b5b8da91a780 by Serhiy Storchaka in branch 'master': bpo-20185: Convert the resource moduel to Argument Clinic. (#545) https://github.com/python/cpython/commit/1989763f0d0858ce6274f5e1d725b5b8da91a780 --

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5c643a028ee86c613d7168ca5bcb8fc94477a09e by Serhiy Storchaka in branch 'master': bpo-20185: Convert typeobject.c to Argument Clinic. (#544) https://github.com/python/cpython/commit/5c643a028ee86c613d7168ca5bcb8fc94477a09e --

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +446 ___ Python tracker ___ ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +447 ___ Python tracker ___ ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +445 ___ Python tracker ___ ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +444 ___ Python tracker ___ ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +443 ___ Python tracker ___ ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file46529/clinic_marshal_v5.diff ___ Python tracker ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a set of patches based on issue20185_conglomerate_v4.diff. They are synchronized with current sources. Addressed Martin's comments,converted list.index(), float.__round__() and resource.prlimit() and made other minor changes. -- Added file:

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file46530/clinic_resource_v5.diff ___ Python tracker ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file46527/clinic_list_v5.diff ___ Python tracker ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file46528/clinic_type_v5.diff ___ Python tracker ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 725c112c941ca6ac7fb995449f85501ea100647e by Serhiy Storchaka in branch 'master': Issue #20185: Converted the gc module to Argument Clinic. https://github.com/python/cpython/commit/725c112c941ca6ac7fb995449f85501ea100647e --

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-02-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 50958e13c833 by Serhiy Storchaka in branch 'default': Issue #20185: Converted the gc module to Argument Clinic. https://hg.python.org/cpython/rev/50958e13c833 -- ___ Python tracker

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-02-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch for the gc module is synchronized with current sources and addresses Martin's comments. The only problem with this patch is that it exposes the default value for gc.collect() argument as constant 2 in Python instead of actual

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-02-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9f889393ab0362229c42bc31056f3ef9735a1d27 by Serhiy Storchaka in branch 'master': Issue #20185: Converted the int class to Argument Clinic. https://github.com/python/cpython/commit/9f889393ab0362229c42bc31056f3ef9735a1d27 --

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-02-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset aa7ac93d23b2 by Serhiy Storchaka in branch 'default': Issue #20185: Converted the int class to Argument Clinic. https://hg.python.org/cpython/rev/aa7ac93d23b2 -- ___ Python tracker

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-01-29 Thread Martin Panter
Martin Panter added the comment: longobject_v5 looks good to me -- ___ Python tracker ___ ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-01-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file46449/clinic_longobject_v5.patch ___ Python tracker ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-01-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch for longobject.c addresses Martin's comments. -- Added file: http://bugs.python.org/file46392/clinic_longobject_v4.patch ___ Python tracker

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-01-21 Thread Martin Panter
Martin Panter added the comment: Will keep this in mind, but my time is rather limited, so I may not get to it (and I wouldn’t want to discourage other people from working on it) -- ___ Python tracker

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-01-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Martin, you are the one who looked at these patches for last three years. Do you want to take this issue to you and update Vajrasky's patches? Now there is good performance argument for converting builtins to Argument Clinic. --

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2016-12-18 Thread Martin Panter
Martin Panter added the comment: I finished reviewing the most recent patches and left some comments. Perhaps it is worth splitting the conglomerate patch up. I don’t see any point holding back some modules while things are tweaked in unrelated files. My biggest concern is casting function

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2016-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Victor, you perhaps could just use NULL as default: +source: object = NULL -- ___ Python tracker ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2016-12-10 Thread Martin Panter
Martin Panter added the comment: Zach’s comments on float seem to have been addressed (https://bugs.python.org/review/20185/diff2/10940:10949/Objects/floatobject.c). The comments on the resource module were about return converters:

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2016-12-10 Thread Martin Panter
Martin Panter added the comment: Julien, to help push these changes forward, I suggest start by rebasing and reviewing the conglomerate patch, since it seems that was almost ready. Reading through the thread, it seems the current status is: 1. _crypt module handled elsewhere by Antoine 2.

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2016-12-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset c62352ec21bc by Victor Stinner in branch 'default': Issue #20185: Convert _warnings.warn() to Argument Clinic https://hg.python.org/cpython/rev/c62352ec21bc -- nosy: +python-dev ___ Python tracker

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2016-11-30 Thread Julien Palard
Julien Palard added the comment: Look like this has never been applied, any reason for this? Tip has probably highly diverged, but I may try to rebase it, should I? -- nosy: +mdk ___ Python tracker

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2016-11-24 Thread Martin Panter
Changes by Martin Panter : -- dependencies: +Argument Clinic for bisect.bisect_left ___ Python tracker ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2015-02-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- components: +Argument Clinic ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___ ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-10-22 Thread Josh Rosenberg
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com: -- nosy: +josh.r ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___ ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: All the Derby patches should only go into trunk at this point. -- versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-08 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the updated patch for gc module based on Zachary's review. -- Added file: http://bugs.python.org/file33988/clinic_gc_v4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-08 Thread Vajrasky Kok
Changes by Vajrasky Kok sky@speaklikeaking.com: Removed file: http://bugs.python.org/file33954/clinic_longobject_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-08 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the updated patch for long object based on Zachary's review. -- Added file: http://bugs.python.org/file33989/clinic_longobject_v3.patch ___ Python tracker rep...@bugs.python.org

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-08 Thread Vajrasky Kok
Changes by Vajrasky Kok sky@speaklikeaking.com: Removed file: http://bugs.python.org/file33951/clinic_gc_v3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-07 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the updated patch for long object. A couple of functions that can not be converted: - long_new It has custom processing before parsing arguments part. - long_round Not supported by clinic. _ __trunc__, __floor__, __ceil__ all are mapped to long_long.

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-07 Thread Vajrasky Kok
Changes by Vajrasky Kok sky@speaklikeaking.com: Removed file: http://bugs.python.org/file33587/clinic_longobject.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-06 Thread Vajrasky Kok
Changes by Vajrasky Kok sky@speaklikeaking.com: Removed file: http://bugs.python.org/file33931/issue20185_conglomerate_v3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-06 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the updated patch for gc module. Some functions that can not be converted: - set_threshold(threshold0, [threshold1, threshold2]) Don't know what default value to give to threshold1, threshold2. static struct gc_generation generations[NUM_GENERATIONS] = {

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-06 Thread Vajrasky Kok
Changes by Vajrasky Kok sky@speaklikeaking.com: Removed file: http://bugs.python.org/file33477/clinic_gc.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-06 Thread Vajrasky Kok
Vajrasky Kok added the comment: About rlimit, I think we can use negative number for any member of the struct. But the thing is I am not really sure whether it's okay or not. So it's better on the safe side. I'll finish longobject in one or two days. --

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-06 Thread Vajrasky Kok
Changes by Vajrasky Kok sky@speaklikeaking.com: Removed file: http://bugs.python.org/file33944/clinic_gc_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-05 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the patch addressing Zachary's review (Thanks!). There are some Zachary's suggestions that I could not implement: 1. float_conjugate_impl,/* nb_float */ I think this should still be the real function (the parser), not the impl. The impl

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-05 Thread Vajrasky Kok
Vajrasky Kok added the comment: Zachary, Looking again, that one is non-trivial, but still doable. You just need a this means an error happened value to initialize rl to, and return that value instead of NULL. How do you give this means an error happened value to struct rlimit? struct

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-05 Thread Zachary Ware
Zachary Ware added the comment: Vajrasky: Note that you can reply to individual review comments within Rietveld; this way context is kept and replies are easier :). The same people get the message either way. Anyhow, for float point 1: you can use I believe you can use (unaryfunc) for

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-05 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Removed file: http://bugs.python.org/file33746/clinic_typeobject_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-05 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Removed file: http://bugs.python.org/file33744/clinic_resource_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-05 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Removed file: http://bugs.python.org/file33644/clinic_marshal_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-05 Thread Zachary Ware
Zachary Ware added the comment: Clearing nosy for file cleaning, will restore: larry,nadeem.vawda,serhiy.storchaka,vajrasky,zach.ware -- nosy: -larry, nadeem.vawda, serhiy.storchaka, vajrasky ___ Python tracker rep...@bugs.python.org

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-05 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Removed file: http://bugs.python.org/file33678/clinic_marshal_v3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-05 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Removed file: http://bugs.python.org/file33767/clinic_listobject_v3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-05 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Removed file: http://bugs.python.org/file33479/clinic_marshal.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-05 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Removed file: http://bugs.python.org/file33643/clinic_floatobject.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-05 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +larry, nadeem.vawda, serhiy.storchaka, vajrasky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-05 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Removed file: http://bugs.python.org/file33769/clinic_marshal_v4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-05 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Removed file: http://bugs.python.org/file33778/issue20185_conglomerate.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-05 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Removed file: http://bugs.python.org/file33773/clinic_floatobject_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-05 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Removed file: http://bugs.python.org/file33887/issue20185_conglomerate_v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-05 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Removed file: http://bugs.python.org/file33612/clinic_listobject.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-05 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Removed file: http://bugs.python.org/file33641/clinic_listobject_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-05 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Removed file: http://bugs.python.org/file33475/clinic_resource.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-05 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Removed file: http://bugs.python.org/file33562/clinic_typeobject.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-05 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- Removed message: http://bugs.python.org/msg210340 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-05 Thread Zachary Ware
Zachary Ware added the comment: Ok, current status of this issue as I see it: Objects/typeobject.c:part of conglomerate patch, LGTM Objects/longobject.c:awaiting revision based on review Objects/listobject.c:part of conglomerate patch, LGTM Objects/floatobject.c: part of

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-04 Thread Zachary Ware
Zachary Ware added the comment: Ok, so my changes to CONVERT_TO_DOUBLE don't fly with gcc, so that's out. In the two cases where convert_to_double wants a PyObject *, we could declare PyObject *objself = (PyObject *)self;, but that's not particularly appealing. I'll leave the whole PyObject

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-03 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the updated patch addressing Zachary's reviews (Thanks!). However, there are some reviews that I could not implement. 1. This is a good candidate for a custom return converter. I can not synchronize struct rlimit and NULL return values. 2. Should be

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-02-03 Thread Zachary Ware
Zachary Ware added the comment: Vajrasky Kok wrote: However, there are some reviews that I could not implement. 1. This is a good candidate for a custom return converter. I can not synchronize struct rlimit and NULL return values. Looking again, that one is non-trivial, but still doable.

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-28 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the updated patch for list module based on Zachary and Serhiy's reviews. -- Added file: http://bugs.python.org/file33767/clinic_listobject_v4.patch ___ Python tracker rep...@bugs.python.org

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-28 Thread Vajrasky Kok
Vajrasky Kok added the comment: Forgot to say that, in list module, anything is convertable except __getitem__. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-28 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the updated patch for marshal module based on Zachary's review. -- Added file: http://bugs.python.org/file33769/clinic_marshal_v4.patch ___ Python tracker rep...@bugs.python.org

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-28 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the updated patch for float object based on Zachary and Serhiy's reviews. Some methods that can not be converted are: __getnewargs__, __round__, float_new. So these files are ready for Python 3.4: resource, typeobject, listobject, and floatobject.

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-28 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___ ___ Python-bugs-list

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-28 Thread Zachary Ware
Zachary Ware added the comment: Attaching a conglomerate patch consisting of clinic_resource_v2.patch, clinic_typeobject_v2.patch, clinic_listobject_v3.patch, clinic_marshal_v4.patch, and clinic_floatobject_v2.patch, with updated (post-#20326) clinic output, for easier review. --

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-27 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the updated patch for resource module based on Zachary's comment. -- Added file: http://bugs.python.org/file33744/clinic_resource_v2.patch ___ Python tracker rep...@bugs.python.org

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-27 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the updated patch for type module based on Zachary's comment. However, I can not convert this method. {__subclasshook__, object_subclasshook, METH_CLASS | METH_VARARGS, object_subclasshook_doc}, static PyObject * object_subclasshook(PyObject *cls,

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-24 Thread Vajrasky Kok
Vajrasky Kok added the comment: Updated marshal patch. I just learned we don't need to release pybuffer (y*) manually. -- Added file: http://bugs.python.org/file33678/clinic_marshal_v3.patch ___ Python tracker rep...@bugs.python.org

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-23 Thread Vajrasky Kok
Vajrasky Kok added the comment: This is updated patch for marshal incorporating the fixes from clinic. Now, I can use 'bytes' named argument and default value of marshal.version instead of hardcoded number. -- Added file: http://bugs.python.org/file33644/clinic_marshal_v2.patch

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-22 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the patch for listobject. A couple of thoughts: 1. I can not convert this signature: if (!PyArg_ParseTuple(args, O|OO:index, v, _PyEval_SliceIndex, start, _PyEval_SliceIndex, stop))

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 1. In list.index use custom converter. /*[python input] class slice_index_converter(CConverter): type = 'Py_ssize_t' converter = '_PyEval_SliceIndex' [python start generated code]*/ 2. In list.__init__ use either unspecified default value or

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-22 Thread Larry Hastings
Larry Hastings added the comment: I'll fix the return NULL problem. However, you are using optional groups in the list __init__. The original doesn't use them. Please stop using optional groups in functions that don't require them. -- ___ Python

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-22 Thread Vajrasky Kok
Vajrasky Kok added the comment: Thanks, Serhiy, for the pointer. Now, I am able to convert the method using _PyEval_SliceIndex function. Sorry, Larry. I used optional groups in __init__ because I didn't know about unspecified. Here is the updated patch for listobject. One thought, for

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-22 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the patch for floatobject. I did not convert 2 sites. The first is the round method which clinic explicitly does not support. The second one is the new method. This is the snippet of new method: float_new(PyTypeObject *type, PyObject *args, PyObject

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-21 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the patch for longobject. There are two sites which I couldn't convert. The first is the constructor which is complicated. The other one is __round__ which clinic explicitly does not support. -- Added file:

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-20 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the patch for typeobject. I didn't convert the new method. It's so complicated. It counts whether how many arguments or keywords you pass. It asserts the args before parsing the args. I don't think clinic supports this. This is the code: assert(args

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-20 Thread Vajrasky Kok
Changes by Vajrasky Kok sky@speaklikeaking.com: Removed file: http://bugs.python.org/file33561/clinic_typeobject.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-20 Thread Vajrasky Kok
Changes by Vajrasky Kok sky@speaklikeaking.com: Added file: http://bugs.python.org/file33562/clinic_typeobject.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20185 ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-01-16 Thread Vajrasky Kok
Vajrasky Kok added the comment: With little modification: class PID_converter(int_converter): type = 'pid_t' format_unit = ' _Py_PARSE_PID ' It works. Thanks! But I got unnecessary empty string: if (!PyArg_ParseTuple(args, _Py_PARSE_PID i:prlimit, pid, resource)) It should be: if

  1   2   >