• Henry Schreiner's avatar
    feat: Slice allowing None with py::object or std::optional (#1101) · b06a6f4f
    Henry Schreiner authored
    * Adding nullptr slices
    
    Using example from #1095
    
    Some fixes from @wjakob's review
    
    Stop clang-tidy from complaining
    
    New proposal for py::slice constructor
    
    Eric's suggested changes: simplify testing; shift def's
    
    * chore: drop MSVC pragma (hopefully unneeded)
    
    * Apply suggestions from code review
    b06a6f4f
test_sequences_and_iterators.cpp 16.5 KB