You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
py, builtin, vm: make str() and repr() and implement some __str__ and __repr__
* builtin: implement repr
* buitin and py/str: make str() work
* py: str, int, bigint: __str__ and __repr__ for
* py: Internal Str, Repr methods
* vm: Make REPL use Repr for printing
Copy file name to clipboardExpand all lines: py/dict.go
+13-2
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,20 @@
5
5
6
6
package py
7
7
8
-
varStringDictType=NewType("dict", "dict() -> new empty dictionary\ndict(mapping) -> new dictionary initialized from a mapping object's\n (key, value) pairs\ndict(iterable) -> new dictionary initialized as if via:\n d = {}\n for k, v in iterable:\n d[k] = v\ndict(**kwargs) -> new dictionary initialized with the name=value pairs\n in the keyword argument list. For example: dict(one=1, two=2)")
8
+
constdictDoc=`dict() -> new empty dictionary
9
+
dict(mapping) -> new dictionary initialized from a mapping object's
10
+
(key, value) pairs
11
+
dict(iterable) -> new dictionary initialized as if via:
12
+
d = {}
13
+
for k, v in iterable:
14
+
d[k] = v
15
+
dict(**kwargs) -> new dictionary initialized with the name=value pairs
16
+
in the keyword argument list. For example: dict(one=1, two=2)`
9
17
10
-
varDictType=NewType("dict", "dict() -> new empty dictionary\ndict(mapping) -> new dictionary initialized from a mapping object's\n (key, value) pairs\ndict(iterable) -> new dictionary initialized as if via:\n d = {}\n for k, v in iterable:\n d[k] = v\ndict(**kwargs) -> new dictionary initialized with the name=value pairs\n in the keyword argument list. For example: dict(one=1, two=2)")
0 commit comments