1. 18 Aug, 2016 1 commit
  2. 17 Aug, 2016 1 commit
    • Glen Walker's avatar
      Support keep_alive where nurse may be None · f45bb585
      Glen Walker authored
      For example keep_alive<0,1>() should work where the return value may sometimes be None. At present a "Could not allocate weak reference!" exception is thrown.
      Update documentation to clarify behaviour of keep_alive when nurse is None or does not support weak references.
      f45bb585
  3. 15 Aug, 2016 1 commit
  4. 14 Aug, 2016 1 commit
  5. 13 Aug, 2016 34 commits
  6. 12 Aug, 2016 1 commit
    • 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
  7. 11 Aug, 2016 1 commit