[issue8269] Missing return values for PyUnicode C/API functions

2020-02-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Sorry, we missed this issue.

refcounts.dat was updated in other issues.

--
nosy: +serhiy.storchaka
resolution:  -> out of date
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue8269] Missing return values for PyUnicode C/API functions

2012-11-08 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
stage:  - patch review
versions: +Python 3.4 -Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8269
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8269] Missing return values for PyUnicode C/API functions

2011-04-03 Thread Torsten Becker

Torsten Becker torsten.bec...@gmail.com added the comment:

Hi, I read through unicodeobject.c and added the (IMO) proper reference counts 
to the missing functions.  I attached a first patch which adds this to 
Doc/data/refcounts.dat.

The patch also fixes 2 minor glitches in Doc/c-api/unicode.rst, 
PyUnicode_DecodeMBCSStateful stated int instead of Py_ssize_t for it's 
arguments and PyUnicode_FromString had it's return value wrongly formated.

--
keywords: +patch
nosy: +torsten.becker
Added file: http://bugs.python.org/file21514/issue-8269-v1.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8269
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8269] Missing return values for PyUnicode C/API functions

2011-03-08 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8269
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8269] Missing return values for PyUnicode C/API functions

2010-08-07 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8269
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8269] Missing return values for PyUnicode C/API functions

2010-07-10 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 2.7 -Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8269
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8269] Missing return values for PyUnicode C/API functions

2010-04-01 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

I'd like to add that a patch would need to modify Doc/data/refcounts.dat, not 
the .rst files.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8269
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8269] Missing return values for PyUnicode C/API functions

2010-03-31 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

if you are referring to 
http://docs.python.org/dev/py3k/c-api/unicode.html#PyUnicode_FromFormat the 
return type is a PyObject.

See also http://docs.python.org/dev/py3k/c-api/structures.html#PyObject

--
nosy: +ezio.melotti
priority:  - normal

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8269
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8269] Missing return values for PyUnicode C/API functions

2010-03-31 Thread Arnaud Fontaine

Arnaud Fontaine ar...@debian.org added the comment:

I meant whether it returns a new reference or not. For instance, documentation 
for PyUnicode_FromObject() and PyUnicode_AsWideChar() states that a new 
reference is returned, but this is most specified for most functions in Unicode 
Object (at least).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8269
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8269] Missing return values for PyUnicode C/API functions

2010-03-31 Thread Arnaud Fontaine

Arnaud Fontaine ar...@debian.org added the comment:

I meant whether it returns a new reference or not. For instance, documentation 
for PyUnicode_FromObject() and PyUnicode_AsWideChar() states that a new 
reference is returned, but this is not specified for most functions in Unicode 
Object (at least).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8269
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8269] Missing return values for PyUnicode C/API functions

2010-03-31 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Arnaud Fontaine wrote:
 
 Arnaud Fontaine ar...@debian.org added the comment:
 
 I meant whether it returns a new reference or not. For instance, 
 documentation for PyUnicode_FromObject() and PyUnicode_AsWideChar() states 
 that a new reference is returned, but this is not specified for most 
 functions in Unicode Object (at least).

Patches are welcome !

FWIW: Unless otherwise noted, all Unicode APIs that return a PyObject*
give you a new reference.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8269
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8269] Missing return values for PyUnicode C/API functions

2010-03-30 Thread Arnaud Fontaine

New submission from Arnaud Fontaine ar...@debian.org:

For example, PyUnicode_FromFormat() does not specify the return value but it 
does not seem to be only one. I only have a basic knowledge of Python C/API, so 
I am not sure whether it is meaningful.

--
assignee: georg.brandl
components: Documentation
messages: 101959
nosy: arnau, georg.brandl
severity: normal
status: open
title: Missing return values for PyUnicode C/API functions
type: feature request
versions: Python 2.6, Python 3.1, Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8269
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8269] Missing return values for PyUnicode C/API functions

2010-03-30 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +lemburg

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8269
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com