Skip to content

Commit 387f367

Browse files
henryiiiYannickJadoul
authored andcommitted
fix: more cleanup
1 parent 102bb08 commit 387f367

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pybind11 can map the following core C++ features to Python:
5656
## Goodies
5757
In addition to the core functionality, pybind11 provides some extra goodies:
5858

59-
- Python 2.7, 3.5+, and PyPy (tested on 7.3) are supported with an implementation-agnostic
59+
- Python 2.7, 3.5+, and PyPy/PyPy3 7.3 are supported with an implementation-agnostic
6060
interface.
6161

6262
- It is possible to bind C++11 lambda functions with captured variables. The

include/pybind11/eval.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void exec(const char (&s)[N], object global = globals(), object local = object()
6666
eval<eval_statements>(s, global, local);
6767
}
6868

69-
#if defined(PYPY_VERSION) && PY_VERSION_HEX >= 0x3000000
69+
#if defined(PYPY_VERSION) && PY_VERSION_HEX >= 0x03000000
7070
template <eval_mode mode = eval_statements>
7171
object eval_file(str, object, object) {
7272
pybind11_fail("eval_file not supported in PyPy3. Use eval");

tests/test_multiple_inheritance.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,12 @@ TEST_SUBMODULE(multiple_inheritance, m) {
193193
.def_readwrite_static("static_value", &VanillaStaticMix2::static_value);
194194

195195

196-
#if !(defined(PYPY_VERSION) && (PYPY_VERSION_NUM < 0x06000000))
197196
struct WithDict { };
198197
struct VanillaDictMix1 : Vanilla, WithDict { };
199198
struct VanillaDictMix2 : WithDict, Vanilla { };
200199
py::class_<WithDict>(m, "WithDict", py::dynamic_attr()).def(py::init<>());
201200
py::class_<VanillaDictMix1, Vanilla, WithDict>(m, "VanillaDictMix1").def(py::init<>());
202201
py::class_<VanillaDictMix2, WithDict, Vanilla>(m, "VanillaDictMix2").def(py::init<>());
203-
#endif
204202

205203
// test_diamond_inheritance
206204
// Issue #959: segfault when constructing diamond inheritance instance

0 commit comments

Comments
 (0)