Commit Graph

120 Commits

Author SHA1 Message Date
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
jgirardet
5f5d5c4278 add bytes.join 2019-04-18 14:15:13 +02:00
jgirardet
e6d6b77698 fix error msg 2019-04-18 14:15:13 +02:00
jgirardet
00cf524814 add slice capability to bytes. add trait IsByte 2019-04-18 14:15:13 +02:00
jgirardet
c550360be5 add is_bytes_like add bytes.count wthout slice 2019-04-18 14:15:13 +02:00
coolreader18
08babef619 Remove the __inside_vm hack for procedural macros 2019-04-15 20:24:16 -05:00
ben
1f8181b561 Update formatting to be consistent with rustfmt included in 1.34 2019-04-14 09:40:59 +12:00
Windel Bouwman
be4e3170af Merge pull request #822 from jgirardet/addbytesm
add capitalize bytes.center + fix str.center
2019-04-13 12:41:35 +02:00
jgirardet
73dbcfbe01 Add bytes.center
fix str.center
add some tests
introduce is_byte
2019-04-13 08:23:40 +02:00
jgirardet
bd78f7e12b add capitalize 2019-04-13 08:21:37 +02:00