[issue29311] Argument Clinic: convert dict methods

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: > IMO, you've made the docstrings for pure Python versions of > collections.OrderedDict worse. The previous docstrings were clearer. Can you please elaborate? Please reopen the issue or open a new one if you consider that it's worth it (this issue is

[issue29311] Argument Clinic: convert dict methods

2017-05-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: IMO, you've made the docstrings for pure Python versions of collections.OrderedDict worse. The previous docstrings were clearer. Please note, there is a high bar for altering docstrings that have worked well (been deployed with success) for over 15 years

[issue29311] Argument Clinic: convert dict methods

2017-02-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7baf0a0b90da5bb0b1ed5d27374f5a6b1c7b5dae by Serhiy Storchaka in branch 'master': Issue #29311: Regenerate Argument Clinic. https://github.com/python/cpython/commit/7baf0a0b90da5bb0b1ed5d27374f5a6b1c7b5dae --

[issue29311] Argument Clinic: convert dict methods

2017-02-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 222b9392a83b by Serhiy Storchaka in branch 'default': Issue #29311: Regenerate Argument Clinic. https://hg.python.org/cpython/rev/222b9392a83b -- ___ Python tracker

[issue29311] Argument Clinic: convert dict methods

2017-02-01 Thread STINNER Victor
STINNER Victor added the comment: Thank you very much for the docstring enhancement Serhiy! I like your new docstrings. It seems like all known issues are now fixed, so I close the issue. Thanks Naoki and Martin too for the reviews. -- resolution: -> fixed status: open -> closed

[issue29311] Argument Clinic: convert dict methods

2017-01-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your review Martin. -- ___ Python tracker ___ ___

[issue29311] Argument Clinic: convert dict methods

2017-01-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset ffc0840762e4 by Serhiy Storchaka in branch 'default': Issues #29311, #29289: Fixed and improved docstrings for dict and OrderedDict https://hg.python.org/cpython/rev/ffc0840762e4 -- ___ Python tracker

[issue29311] Argument Clinic: convert dict methods

2017-01-21 Thread Martin Panter
Martin Panter added the comment: Patch looks good, apart from one little thing (see review) -- ___ Python tracker ___

[issue29311] Argument Clinic: convert dict methods

2017-01-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Proposed patch fixes/improves docstrings of dict and OrderedDict methods. -- nosy: +eric.snow, rhettinger stage: -> resolved Added file: http://bugs.python.org/file46374/dict-docstrings.patch ___ Python tracker

[issue29311] Argument Clinic: convert dict methods

2017-01-19 Thread Martin Panter
Martin Panter added the comment: D.get(key[, default]) -> D[key] if key in D, else default. There is no big problem with that. D is defined at the start. The only thing I would have suggested is avoid using square brackets to mean two things in the one expression. Since it is no longer the

[issue29311] Argument Clinic: convert dict methods

2017-01-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There was a context in old docstrings removed in new docstrings. It is not always possible just to copy docstrings in Argument Clinic. Sometimes rewriting docstrings is the hardest part of converting to Argument Clinic. I suggest either restore the context

[issue29311] Argument Clinic: convert dict methods

2017-01-19 Thread STINNER Victor
STINNER Victor added the comment: > There are same problems with docstrings as in OrderedDict. The name "D" is > not defined. I copied the old docstring to AC. Python 3.6 doc: --- get(...) D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None. --- D was already implicitly "self".

[issue29311] Argument Clinic: convert dict methods

2017-01-19 Thread STINNER Victor
STINNER Victor added the comment: > Argument Clinic generates reasonable name for the parameter "default". > -default as failobj: object = None > +default: object = None Thanks, that's a better name :-) FYI I wanted to limit changes when converting to AC, the change is already big

[issue29311] Argument Clinic: convert dict methods

2017-01-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are same problems with docstrings as in OrderedDict. The name "D" is not defined. -- nosy: +serhiy.storchaka ___ Python tracker

[issue29311] Argument Clinic: convert dict methods

2017-01-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset fe1d83fe29d6 by Serhiy Storchaka in branch 'default': Issue #29311: Argument Clinic generates reasonable name for the parameter "default". https://hg.python.org/cpython/rev/fe1d83fe29d6 -- ___ Python

[issue29311] Argument Clinic: convert dict methods

2017-01-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 00c63ee66e0c by Victor Stinner in branch 'default': dict.get() and dict.setdefault() now use AC https://hg.python.org/cpython/rev/00c63ee66e0c -- nosy: +python-dev ___ Python tracker

[issue29311] Argument Clinic: convert dict methods

2017-01-18 Thread INADA Naoki
INADA Naoki added the comment: LGTM -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29311] Argument Clinic: convert dict methods

2017-01-18 Thread STINNER Victor
STINNER Victor added the comment: dict.patch converts two methods to Argument Clinic: * get() * setdefault() pop() requires the issue #29299, its signature must not show any default value for the second parameter. dict.update() is special, so I created a dedicated issue: issue #29312.

[issue29311] Argument Clinic: convert dict methods

2017-01-18 Thread STINNER Victor
New submission from STINNER Victor: The dict type has multiple methods which use METH_VARARGS or METH_VARARGS|METH_KEYWORDS calling convention, whereras there is no a new faster METH_FASTCALL calling convention which avoids temporary tuple/dict to pass arguments. -- components: