Commit Graph

2812 Commits

Author SHA1 Message Date
ben
f2703511b9 Fix dead code warning on windows and disable access time tests
as file access time on windows has quite bad resolution.
2019-05-12 08:26:37 +12:00
ben
4070baa6ac Add fsync and more tests for file times 2019-05-12 07:51:14 +12:00
ben
b01e960da7 Add st_{a,m,c}time to os.stat 2019-05-11 19:15:54 +12: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
Windel Bouwman
d14fb6edbb Merge pull request #947 from palaviv/file
Support __file__
2019-05-10 14:41:12 +02:00
Aviv Palivoda
fc1a063a2c Add __file__ for file executed from main 2019-05-10 14:06:23 +03: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
Windel Bouwman
352bd85681 Merge pull request #944 from sapir/more-bytearray-methods
More bytearray methods
2019-05-10 07:06:30 +02: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
Windel Bouwman
e974e57b4c Merge pull request #941 from stwen77/int_from_bytes
add from_bytes for int
2019-05-09 16:57:36 +02:00
coolreader18
76a0020e26 Merge pull request #940 from sanxiyn/test-all-any
Test all and any
2019-05-09 07:37:16 -05:00
Shitong Wen
86fcc97730 int_from_bytes 2019-05-09 20:06:28 +08:00
Seo Sanghyeon
d3966af25d Test all and any 2019-05-09 15:54:07 +09: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
stwen77
bdb9445e93 Merge pull request #1 from RustPython/master
pull
2019-05-09 10:34:09 +08:00
coolreader18
252ac4ae26 Merge pull request #938 from sanxiyn/revert-mappingproxy
Revert mappingproxy hack
2019-05-08 21:04:47 -05:00
Seo Sanghyeon
7d0ab6395b Revert mappingproxy hack 2019-05-09 09:45:41 +09:00
coolreader18
80e9bd8ab6 Merge pull request #931 from jgirardet/title
add bytes/byterray title
2019-05-08 12:13:59 -05:00
jgirardet
4c09505865 Merge branch 'master' into title 2019-05-08 18:16:02 +02:00
coolreader18
099b1f4752 Merge pull request #936 from palaviv/os-path
Os path
2019-05-08 10:44:08 -05:00
Aviv Palivoda
f5653cbc68 Use supported raise from 2019-05-08 16:47:49 +03:00
Aviv Palivoda
216f69e635 Use os.path 2019-05-08 16:46:45 +03:00
Aviv Palivoda
ac9ddf7756 Add CPython ntpath.py 2019-05-08 16:32:09 +03:00
Aviv Palivoda
daae7aa998 Add CPython posixpath.py 2019-05-08 16:31:21 +03:00
Aviv Palivoda
6153e2d6ca Add CPython genericpath.py 2019-05-08 16:25:33 +03: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
coolreader18
7727d09691 Merge pull request #933 from Jongy/nameerror-on-bad-del
Nameerror on bad del
2019-05-07 13:31:58 -05: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