[issue13783] Clean up PEP 380 C API additions

2012-06-16 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset cfbf6aa5c9e3 by Nick Coghlan in branch 'default': Issue #13783: the PEP 380 implementation no longer expands the public C API http://hg.python.org/cpython/rev/cfbf6aa5c9e3 -- nosy: +python-dev

[issue13783] Clean up PEP 380 C API additions

2012-06-16 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 438b861e2edb by Nick Coghlan in branch 'default': Issue #13783: PEP 380 cleanup part 2, using the new identifier APIs in the generator implementation http://hg.python.org/cpython/rev/438b861e2edb --

[issue13783] Clean up PEP 380 C API additions

2012-06-16 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I left the name of the new private API as _PyGen_FetchStopIterationValue. If anyone wants to make it public, they can raise a new issue to give it a more appropriate name (and move the definition accordingly). PyStopIteration_Create is simply

[issue13783] Clean up PEP 380 C API additions

2012-06-13 Thread Mark Shannon
Mark Shannon m...@hotpy.org added the comment: There is one call to PyGen_FetchStopIterationValue in ceval.c. But I don't think it should be public. There is no real reason for the Gen in the name. The function is used by generator handling code, but the code itself relates to StopIteration.

[issue13783] Clean up PEP 380 C API additions

2012-06-12 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: docs@python - ncoghlan priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13783 ___

[issue13783] Clean up PEP 380 C API additions

2012-01-21 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: 'PyStopIteration_Create' is just a trivial wrapper: PyObject * PyStopIteration_Create(PyObject *value) { return PyObject_CallFunctionObjArgs(PyExc_StopIteration, value, NULL); } It is not needed. As for 'PyGen_FetchStopIterationValue', does

[issue13783] Clean up PEP 380 C API additions

2012-01-14 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Also check any GetAttr and CallMethod operations to see if they should be moved over to the new *Id variants. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13783

[issue13783] Clean up PEP 380 C API additions

2012-01-13 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: Georg noted that the PEP 380 patch added a couple of new C interfaces without documenting them. These interfaces need to be either: 1. Documented; 2. Made private; or 3. Removed (if they're completely trivial) PyGen_FetchStopIterationValue:

[issue13783] Clean up PEP 380 C API additions

2012-01-13 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The current use of PyStopIteration_Create in genobject.c can probably be replaced with PyErr_SetObject(PyExc_StopIteration, value) anyway. -- ___ Python tracker rep...@bugs.python.org