This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Default signatures for slots should be positional-only
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: larry Nosy List: larry, ncoghlan, yselivanov
Priority: normal Keywords: patch

Created on 2014-02-09 13:47 by larry, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
larry.slots.are.positional.only.1.diff larry, 2014-02-09 13:47 review
Messages (3)
msg210763 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2014-02-09 13:47
I just realized that the signatures for builtin slot functions (__iadd__, __delitem__, etc) only accept positional-only arguments.  But when I added the signatures by hand to all the slots I didn't mark them as positional-only.  The attached patch remedies that oversight.
msg210787 - (view) Author: Nick Coghlan (ncoghlan) * (Python committer) Date: 2014-02-09 20:31
Good catch, and the patch looks fine to me.
msg210802 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2014-02-10 06:56
I used a different issue number in Misc/NEWS, but this was fixed in revision 28aef6e22736 checked in just a little while ago.
History
Date User Action Args
2022-04-11 14:57:58adminsetgithub: 64775
2014-02-10 06:56:53larrysetstatus: open -> closed
resolution: fixed
messages: + msg210802

stage: patch review -> resolved
2014-02-09 20:31:54ncoghlansetmessages: + msg210787
2014-02-09 13:47:33larrycreate