Commit Graph

3699 Commits

Author SHA1 Message Date
Khalil HADJI
91c5353f5c os.access is a unix only feature for the moment 2019-08-16 17:05:06 +02:00
Khalil HADJI
e4452d0325 Put AccesFlags in a struct 2019-08-16 17:02:21 +02:00
Khalil HADJI
d8c62e5479 Factored out os_access flags 2019-08-15 23:31:13 +02:00
Khalil HADJI
a4acb75d26 Changed mode to u8 2019-08-15 23:28:25 +02:00
Khalil HADJI
8fd2cb4112 Changed PyResult to PyResult<bool> 2019-08-15 23:26:36 +02:00
Khalil HADJI
d9226c9d9a Removed useless format 2019-08-15 21:43:54 +02:00
Khalil HADJI
b018a39b0a Pushes the result to the vm 2019-08-15 21:00:10 +02:00
Khalil HADJI
666b2a9d71 Handled the case for a non existent mode and pushed errors to the vm 2019-08-15 20:42:59 +02:00
Khalil HADJI
6f78bca8ee Added implementation for os_access F_OK and R_Ok 2019-08-15 20:13:52 +02:00
Windel Bouwman
17cf677fb0 Merge pull request #1261 from kluid/master
Implemented stdlib function 'os.cpu_count()'
2019-08-15 10:32:21 +02:00
coolreader18
63cfc70fd0 Fix whats_left_modules under cpython 2019-08-15 02:03:05 -05:00
coolreader18
1d5413be89 Fix whats_left_modules under cpython 2019-08-15 02:01:25 -05:00
kluid
43c1143e67 Implemented stdlib os.cpu_count 2019-08-15 14:30:57 +09:00
Windel Bouwman
7d08f8fe05 Merge pull request #1248 from RustPython/minor-fixes
Add sunau library. Add default option to dis example.
2019-08-15 07:06:10 +02:00
Windel Bouwman
f3d7848dc2 Merge pull request #1253 from willingc/update-dep
Add minimal version and document check/update to README
2019-08-15 07:04:20 +02:00
Windel Bouwman
daad0a0be6 Merge pull request #1256 from JunMock/int
ADD int.__ror__ and __rand__
2019-08-15 07:03:20 +02:00
JunMock
d8e9f79c41 add __rand__ __ror__ 2019-08-15 12:19:40 +09:00
JunMock
03df88729d add __rand__ __ror__ 2019-08-15 12:07:02 +09:00
Carol Willing
3fce075cc3 Add minimal version and document check/update 2019-08-15 10:48:45 +09:00
Windel Bouwman
49ed782098 Merge pull request #1245 from RustPython/symbol-context
Improve symbol table processing.
2019-08-14 17:47:40 +02:00
Windel Bouwman
e1b0cb0b66 Fix #1247. Add two additional audio format libraries. 2019-08-14 16:20:26 +02:00
Windel Bouwman
7b38988ffb Add sunau library. Add default option to dis example. 2019-08-14 14:42:27 +02:00
Windel Bouwman
11cbf556e5 Merge pull request #1236 from RustPython/coolreader18/dis-example
Add dis example
2019-08-14 11:01:32 +02:00
coolreader18
2fb05d53e8 Fix errors 2019-08-13 23:04:32 -05:00
Windel Bouwman
e6edf71b33 Improve symbol table processing. 2019-08-13 21:13:16 +02:00
coolreader18
7eff681dfb Update help line 2019-08-13 12:35:10 -05:00
coolreader18
5560d79fa4 Show error from to_string() 2019-08-13 12:35:09 -05:00
coolreader18
dc7f1389e0 Add dis example 2019-08-13 12:35:08 -05:00
coolreader18
e67fc38c7e Add CodeObject::display_expand_codeobjects 2019-08-13 12:35:08 -05:00
coolreader18
286051383e impl std::str::FromStr for compile::Mode 2019-08-13 12:35:07 -05:00
coolreader18
4f9a71ff89 Change compile::compile() to take a Mode instead of an &Mode 2019-08-13 12:34:39 -05:00
Aviv Palivoda
87f96f1043 Merge pull request #1244 from youknowone/io-const
Add _io.DEFAULT_BUFFER_SIZE
2019-08-13 18:34:26 +03:00
Aviv Palivoda
d7ea32cde9 Merge pull request #1238 from youknowone/macos-stdlib-subprocess
Fix stdlib_subprocess for macOS
2019-08-13 18:22:31 +03:00
Jeong YunWon
280b298416 Add _io.DEFAULT_BUFFER_SIZE 2019-08-13 22:29:56 +09:00
Windel Bouwman
e0431c0ca7 Merge pull request #1243 from mpajkowski/zlib_module
Implement zlib module
2019-08-13 07:12:21 +02:00
Windel Bouwman
c7bee80beb Merge pull request #1239 from youknowone/fix-divmod
Fix int [r]divmod, Add rfloordiv
2019-08-13 07:08:29 +02:00
Jeong YunWon
039cc12852 int.__[r]floordiv__ to use BigInt.div_floor 2019-08-13 11:05:34 +09:00
Jeong YunWon
e819b9a2e3 Add int.__rdivmod__ 2019-08-13 11:01:28 +09:00
Jeong YunWon
f486f3031f Fix int.__divmod__ 2019-08-13 11:01:28 +09:00
Noah
dd9a4a16b4 Merge pull request #1242 from RustPython/coolreader18/cron-redox-deploy
Use redox-release branch for redox recipe
2019-08-12 13:54:08 -05:00
Marcin Pajkowski
7b4a36059f Rewrite crc32, adler32 from zlib
Get rid of checksum_fn macro
2019-08-12 20:34:51 +02:00
coolreader18
eedf96742f Use redox-release branch for redox recipe 2019-08-12 13:27:34 -05:00
Marcin Pajkowski
49f53bfba8 Disable zlib on wasm32 2019-08-12 19:54:32 +02:00
Windel Bouwman
7fd01b0643 Merge pull request #1231 from yjhmelody/fix_int_fn
fix int fn
2019-08-12 19:52:25 +02:00
Marcin Pajkowski
2752cc4ae0 Add tests for zlib 2019-08-12 18:32:24 +02:00
Marcin Pajkowski
128bd8c836 Add zlib module
+ Implement following functions:
  * zlib.compress
  * zlib.decompress
  * zlib.crc32
  * zlib.adler32

+ Add compression level constants
2019-08-12 18:32:24 +02:00
yjhmelody
c758b3629b fix clippy warning
Signed-off-by: yjhmelody <465402634@qq.com>
2019-08-12 23:47:20 +08:00
Noah
96bd5a693c Merge pull request #1208 from RustPython/coolreader18/redox-ci
Add Redox OS compilation to Travis using Redoxer
2019-08-12 09:55:19 -05:00
Windel Bouwman
344e123ef5 Merge pull request #1240 from mpajkowski/ppid_fix
Remove assert os.getppid() < os.getpid()
2019-08-12 14:33:04 +02:00
Marcin Pajkowski
94468f5e1d Remove assert os.getppid() < os.getpid() 2019-08-12 12:15:47 +02:00