Skip to content

Commit 0109de6

Browse files
author
Jesse Dohmann
committed
clarified conversion of classes with iter method
1 parent c353490 commit 0109de6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/docpages/public_api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Example::
7979
>>> export({"list": [1, 2, 3], "set": set([1, 2, 2, 4]), "frozenset": frozenset([1, 2, 2, 4]), "dict": dict(a = 2)})
8080
'<|"list" -> {1, 2, 3}, "set" -> {1, 2, 4}, "frozenset" -> {1, 2, 4}, "dict" -> <|"a" -> 2|>|>'
8181

82-
Any class that has an `__iter__` method is converted to a Wolfram Language :wl:`List`::
82+
If no converter is defined for a class that has an `__iter__` method, it is converted to a Wolfram Language :wl:`List`::
8383

8484
>>> export((i + 2 for i in range(10)))
8585
'"{2, 3, 4, 5, 6, 7, 8, 9, 10, 11}"'

0 commit comments

Comments
 (0)