Commit Graph

3516 Commits

Author SHA1 Message Date
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
Noah
a91470d67e Merge pull request #1171 from mpajkowski/iter_str
Implement str iterator support
2019-07-24 15:50:32 -04:00
Windel Bouwman
a06bd3ecea Add an example usecase of the parser. 2019-07-24 20:13:30 +02:00
Aviv Palivoda
ea71428e07 Merge pull request #1166 from palaviv/write-bytecode
Write bytecode
2019-07-24 20:55:27 +03:00
Aviv Palivoda
8f1df4697d Freeze stdlib by default in WASM 2019-07-24 20:54:44 +03:00
Aviv Palivoda
321e43d51b Add freeze-stdlib to wasm build 2019-07-24 20:51:22 +03:00
Aviv Palivoda
6ca979e7be Merge pull request #1159 from palaviv/freeze-stdlib
Allow stdlib freeze
2019-07-24 20:41:35 +03:00
Marcin Pajkowski
1f59532f82 Silent clippy with allowing range_plus_one
PySliceableSequence trait methods require Range<usize>
as arguments
2019-07-24 19:32:05 +02:00
Aviv Palivoda
dde40a4b1c Use vm.import 2019-07-24 20:30:07 +03:00
Aviv Palivoda
fc0aa0c2ab Use random magic when git hash don't exist 2019-07-24 20:30:07 +03:00
Aviv Palivoda
054bc72062 Use git hash as pyc magic number 2019-07-24 20:30:07 +03:00
Aviv Palivoda
db8de563ba Add dont_write_bytecode flag 2019-07-24 20:28:24 +03:00