Skip to content

Commit 0e18abc

Browse files
committed
Fixed __doc__ of org.python.modules.itertools.combinations.
1 parent f0d13f0 commit 0e18abc

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/org/python/modules/itertools/combinations.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,16 @@
1212
import org.python.expose.ExposedNew;
1313
import org.python.expose.ExposedType;
1414

15-
@ExposedType(name = "itertools.combinations", base = PyObject.class)
15+
@ExposedType(name = "itertools.combinations", base = PyObject.class, doc = combinations.combinations_doc)
1616
public class combinations extends PyIterator {
1717

1818
public static final PyType TYPE = PyType.fromClass(combinations.class);
1919
private PyIterator iter;
2020

21-
@ExposedGet
22-
public static PyString __doc__ = new PyString(
21+
public static final String combinations_doc =
2322
"combinations(iterable, r) --> combinations object\n\n" +
24-
"Return successive r-length combinations of elements in the iterable.\n\n" +
25-
"combinations(range(4), 3) --> (0,1,2), (0,1,3), (0,2,3), (1,2,3)");
23+
"Return successive r-length combinations of elements in the iterable.\n\n" +
24+
"combinations(range(4), 3) --> (0,1,2), (0,1,3), (0,2,3), (1,2,3)";
2625

2726
public combinations() {
2827
super();

0 commit comments

Comments
 (0)