Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add py::exec() as a shortcut for py::eval<py::eval_statements>() #827

Merged
merged 1 commit into from
May 8, 2017

Conversation

dean0x7d
Copy link
Member

@dean0x7d dean0x7d commented May 1, 2017

py::eval<py::eval_statements>() is a pretty useful function but it's a bit cumbersome to write. This PR adds py::exec() as a shortcut, matching the naming and functionality of Python's exec builtin. (The default version of py::eval() also matches the eval builtin.)

@dean0x7d dean0x7d merged commit 076c738 into pybind:master May 8, 2017
@dean0x7d dean0x7d deleted the exec branch May 8, 2017 20:48
@dean0x7d dean0x7d modified the milestone: v2.2 Aug 13, 2017
@rwgk rwgk mentioned this pull request Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant