Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > extending python: which python code calls the c iterator methods?

Reply
Thread Tools

extending python: which python code calls the c iterator methods?

 
 
Johannes Zellner
Guest
Posts: n/a
 
      01-18-2006
Hello,

when extending python there are type methods tp_iter and tp_iternext.
Which python code calls the c iterator methods?

--
Johannes
 
Reply With Quote
 
 
 
 
Fredrik Lundh
Guest
Posts: n/a
 
      01-18-2006
Johannes Zellner wrote:

> when extending python there are type methods tp_iter and tp_iternext.
> Which python code calls the c iterator methods?


iter(obj), for-in obj, etc.

</F>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
extending an stl container and iterator to also find groups of elements alan.f22@gmail.com C++ 2 08-18-2007 07:19 PM
What makes an iterator an iterator? Steven D'Aprano Python 28 04-20-2007 03:34 AM
Difference between Java iterator and iterator in Gang of Four Hendrik Maryns Java 18 12-22-2005 05:14 AM
How to convert from std::list<T*>::iterator to std::list<const T*>::iterator? PengYu.UT@gmail.com C++ 6 10-30-2005 03:31 AM
Iterator doubts, Decision on Iterator usage greg C++ 6 07-17-2003 01:26 PM



Advertisments