2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-31 08:22:18 +00:00

fix for next() -> __next__() name change in py3k

[SVN r53322]
This commit is contained in:
Haoyu Bai
2009-05-27 19:43:52 +00:00
parent 86f44ed159
commit caf661cfeb

View File

@@ -129,7 +129,11 @@ namespace detail
return class_<range_>(name, no_init)
.def("__iter__", identity_function())
.def(
#if PY_VERSION_HEX >= 0x03000000
"__next__"
#else
"next"
#endif
, make_function(
next_fn()
, policies