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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user