Commit Graph

129 Commits

Author SHA1 Message Date
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
jgirardet
44d58f63ab refactor contains 2019-04-18 19:03:08 +02:00
jgirardet
473ae24199 use PyStringRef in new 2019-04-18 17:31:58 +02:00
jgirardet
84d61a9212 bytes.new with kwargs 2019-04-18 14:56:47 +02:00
Jimmy Girardet
0b283102a6 add translate 2019-04-18 14:15:13 +02:00
Jimmy Girardet
ced6f15a59 add bytes.makertans 2019-04-18 14:15:13 +02:00
Jimmy Girardet
bd2166789d add bytes index and find 2019-04-18 14:15:13 +02:00
Jimmy Girardet
8a7c46da7b add endswith startswith 2019-04-18 14:15:13 +02:00
Jimmy Girardet
14658b6236 move is_byte to try_as_byte
move trait IsByte to ByteOr
refactor center
refactor count
fix center with negative value
add test for count(integer)
2019-04-18 14:15:13 +02:00