Commit Graph

22 Commits

Author SHA1 Message Date
Adam Kelly
7c3cd319b2 objbytes: str -> repr 2018-09-02 12:09:57 +01:00
Adam Kelly
7277e63a53 Add vm.to_repr and call for formatting list/tuple/dict elements. 2018-09-02 12:09:57 +01:00
Adam Kelly
70f6d73001 Add __repr__ to objstr. 2018-09-02 12:09:57 +01:00
Adam Kelly
c8d8528bff object.__str__ delegates to __repr__. 2018-09-02 12:09:57 +01:00
Adam Kelly
76344e5023 Add object.__init__ 2018-09-02 10:57:30 +01:00
Adam Kelly
e68dbf6705 Ints aren't mutable, change int.__init__ to int.__new__ 2018-09-02 10:50:03 +01:00
Adam Kelly
dd24727c0e Use __eq__ methods inequality too. 2018-09-01 22:29:20 +01:00
Adam Kelly
8d8816ce04 Merge branch 'master' into equality 2018-09-01 20:46:22 +01:00
Adam Kelly
8780d58857 Define __eq__ for lists and tuples. 2018-09-01 17:10:00 +01:00
Adam Kelly
28f8cdbda9 Define __eq__ for basic types. 2018-09-01 17:09:20 +01:00
Adam Kelly
8c28e1e051 Call method needs &str not &String. 2018-09-01 15:02:39 +01:00
Windel Bouwman
bcf5e8acc9 Repair tuple get elements 2018-09-01 10:37:25 +02:00
Windel Bouwman
f563856dc4 Add some tuple class methods 2018-09-01 10:19:51 +02:00
Windel Bouwman
40cf7f4579 Move more objects to obj folder 2018-09-01 10:00:55 +02:00
Windel Bouwman
5cdd0ab7b8 Check list elements on int type 2018-09-01 09:54:58 +02:00
Windel Bouwman
999c6258e6 Merge branch 'master' of https://github.com/RustPython/RustPython into objtyp 2018-09-01 09:26:08 +02:00
Daniel Watkins
e69d4542da Convert PyFuncArgs.kwargs to a Vec
Instead of an Option<Vec>
2018-08-31 16:42:02 -04:00
Windel Bouwman
f9538af3f2 Add bytes object class 2018-08-31 22:10:10 +02:00
Daniel Watkins
d807ad0c77 Implement kwargs in function calls 2018-08-31 15:46:07 -04:00
Windel Bouwman
8ed132cadb Fix issue #112 2018-08-31 21:10:49 +02:00
Windel Bouwman
b2ab49376a Change get_value to take a reference to a reference 2018-08-31 20:49:52 +02:00
Windel Bouwman
f453c749ec Move builtin types to own directory 2018-08-31 20:31:25 +02:00