Skip to content
  • Damien George's avatar
    py: Add iter_buf to getiter type method. · ae8d8675
    Damien George authored
    Allows to iterate over the following without allocating on the heap:
    - tuple
    - list
    - string, bytes
    - bytearray, array
    - dict (not dict.keys, dict.values, dict.items)
    - set, frozenset
    Allows to call the following without heap memory:
    - all, any, min, max, sum
    TODO: still need to allocate stack memory in bytecode for iter_buf.