Commit Graph

600 Commits

Author SHA1 Message Date
Noah
c06928cc84 Merge pull request #1283 from corona10/imghdr
Implement FileIO.read with nbytes and importing modified imghdr.py
2019-08-16 03:42:11 -05:00
Noah
cf09efb293 Merge pull request #1259 from pitachips/socket
add __enter__ and __exit__ for socket
2019-08-16 01:54:17 -05:00
Windel Bouwman
2b02371ba1 Merge pull request #1258 from RustPython/coolreader18/site
Add site module and run it on startup
2019-08-16 08:39:51 +02:00
Dong-hee Na
29dabbcbea Implement FileIO.read with nbytes 2019-08-16 15:08:05 +09:00
Noah
466bf383aa Merge pull request #1282 from youknowone/errno-unix
errno for non-linux unix
2019-08-16 00:49:33 -05:00
Hyunji Kim
8b8f542e23 add __enter__ and __exit__ for socket 2019-08-16 14:48:27 +09:00
Jeong YunWon
99881147d4 errno for non-linux unix 2019-08-16 13:57:30 +09:00
Noah
27cde17a28 Merge pull request #1272 from corona10/file_io_close
stdlib_io: Implement fileIO.close
2019-08-15 22:27:04 -05:00
Dong-hee Na
5414d2ac33 fix codes 2019-08-16 09:58:46 +09:00
coolreader18
02f5bccf40 Add error for marshal_loads 2019-08-15 15:52:29 -05:00
coolreader18
a0146c5fa6 Add site module and run it on startup 2019-08-15 15:33:36 -05:00
Dong-hee Na
850f479dd2 stdlib_io: Implement fileIO.close 2019-08-16 05:28:12 +09:00
Windel Bouwman
ca6ecdd923 Merge pull request #1249 from RustPython/organize-files
Attempt to reduce the size of the pyobject.rs files by splitting out …
2019-08-15 19:34:26 +02:00
Windel Bouwman
589c431c8c Merge master branch 2019-08-15 18:59:29 +02:00
Marcin Pajkowski
ec37983ad6 Implement functools.reduce 2019-08-15 16:51:02 +02:00
Windel Bouwman
5f285a5831 Merge pull request #1252 from mpajkowski/invoke_ref
Make func_ref an &PyObjectRef
2019-08-15 15:06:09 +02:00
Windel Bouwman
87b9e6e466 Merge pull request #1255 from zsaladin/json_dump
Add `json.dump` and `json.load`
2019-08-15 15:03:59 +02:00
Marcin Pajkowski
e65e9ff7c3 Make func_ref an &PyObjectRef 2019-08-15 13:45:47 +02:00
Windel Bouwman
c0231513cf Merge pull request #1260 from HyeonuPark/os-read-link
implement os.readlink()
2019-08-15 13:05:17 +02:00
Windel Bouwman
45292e8abc Merge pull request #1257 from SeungUkLee/socket-htonl
Impl socket htonl
2019-08-15 13:02:47 +02:00
Daehee Kim
73549a5e6f Add json_load 2019-08-15 16:09:36 +09:00
Daehee Kim
d60e72ec57 Add json_dump 2019-08-15 16:09:30 +09:00
Garuda-hpcnt
bc7a67f129 implement os.readlink()
this fixes broken pytest on macos, which failed on `os.path.realpath(tmpdir)`
2019-08-15 15:17:41 +09:00
kluid
43c1143e67 Implemented stdlib os.cpu_count 2019-08-15 14:30:57 +09:00
SeungUkLee
3109f22404 Apply rustfmt 2019-08-15 13:44:34 +09:00
SeungUkLee
74618c99ef Impl socket htonl 2019-08-15 12:24:14 +09:00
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
Windel Bouwman
49ed782098 Merge pull request #1245 from RustPython/symbol-context
Improve symbol table processing.
2019-08-14 17:47:40 +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
5560d79fa4 Show error from to_string() 2019-08-13 12:35:09 -05:00
coolreader18
286051383e impl std::str::FromStr for compile::Mode 2019-08-13 12:35:07 -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
Jeong YunWon
280b298416 Add _io.DEFAULT_BUFFER_SIZE 2019-08-13 22:29:56 +09:00
Marcin Pajkowski
7b4a36059f Rewrite crc32, adler32 from zlib
Get rid of checksum_fn macro
2019-08-12 20:34:51 +02:00
Marcin Pajkowski
49f53bfba8 Disable zlib on wasm32 2019-08-12 19:54:32 +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
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
d83cfb4cef Merge pull request #1234 from RustPython/short-circuit-evaluation
Improve the situation regarding boolean operations.
2019-08-12 07:30:28 +02:00
Windel Bouwman
0129bb5c75 Merge pull request #1226 from palaviv/subprocess-2
Extend subprocess.Popen
2019-08-11 20:47:14 +02:00
Windel Bouwman
36d8147e8e Improve the situation regarding boolean operations. 2019-08-11 20:20:15 +02:00
Aviv Palivoda
ba31f4fde7 Ignore clippy warning 2019-08-10 22:28:46 +03:00
Aviv Palivoda
12c59dacfb Add Popen cwd support 2019-08-10 10:13:58 +03:00
Aviv Palivoda
608572b2b5 Add Popen.pid 2019-08-10 09:58:40 +03:00
Windel Bouwman
9dac938d88 Merge pull request #1221 from RustPython/coolreader18/runpy
Use runpy to run modules with -m
2019-08-09 21:12:55 +02:00
coolreader18
f7246a3f51 Fix socket.rs 2019-08-09 12:40:03 -05:00
coolreader18
fd39a830c4 Fix openpty on Redox 2019-08-09 10:20:11 -05:00
Aviv Palivoda
93701098f9 Add Popen.communicate 2019-08-09 14:27:28 +03:00
Aviv Palivoda
572e3b6e93 Add Popen.kill 2019-08-09 13:21:51 +03:00
Aviv Palivoda
a3ad97c786 Add Popen.terminate 2019-08-09 13:19:39 +03:00