We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cbdfef commit edfec36Copy full SHA for edfec36
1 file changed
py/object.go
@@ -0,0 +1,19 @@
1
+// Functions to operate on any object
2
+
3
+package py
4
5
+import (
6
+ "fmt"
7
+)
8
9
+// Gets the attribute attr from object or returns nil
10
+func ObjectGetAttr(o Object, attr string) Object {
11
+ // FIXME
12
+ return nil
13
+}
14
15
+// Gets the repr for an object
16
+func ObjectRepr(o Object) Object {
17
18
+ return String(fmt.Sprintf("<%s %v>", o.Type().Name, o))
19
0 commit comments