Commit Graph

28 Commits

Author SHA1 Message Date
janczer
d5c91a8de0 Move clear method from bytes to bytearray 2019-02-19 07:11:13 +01:00
janczer
85110f6fbf Add dict.clear and bytes.clear 2019-02-18 18:21:39 +01:00
janczer
47fc303e55 Rasi error when try compare bytes with another types 2019-02-08 22:06:57 +01:00
janczer
83202d639f Add bytes.{__ge__, __gt__, __le__, __lt__} 2019-02-08 15:02:50 +01:00
Windel Bouwman
c24a88c5ad Merge pull request #369 from ZapAnton/bytes_doc
bytes type: Added __doc__
2019-02-07 17:28:25 +01:00
Adam Kelly
fd344ec1e0 Remove unnecessary to_bigint().unwrap() everywhere. 2019-02-06 17:38:01 +00:00
ZapAnton
1992e02b76 bytes type: Added __doc__ 2019-02-06 15:16:41 +03:00
Windel Bouwman
040a377d06 Merge branch 'master' into fix_redundant_field_names 2019-02-06 08:14:14 +01:00
Homer McMillan
35a06bc428 Add bytes.__iter__ 2019-02-05 21:44:14 -05:00
ZapAnton
fb9fa27555 Fixed the 'redundant_field_names' clippy warnings
This replaces all the occurrences of the Struct {field : field}
with the Struct {field}.

Relevant clippy warning: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
2019-02-05 21:56:16 +03:00
ZapAnton
0d3b218237 Fixed the 'toplevel_ref_arg' clippy warning
This replaces all the occurrences of the
'let ref var = another_var' with the
'let var = &another_var'

Relevant clippy warning: https://rust-lang.github.io/rust-clippy/master/index.html#toplevel_ref_arg
2019-02-05 21:45:56 +03:00
Windel Bouwman
892493e464 Rename PyObjectKind into PyObjectPayload 2019-01-30 18:06:27 +01:00
rmliddle
9a86bbd718 ByteArray Usage 2019-01-28 18:30:19 +11:00
rmliddle
15d0c39c81 fixes to bytearray len 2019-01-04 19:34:28 +11:00
rmliddle
cbd8d7b171 len attributes on byte types 2019-01-03 08:16:04 +11:00
Windel Bouwman
4095e0cad7 Modify location of set_attr so that we are able to create str python objects for the dictionary. 2018-12-12 22:06:19 +01:00
Windel Bouwman
96c1c5a328 Use rusts internal hash algorithm. 2018-11-12 21:24:53 +01:00
Windel Bouwman
810ef7df1c Add bytearray object 2018-11-03 11:09:15 +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
5e27cc45b0 Initial struct module 2018-10-13 22:04:49 +02:00
Windel Bouwman
947c17eb84 Improve int type error 2018-09-02 21:49:56 +02:00
Windel Bouwman
1a2a4adcef Lets delete some clones 2018-09-02 19:41:37 +02:00
Adam Kelly
7c3cd319b2 objbytes: str -> repr 2018-09-02 12:09:57 +01:00
Windel Bouwman
f563856dc4 Add some tuple class methods 2018-09-01 10:19:51 +02:00
Windel Bouwman
5cdd0ab7b8 Check list elements on int type 2018-09-01 09:54:58 +02:00
Windel Bouwman
f9538af3f2 Add bytes object class 2018-08-31 22:10:10 +02:00