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

Discussion in 'Python' started by Johannes Zellner, Jan 18, 2006.

  1. Hello,

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

    --
    Johannes
    Johannes Zellner, Jan 18, 2006
    #1
    1. Advertising

  2. 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>
    Fredrik Lundh, Jan 18, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Honne Gowda A
    Replies:
    2
    Views:
    861
    Karl Heinz Buchegger
    Oct 31, 2003
  2. andy6
    Replies:
    2
    Views:
    752
    andy6 via DotNetMonster.com
    Jun 9, 2006
  3. Replies:
    2
    Views:
    382
  4. Marc Heiler
    Replies:
    1
    Views:
    129
    Stefan Lang
    Jan 26, 2008
  5. Kenneth McDonald
    Replies:
    5
    Views:
    301
    Kenneth McDonald
    Sep 26, 2008
Loading...

Share This Page