Commit Graph

17 Commits

Author SHA1 Message Date
Windel Bouwman
d72abebdd0 Unify object kinds tuple and list into sequence. 2018-11-03 12:26:31 +01:00
Windel Bouwman
810ef7df1c Add bytearray object 2018-11-03 11:09:15 +01:00
Windel Bouwman
b7a0b0f2f3 Removal of ToRust trait to prevent incorrect str representation 2018-11-02 20:27:05 +01:00
Windel Bouwman
89cfdbe3dd Use __setitem__ to store elements in list. Also refactor get_elements to return a reference to the elements, not a copy. 2018-10-31 23:18:26 +01:00
Windel Bouwman
f6cced5d65 Change integer type into bigint 2018-10-30 21:01:31 +01:00
Windel Bouwman
1d854a8fbb Modify isinstance call signature to take reference to a python reference. 2018-10-27 17:58:54 +02:00
Windel Bouwman
104bc56bc1 Add hash builtin function. 2018-10-21 23:33:06 +02:00
Windel Bouwman
525807c319 Add __getitem__ on list, tuple and str 2018-10-21 21:09:38 +02:00
Éloi Rivard
2f29798ced Fixed __contains__ comparison on lists, tuples and iter objects 2018-10-17 19:26:24 +02:00
Éloi Rivard
e415ee1fbf Basic membership implementation 2018-10-17 13:57:38 +02:00
Windel Bouwman
1a2a4adcef Lets delete some clones 2018-09-02 19:41:37 +02: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
c8d8528bff object.__str__ delegates to __repr__. 2018-09-02 12:09:57 +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
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