[New-bugs-announce] [issue4897] PyIter_Next documentation inconsistent with implementation

garcia report at bugs.python.org
Fri Jan 9 15:52:16 CET 2009


New submission from garcia <ronald.garcia at rice.edu>:

The documentation for PyIter_Next says it will raise TypeError if the 
object passed to it is not an iterator.  However, the implementation in 
abstract.c performs an assert rather than raising TypeError.  I would 
prefer if the implementation were adjusted to match the documentation 
rather than vice-versa.

----------
components: None
messages: 79472
nosy: garcia
severity: normal
status: open
title: PyIter_Next documentation inconsistent with implementation
type: behavior
versions: Python 2.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4897>
_______________________________________


More information about the New-bugs-announce mailing list