Skip to content

Commit 200c2b4

Browse files
author
Christopher Doris
committed
adds pynext
1 parent 746a0db commit 200c2b4

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

docs/src/pythoncall.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ pyissubclass
130130
pyisinstance
131131
pyhash
132132
pyiter
133+
pynext
133134
```
134135

135136
### Conversion to Julia

src/abstract/iter.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ Equivalent to `iter(x)` in Python.
66
pyiter(x) = pynew(errcheck(@autopy x C.PyObject_GetIter(getptr(x_))))
77
export pyiter
88

9+
"""
10+
pynext(x)
11+
12+
Equivalent to `next(x)` in Python.
13+
"""
14+
pynext(x) = pybuiltins.next(x)
15+
export pynext
16+
917
"""
1018
unsafe_pynext(x)
1119

0 commit comments

Comments
 (0)