Commit Graph

1942 Commits

Author SHA1 Message Date
Yonatan Goldschmidt
322aff70df Add binascii.b2a_hex, binascii.a2b_hex 2019-05-11 12:01:35 +03:00
Yonatan Goldschmidt
070529d8c7 Add binascii.unhexlify 2019-05-11 12:01:35 +03:00
Yonatan Goldschmidt
8dd664ef20 Add binascii.hexlify 2019-05-11 12:01:35 +03:00
Yonatan Goldschmidt
f7531d8b08 Add binascii module skeleton 2019-05-11 11:57:46 +03:00
coolreader18
0a683f2be6 Merge pull request #946 from stwen77/fix_floor_div
fix floor div for int
2019-05-10 08:25:24 -05:00
coolreader18
385d4851d1 Merge pull request #942 from Jongy/fix-unused-macros-warn
Define `os_unix_stat_inner` only when required
2019-05-10 08:00:20 -05:00
Aviv Palivoda
da3df8a0ae Add __file__ for imported modules 2019-05-10 13:58:10 +03:00
Yonatan Goldschmidt
fe37ecf8d3 Define os_unix_stat_inner only when required
Avoids warn when building on Windows.
2019-05-10 11:24:28 +03:00
Shitong Wen
50c119a503 fix floor div for int 2019-05-10 14:21:09 +08:00
Y. Sapir
32950bd0bc Implement bytearray.reverse 2019-05-10 00:33:14 +03:00
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
Windel Bouwman
d76e4d5433 Merge pull request #934 from Jongy/range-arg3-zero
Raise an error on `range()` with step=0
2019-05-07 21:30:00 +02:00
Windel Bouwman
c9ba9192f6 Merge pull request #922 from palaviv/os-symlink
Symlinks
2019-05-07 21:28:46 +02:00
Windel Bouwman
aed8e03473 Merge pull request #932 from youknowone/dict-unpacking
Add dict unpacking support for literal
2019-05-07 21:25:39 +02:00
Yonatan Goldschmidt
d4a3d7eb01 Raise an error on range() with step=0 2019-05-06 23:23:48 +03:00
Jeong YunWon
e12c6813ef Add dict unpacking support for literal 2019-05-07 04:42:58 +09:00
Yonatan Goldschmidt
04bff49ee0 Raise proper NameError on del when name is not defined
Closes #929.
2019-05-06 22:40:00 +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
Yonatan Goldschmidt
e35dec64f9 Add vm.new_name_error helper 2019-05-06 21:47:18 +03:00
Windel Bouwman
abf0a329ee Merge pull request #924 from Jongy/builtin-ord-improvements
Builtin ord improvements
2019-05-06 18:14:23 +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
Windel Bouwman
720f2fed44 Merge pull request #925 from Jongy/builtin-chr-raise-error
Raise error on out-of-range input in `chr()`
2019-05-06 17:38:25 +02:00
Yonatan Goldschmidt
ea535856b4 Raise error on out-of-range input in chr() 2019-05-06 03:04:19 +03:00
jgirardet
5a95c5af22 remove unittests 2019-05-05 23:29:49 +02:00
Windel Bouwman
51245639ab Merge pull request #923 from youknowone/floatint-format
str(1.0) == '1.0'
2019-05-05 21:18:43 +02:00
Windel Bouwman
e1bdae000c Merge pull request #904 from RustPython/async-stuff
Add async def and async for parsing.
2019-05-05 21:16:29 +02:00
Aviv Palivoda
ecd6e85f3c Fix windows build try 2 2019-05-05 21:32:49 +03:00
Aviv Palivoda
c06b6ccc96 Fix windows build 2019-05-05 21:19:20 +03:00
Yonatan Goldschmidt
6a73790b26 Raise proper error when string of length 0 is given to ord() 2019-05-05 20:24:54 +03:00
Yonatan Goldschmidt
717c96837e Borrow instead of cloning in ord() 2019-05-05 20:24:20 +03:00
Jeong YunWon
6b495eac1e str(1.0) == '1.0' 2019-05-06 02:14:28 +09:00
Aviv Palivoda
2c30e83896 Add follow_symlinks to stat 2019-05-05 20:04:39 +03:00
Aviv Palivoda
260af4d877 Add follow_symlinks to DirEntry.{is_file, is_dir} 2019-05-05 19:40:01 +03:00
Aviv Palivoda
5bd23b4fb6 is_dir and is_file follow_symlink by default 2019-05-05 19:14:34 +03:00
Windel Bouwman
6228a207e1 Merge pull request #912 from sapir/repl-underscore
Repl underscore
2019-05-05 11:21:20 +02:00
Windel Bouwman
ee2b2a82fc Merge pull request #909 from sapir/add-bool-methods
Add bool methods
2019-05-04 22:34:43 +02:00