[issue41361] Converting collections.deque methods to Argument Clinic

2021-03-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the PR :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41361] Converting collections.deque methods to Argument Clinic

2021-03-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 448801da96c70699e2ca0798efdfe86d45f37f06 by Dennis Sweeney in branch 'master': bpo-41361: Optimized argument parsing for deque_rotate (GH-24796) https://github.com/python/cpython/commit/448801da96c70699e2ca0798efdfe86d45f37f06 -- _

[issue41361] Converting collections.deque methods to Argument Clinic

2021-03-08 Thread Dennis Sweeney
Change by Dennis Sweeney : -- pull_requests: +23564 pull_request: https://github.com/python/cpython/pull/24796 ___ Python tracker ___ __

[issue41361] Converting collections.deque methods to Argument Clinic

2021-03-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: Go ahead with in-lining the argument handling for rotate(). The no argument form and the +1 and the -1 case are important enough to warrant the change. Please skip index() and insert() which aren't essential methods. Also, those methods aren't called wi

[issue41361] Converting collections.deque methods to Argument Clinic

2021-03-06 Thread Dennis Sweeney
Dennis Sweeney added the comment: If the argument clinic is too disruptive, would it be okay to inline the equivalent code like this? diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index 90bafb0ea8..d75388abc8 100644 --- a/Modules/_collectionsmodule.c +++ b/Modules/_

[issue41361] Converting collections.deque methods to Argument Clinic

2020-07-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think we should skip applying the clinic to the code. It jumbles the code quite a bit but doesn't give any real benefit. -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___

[issue41361] Converting collections.deque methods to Argument Clinic

2020-07-21 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue41361] Converting collections.deque methods to Argument Clinic

2020-07-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Now Argument Clinic generates more efficient (but more cumbersome) code, so there may be new reasons of using it. Please test the performance of the deque constructor (deque(), deque(()), deque((), 10), deque((), maxlen=10)), methods index() and rotate(),

[issue41361] Converting collections.deque methods to Argument Clinic

2020-07-21 Thread Dong-hee Na
Dong-hee Na added the comment: > collections.deque was intentionally not converted to Argument Clinic, Oh, I see .. -- ___ Python tracker ___

[issue41361] Converting collections.deque methods to Argument Clinic

2020-07-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue20180. collections.deque was intentionally not converted to Argument Clinic, but some of methods were made using more efficient code for parsing arguments by inlining the code generated by Argument Clinic at that time. -- nosy: +rhet

[issue41361] Converting collections.deque methods to Argument Clinic

2020-07-21 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +20725 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21584 ___ Python tracker ___

[issue41361] Converting collections.deque methods to Argument Clinic

2020-07-21 Thread Dong-hee Na
New submission from Dong-hee Na : There was no performance regressin with this change. -- components: Argument Clinic messages: 374068 nosy: corona10, larry priority: normal severity: normal status: open title: Converting collections.deque methods to Argument Clinic type: enhancement ve