Issue 13341: Incorrect documentation for "u" PyArg_Parse format unit (original) (raw)

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/57550

classification

Title: Incorrect documentation for "u" PyArg_Parse format unit
Type: behavior Stage: resolved
Components: Documentation, Unicode Versions: Python 2.7

process

Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Ilya.Novoselov, docs@python, ezio.melotti, loewis, martin.panter, nanjekyejoannah, vstinner
Priority: normal Keywords:

Created on 2011-11-04 13:20 by Ilya.Novoselov, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (6)
msg147002 - (view) Author: Ilya Novoselov (Ilya.Novoselov) Date: 2011-11-04 13:20
Documentation states that u format unit returns "buffer of 16-bit Unicode (UTF-16) data" while it returns pointer to internal buffer of unicode data, which is either UCS-16 or UCS-32 http://docs.python.org/c-api/arg.html
msg147024 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011-11-04 19:11
Can you write a patch?
msg147055 - (view) Author: Ilya Novoselov (Ilya.Novoselov) Date: 2011-11-04 22:40
No, I don't feel like I'm up to standard yet.
msg244082 - (view) Author: Martin Panter (martin.panter) * (Python committer) Date: 2015-05-26 05:22
The Python 3 documentation was updated in Issue 8593 (revision 5d4a5655575f). Perhaps some of the wording also applies to Python 2 and you can just copy it.
msg350417 - (view) Author: Joannah Nanjekye (nanjekyejoannah) * (Python committer) Date: 2019-08-25 01:00
This is has taken years but am curious, are we allowed to patch Python 2 given its EOL is almost due.
msg350577 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-08-26 22:05
I don't think that it's still worth it to update Python 2 documentation at this point. I suggest to focus on enhancement of the Python 3 documentation instead.
History
Date User Action Args
2022-04-11 14:57:23 admin set github: 57550
2020-11-30 10:25:48 iritkatriel set status: open -> closedresolution: out of datestage: resolved
2019-08-26 22:05:01 vstinner set messages: +
2019-08-25 01:00:21 nanjekyejoannah set nosy: + nanjekyejoannahmessages: +
2015-05-26 05:22:24 martin.panter set nosy: + martin.pantermessages: +
2012-08-19 07:26:12 mikehoy set nosy: - mikehoy
2011-11-07 16:33:59 eric.araujo set nosy: + loewis
2011-11-05 04:11:59 mikehoy set nosy: + mikehoy
2011-11-04 22:40:53 Ilya.Novoselov set messages: +
2011-11-04 19:11:09 vstinner set nosy: + vstinnermessages: +
2011-11-04 13:20:13 Ilya.Novoselov create