[Python-Dev] PyObject_GenericGetIter() (original) (raw)

Greg Ewing greg@cosc.canterbury.ac.nz
Tue, 18 Mar 2003 13:41:18 +1200 (NZST)


Why? It's not generic. It's specific (to iterators).

That's why I voted for PyIter_GenericGetIter and not PyObject_GenericGetIter.

PyIter_ means it has to do with iterators; Generic means it's a default implementation; GetIter identifies which type slot it implements.

Hmmm... maybe we need a formal grammar for Python/C API function names, to help settle questions like this...

Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@cosc.canterbury.ac.nz +--------------------------------------+