Commit Graph

137 Commits

Author SHA1 Message Date
Jeong YunWon
8c7e01b4f6 pyslot guess slot name from function name 2020-01-15 10:28:39 +09:00
Jeong YunWon
eb4904b4ae cleanup bytes with Into<Vec<u8>> 2020-01-13 11:20:42 +09:00
Jeong YunWon
a11ccc462a refactor byteinner cmp 2020-01-13 11:20:42 +09:00
Jeong YunWon
36ebb048ef cleanup bytes 2020-01-13 11:20:42 +09:00
Jeong YunWon
70b63eb758 new_rustfunc -> new_function & new_method to distinguish bindable functions 2020-01-12 18:39:16 +09:00
coolreader18
bca6214c4f Fix byte{s,array}.join 2019-12-03 21:39:33 -06:00
coolreader18
2a03a6df44 Add encoding arg to str, fix bytes.__add__ return type 2019-11-28 13:33:25 -06:00
coolreader18
4c0ba7b1bd Set up the machinery behind the codecs module 2019-11-28 13:33:24 -06:00
yanganto
10ef5e56af bytes.mod implement mod
implement byte formatting with CFormat
2019-11-18 08:39:36 +08:00
Jack Park
b3f25ff7ff Implemented bytes.__sizeof__ 2019-10-23 17:20:06 +09:00
Aviv Palivoda
ab775485ff Use i32 directly 2019-10-17 17:47:38 +03:00
Aviv Palivoda
70a22ab196 Use isize directly 2019-10-17 17:11:34 +03:00
Jeong YunWon
6c0f852b62 Refactor pymethod return types to be smaller as possible 2019-10-11 03:27:23 +09:00
Noah
d22cac2dd8 Rename new slots to tp_new 2019-09-29 23:14:37 -05:00
coolreader18
c46b5b50bd Fix weirdness with type.__new__()/type()/metaclass.__new__() 2019-09-29 23:14:31 -05:00
Daniel Alley
a964f216c4 Fix clippy warnings 2019-09-26 17:45:36 -04:00
Daniel Alley
c6bebae462 Clippy 2019-09-24 09:42:58 -04:00
Windel Bouwman
d06dec77ea Attempt to reduce the size of the pyobject.rs files by splitting out builtin types. 2019-08-14 19:08:47 +02:00
Aviv Palivoda
93701098f9 Add Popen.communicate 2019-08-09 14:27:28 +03:00
Antonio Yang
0f4c2c10b7 byte.decode
- support ascii, utf-8 encoding
- raise LookupError for unhandled encoding
2019-08-01 22:57:17 +08:00
Jeong YunWon
59476c65bb PyBytes::from_string 2019-05-29 21:27:58 +09:00
Jeong YunWon
c768b25673 Refine hash types and refactor hash impl 2019-05-13 01:10:52 +09:00
Y. Sapir
87844ff434 Implement bytes.__mul__ and __rmul__ 2019-05-09 23:51:20 +03:00
jgirardet
4c09505865 Merge branch 'master' into title 2019-05-08 18:16:02 +02:00
jgirardet
dc18356947 add bytes/byterray title 2019-05-06 21:37:15 +02:00
jgirardet
ed94ddba2d add split, rsplit, partition, rpartition, expandtabs, spitlines, zfill,
replace to bytearray
2019-05-06 21:04:09 +02:00
Windel Bouwman
567fc4e94f Merge pull request #916 from jgirardet/bytergevalue
rewrite pybytearray with pybyteinner
2019-05-06 18:09:12 +02:00
Windel Bouwman
68d1fb8957 Merge pull request #915 from jgirardet/split
add  bytes split, expendtab, splitlines, zfil, replace
2019-05-06 17:46:43 +02:00
jgirardet
5864c6e063 rewrite pybytearray with pybyteinner 2019-05-04 01:14:08 +02:00
Windel Bouwman
daf70424d2 Merge pull request #847 from jgirardet/kwargs
add other bytes method
2019-05-03 17:15:09 +02:00
Adrian Wielgosik
c7fd54e809 Convert iterators to pyclass macros 2019-05-01 21:26:37 +02:00
jgirardet
0d505adbb5 use PyBytinner as arg 2019-04-30 22:01:45 +02:00
Jimmy Girardet
fd614b7a75 refactor split options 2019-04-30 20:24:12 +02:00
Jimmy Girardet
cf70323475 add replace 2019-04-30 20:24:12 +02:00
Jimmy Girardet
b60d7413b9 add zfill 2019-04-30 20:24:12 +02:00
jgirardet
d89ca3c3e4 add spitlines 2019-04-30 20:24:12 +02:00
jgirardet
434985d6d0 add partition/reparition refactor split/rsplit 2019-04-30 20:24:12 +02:00
jgirardet
0af8ad05eb add expandstab 2019-04-30 20:24:12 +02:00
jgirardet
cfff7cbd63 add split and rsplit 2019-04-30 20:24:12 +02:00
jgirardet
ece6601851 add PyByteInner as fn argument / use Either 2019-04-30 15:47:41 +02:00
jgirardet
61ee15b97b add strip lstrip rstrip 2019-04-19 00:04:39 +02:00
jgirardet
9ea823abf1 add rfind, rindex 2019-04-18 23:06:11 +02:00
jgirardet
8a2ce9e260 add swapcase 2019-04-18 21:58:15 +02:00
jgirardet
a42bfae84d kwargs for translate 2019-04-18 21:41:46 +02:00
jgirardet
03997273ed refactor index/find with ByteInnerOptions 2019-04-18 21:12:45 +02:00
jgirardet
56c5790745 reformat center, ljsut, rjust args 2019-04-18 21:00:33 +02:00
jgirardet
1669d5280f refactor count 2019-04-18 20:41:12 +02:00
jgirardet
8bcdbbf21b use PyInt Ref, add ljust, rjust 2019-04-18 19:52:17 +02:00
jgirardet
ba67f3c264 refactore fromhex 2019-04-18 19:25:45 +02:00
jgirardet
4a4d163626 refactor getitem 2019-04-18 19:10:37 +02:00