Commit Graph

3527 Commits

Author SHA1 Message Date
Aviv Palivoda
f24c6daeb0 Add some windows test to signal 2019-08-03 10:37:56 +03:00
Aviv Palivoda
23cba402a5 Get signal numbers from libc 2019-08-03 10:21:51 +03:00
Aviv Palivoda
075f2c9e74 Use libc directly to set signal 2019-08-03 10:13:56 +03:00
Aviv Palivoda
3e07d61fcc Add vm to WASM check_sginals 2019-08-03 00:14:05 +03:00
Aviv Palivoda
25b9f35de0 Fix more clippy warnings 2019-08-03 00:09:45 +03:00
Aviv Palivoda
60b5d9d12b Add empty check_signals on WASM 2019-08-02 10:44:22 +03:00
Aviv Palivoda
52d204c6d3 Fix clippy warnings 2019-08-02 10:40:49 +03:00
Aviv Palivoda
7cd5e895c7 Get SIG_IGN 2019-08-02 09:46:19 +03:00
Aviv Palivoda
f3b4b28ec2 SIGINT not defined on windows 2019-08-02 09:46:19 +03:00
Aviv Palivoda
48da527295 Test signal only on unix 2019-08-02 09:46:19 +03:00
Aviv Palivoda
9470d75b5b Compile nix parts only on unix 2019-08-02 09:46:19 +03:00
Aviv Palivoda
61bf0763dd User arr_macro to create triggers array 2019-08-02 09:46:19 +03:00
Aviv Palivoda
785b5d8af7 Improve signal test 2019-08-02 09:45:39 +03:00
Aviv Palivoda
56b555b905 Add signal numbers 2019-08-02 09:45:39 +03:00
Aviv Palivoda
a1af6b4d6c Iterate over triggers in check_sginals 2019-08-02 09:45:39 +03:00
Aviv Palivoda
7061f1c9c4 Add signal.{SIG_IGN, SIG_DFL} 2019-08-02 09:45:39 +03:00
Aviv Palivoda
c1e07999cf Add test for signal 2019-08-02 09:45:39 +03:00
Aviv Palivoda
e8001d789f Add signal.alarm 2019-08-02 09:45:39 +03:00
Aviv Palivoda
a7d96b7223 Use rust signal module directly 2019-08-02 09:45:39 +03:00
Aviv Palivoda
57cdae17a7 Add signal.getsignal 2019-08-02 09:45:39 +03:00
Aviv Palivoda
ca23c43ae4 Return previous handler from signal 2019-08-02 09:45:39 +03:00
Aviv Palivoda
f540d31a1b Move static triggers array to signal.rs 2019-08-02 09:45:39 +03:00
Aviv Palivoda
5b670f8a26 Simplify signal code 2019-08-02 09:45:39 +03:00
Aviv Palivoda
1b17926e91 Initial signal support 2019-08-02 09:45:39 +03:00
Noah
6d285a7cfc Merge pull request #1193 from yanganto/feat/byte-decode
byte.decode
2019-08-01 12:31:38 -05:00
Antonio Yang
0f4c2c10b7 byte.decode
- support ascii, utf-8 encoding
- raise LookupError for unhandled encoding
2019-08-01 22:57:17 +08:00
coolreader18
8a85d7efbd Add Lib to COPY list (fixes #1195) 2019-08-01 08:16:42 -05:00
Noah
13d0c074e9 Merge pull request #1191 from mpajkowski/os_module
Implement several methods - os module
2019-07-31 09:11:53 -05:00
Windel Bouwman
c2ec66f07a Merge pull request #1188 from corona10/hex_format
builtin: Fix hex format of ascii
2019-07-31 13:20:09 +02:00
Dong-hee Na
fafeed1450 ascii: Apply codereview 2019-07-31 19:44:06 +09:00
Dong-hee Na
5bfa4cec7c ascii: Improve test 2019-07-31 16:34:00 +09:00
Marcin Pajkowski
364ddeb6b2 Fix compilation on Windows 2019-07-30 22:58:37 +02:00
Marcin Pajkowski
53c653fd2b Implement several methods - os module
os.getpid  [RUST STD]
os.getegid [UNIX]
os.getgid  [UNIX]
os.getsid  [UNIX]
os.getuid  [UNIX]
os.geteuid [UNIX]
os.getppid [UNIX]
os.getpgid [UNIX]
os.setgid  [UNIX]
os.setegid [UNIX]
os.setpgid [UNIX]
os.setuid  [UNIX]
os.seteuid [UNIX]
2019-07-30 18:15:33 +02:00
Noah
c8ce3bded2 Merge pull request #1187 from RustPython/dict-keying
Implement dictionary indexing by trait.
2019-07-29 08:05:48 -05:00
Windel Bouwman
42dca4433a Implement do_eq for String impl of DictKey. Also move get_item_option to dict type. 2019-07-28 21:39:21 +02:00
Dong-hee Na
4ee80a3d42 builtin: Fix hex format of ascii 2019-07-29 01:23:40 +09:00
Windel Bouwman
38d9f4087e Implement dictionary indexing by trait. 2019-07-28 13:43:14 +02:00
Windel Bouwman
50dd93db1e Merge pull request #1182 from RustPython/example1
Add support for star expression in tuple.
2019-07-28 10:01:51 +02:00
Windel Bouwman
57ef8b306e Merge pull request #1181 from corona10/builtin_ascii
builtins: Implement ascii builtin API
2019-07-28 10:00:50 +02:00
Windel Bouwman
c786109119 Merge pull request #1186 from RustPython/coolreader18/cargo-sweep
Use cargo-sweep to manage travis caches
2019-07-28 09:47:49 +02:00
coolreader18
3c98e6da25 Use cargo-sweep to manage cargo caches 2019-07-27 16:19:35 -05:00
Noah
fc97bd936f Merge pull request #1185 from RustPython/coolreader18/frozen-packages
Add frozen package support
2019-07-27 14:58:57 -05:00
coolreader18
ec6c016fa5 Fix wasm errors 2019-07-27 14:27:37 -05:00
coolreader18
a72ef1e365 Add frozen package support 2019-07-27 14:27:29 -05:00
Windel Bouwman
1024281014 Add support for star expression in tuple. 2019-07-27 13:10:55 +02:00
Dong-hee Na
aecb1510de builtins: Implement ascii builtin API 2019-07-27 17:44:41 +09:00
Windel Bouwman
a02e131bd5 Merge pull request #1177 from RustPython/example1
Add an example usecase of the parser.
2019-07-26 21:22:20 +02:00
Windel Bouwman
95561f4fc1 Merge pull request #1180 from palaviv/wasm-freeze-stdlib
freeze stdlib in WASM
2019-07-26 21:11:48 +02:00
Windel Bouwman
1fddce461f Implement review comments and improve parsing a bit. 2019-07-25 23:54:31 +02:00
Noah
c9985499ea Add empty tuple optimization (#1178)
* Add empty tuple optimization

* Add test snippet for empty tuple
2019-07-25 17:10:16 +02:00