Commit Graph

1042 Commits

Author SHA1 Message Date
Y. Sapir
e5bae56ccb Implement bytearray.remove 2019-05-10 00:33:14 +03:00
Y. Sapir
43cd50270f Implement bytearray.insert 2019-05-10 00:33:14 +03:00
Y. Sapir
485ffa01a2 Implement bytearray.extend 2019-05-10 00:33:14 +03:00
Y. Sapir
04ce9ea185 Implement bytearray.copy 2019-05-10 00:33:12 +03:00
Y. Sapir
87844ff434 Implement bytes.__mul__ and __rmul__ 2019-05-09 23:51:20 +03:00
Y. Sapir
94d1b6585c Implement bytearray.__mul__, __imul__ and __rmul__ 2019-05-09 23:50:20 +03:00
Shitong Wen
86fcc97730 int_from_bytes 2019-05-09 20:06:28 +08:00
Shitong Wen
e9fea281fb add from_bytes for int 2019-05-09 11:02:34 +08:00
Shitong Wen
036b184dd3 add from_bytes for int 2019-05-09 10:52:10 +08:00
jgirardet
4c09505865 Merge branch 'master' into title 2019-05-08 18:16:02 +02:00
Windel Bouwman
6f31cf7554 Merge pull request #913 from Jongy/str-preallocate-and-rmul
Preallocate strings in a smarter way + add str.rmul
2019-05-07 21:54:31 +02:00
Windel Bouwman
382e566315 Merge pull request #930 from jgirardet/byteraayfollow
add split, rsplit, partition, rpartition, expandtabs, spitlines, zfill,replace to bytearray
2019-05-07 21:50:39 +02:00
Yonatan Goldschmidt
d4a3d7eb01 Raise an error on range() with step=0 2019-05-06 23:23:48 +03: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
7ae533f860 Merge pull request #911 from sapir/fix-clippy-float-error
Fix clippy error about float comparison
2019-05-06 18:12:25 +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
5a95c5af22 remove unittests 2019-05-05 23:29:49 +02:00
Jeong YunWon
6b495eac1e str(1.0) == '1.0' 2019-05-06 02:14:28 +09:00
Windel Bouwman
ee2b2a82fc Merge pull request #909 from sapir/add-bool-methods
Add bool methods
2019-05-04 22:34:43 +02:00
Y. Sapir
1a5bddc41b Fix clippy error about float comparison 2019-05-04 23:32:49 +03:00
Y. Sapir
45d7c383cd Implement bool.__ror__, __rand__ and __rxor__ 2019-05-04 22:27:43 +03:00
jgirardet
5864c6e063 rewrite pybytearray with pybyteinner 2019-05-04 01:14:08 +02:00
Jeong YunWon
88e64adc56 Add complex __pow__ and __rpow__ 2019-05-04 01:05:27 +09:00
Jeong YunWon
930c8eef50 Add complex.{__mod__, __rmod__, __divmod__, __rdivmod__} 2019-05-04 01:05:27 +09:00
Jeong YunWon
9523baf5ac complex [r]truediv, [r]floordiv 2019-05-04 01:05:27 +09:00
Jeong YunWon
2a2d0e4764 Add complex.__rmul__ 2019-05-04 01:05:27 +09:00
Jeong YunWon
982bbd69d8 complex.__bool__ uses Zero::is_zero instead of zero() 2019-05-04 01:05:27 +09:00
Jeong YunWon
61de5f2efc complex.__eq__ using try_float 2019-05-04 01:05:27 +09:00
Jeong YunWon
9a7fadcb6c Refactor PyComplex using try_complex 2019-05-04 00:59:19 +09:00
Jeong YunWon
7b438d9be8 impl IntoPyObject for Complex64 2019-05-04 00:59:19 +09:00
Jeong YunWon
9448254914 PyComplex uses extend_class for __new__ and __doc__ 2019-05-04 00:59:19 +09:00
Windel Bouwman
e578dcfc46 Merge pull request #899 from youknowone/float-complex
Add numbers.Complex impl to float + extend_class
2019-05-03 17:22:12 +02:00
Windel Bouwman
daf70424d2 Merge pull request #847 from jgirardet/kwargs
add other bytes method
2019-05-03 17:15:09 +02:00
Adam
1d6e8d5aa5 Merge pull request #905 from RustPython/mappingproxy
Mappingproxy
2019-05-03 09:58:37 +01:00
Windel Bouwman
199fce22be Merge pull request #900 from youknowone/int-pow
Fix int.__pow__
2019-05-03 07:30:16 +02:00
Yonatan Goldschmidt
f12268f79a Implement str.__rmul__ 2019-05-03 03:07:15 +03:00
Yonatan Goldschmidt
a118497a4b Preallocate cloned strings with the minimum expected length
Similar to 620bea78.
2019-05-03 03:07:15 +03:00
Y. Sapir
ea347dfdec Implement bool.__or__, __and__ and __xor__ 2019-05-03 01:54:18 +03:00
Y. Sapir
26306b528f Simplify PyInt.rxor to reuse PyInt.xor 2019-05-03 01:42:17 +03:00
Yonatan Goldschmidt
620bea7830 Preallocate output string of str.title() with required size 2019-05-03 01:14:06 +03:00
Adam Kelly
65d602571d Create mappingproxy type with __getitem__ and __contains__. 2019-05-02 16:45:00 +01:00
Adam Kelly
dd0c70f289 Fix typo in objobject. 2019-05-02 16:36:35 +01:00
Jeong YunWon
0bf7ff96b8 Special handling for base -1, 0, 1 for big exp 2019-05-02 23:11:00 +09:00
Jeong YunWon
eb9ca06ee7 Add int.__rpow__ 2019-05-02 22:59:05 +09:00
Jeong YunWon
614378d720 Add int.__pow__ negative exp impl 2019-05-02 22:44:28 +09:00
Jeong YunWon
c138dea992 Remove int.__pow__ float handling 2019-05-02 14:23:35 +09:00
coolreader18
3051702a2d Merge branch 'master' into pyrange-extend 2019-05-01 20:15:50 -05:00
coolreader18
fa148a4aed Merge branch 'master' into float-round 2019-05-01 20:06:52 -05:00