pybind / pybind11

Seamless operability between C++11 and Python
https://pybind11.readthedocs.io/
Other
15.55k stars 2.09k forks source link

feat: add a pybind function to clear a list. #5153

Closed TCKnet closed 3 months ago

TCKnet commented 3 months ago

Description

Add py::list::clear().

See also: https://stackoverflow.com/questions/23489177/how-to-clear-a-pylistobject

Suggested changelog entry:

``py::list`` gained a ``.clear()`` method.
TCKnet commented 3 months ago

It seems that this is a system/test configuration/version issue rather than an issue with the CL per se. Could a maintainer have a look? Tthat would be awesome! Thank you very much in advance!

Using cmake version 3.29.4 Error: Could not find linux asset for cmake version 3.29.4 Using cmake version 3.29.4 Error: Could not find darwin asset for cmake version 3.29.4

rwgk commented 3 months ago

About to close/reopen this PR to trigger a fresh rerun of the GitHub Actions.