1. 13 Aug, 2016 35 commits
  2. 12 Aug, 2016 2 commits
    • Wenzel Jakob's avatar
      Merge pull request #282 from jagerman/key-iterators · 09f40e01
      Wenzel Jakob authored
      Add pybind11::make_key_iterator for map iteration
      09f40e01
    • Jason Rhinelander's avatar
      Added pybind11::make_key_iterator for map iteration · 5aa85be2
      Jason Rhinelander authored
      This allows exposing a dict-like interface to python code, allowing
      iteration over keys via:
      
          for k in custommapping:
              ...
      
      while still allowing iteration over pairs, so that you can also
      implement 'dict.items()' functionality which returns a pair iterator,
      allowing:
      
          for k, v in custommapping.items():
              ...
      
      example-sequences-and-iterators is updated with a custom class providing
      both types of iteration.
      5aa85be2
  3. 11 Aug, 2016 3 commits