[issue28211] Wrong return value type in the doc of PyMapping_Keys/Values/Items

2016-09-26 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for your report and patch Xiang Zhang!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28211] Wrong return value type in the doc of PyMapping_Keys/Values/Items

2016-09-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 68fc808bed9f by Serhiy Storchaka in branch '3.5':
Issues #25909, #28211: Restored correct documentation of PyMapping_Items,
https://hg.python.org/cpython/rev/68fc808bed9f

New changeset 21336392a680 by Serhiy Storchaka in branch '3.6':
Issues #25909, #28211: Restored correct documentation of PyMapping_Items,
https://hg.python.org/cpython/rev/21336392a680

New changeset 1229de1ab5c8 by Serhiy Storchaka in branch 'default':
Issues #25909, #28211: Restored correct documentation of PyMapping_Items,
https://hg.python.org/cpython/rev/1229de1ab5c8

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28211] Wrong return value type in the doc of PyMapping_Keys/Values/Items

2016-09-20 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Hmm, the documentation was changed in issue25909, but seems I was wrong. Since 
PyDict_Items() returns a list, but not a dict view, PyMapping_Items() can 
return only a list or a tuple.

--
nosy: +martin.panter, mine0901, orsenthil, python-dev, r.david.murray, 
serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28211] Wrong return value type in the doc of PyMapping_Keys/Values/Items

2016-09-20 Thread Xiang Zhang

New submission from Xiang Zhang:

PyMapping_Keys/Values/Items can only return a list or tuple. Even in the case 
of a dict, it returns a list. But the doc tells a dictionary view will be 
returned in case of dict, which is wrong.

--
assignee: docs@python
components: Documentation
files: mapping_doc.patch
keywords: patch
messages: 277018
nosy: docs@python, xiang.zhang
priority: normal
severity: normal
stage: patch review
status: open
title: Wrong return value type in the doc of PyMapping_Keys/Values/Items
versions: Python 3.5, Python 3.6, Python 3.7
Added file: http://bugs.python.org/file44752/mapping_doc.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com