Commit Graph

2416 Commits

Author SHA1 Message Date
Aviv Palivoda
f600868a01 Define SIG_* on windows 2019-08-03 11:00:37 +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
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
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
Antonio Yang
0f4c2c10b7 byte.decode
- support ascii, utf-8 encoding
- raise LookupError for unhandled encoding
2019-08-01 22:57:17 +08: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
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
57ef8b306e Merge pull request #1181 from corona10/builtin_ascii
builtins: Implement ascii builtin API
2019-07-28 10:00:50 +02:00
coolreader18
a72ef1e365 Add frozen package support 2019-07-27 14:27:29 -05: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
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
Aviv Palivoda
ea71428e07 Merge pull request #1166 from palaviv/write-bytecode
Write bytecode
2019-07-24 20:55:27 +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
Marcin Pajkowski
0e033ad93f Add str.__reversed__ method 2019-07-24 19:03:02 +02:00
Noah
7d2a7a54b2 Merge pull request #1169 from RustPython/optimizations1
Add some extra profiling trace points.
2019-07-24 12:30:31 -04:00
Windel Bouwman
881baf6397 Update flame trace names. 2019-07-24 16:36:45 +02:00
Windel Bouwman
05ea701055 Cleanup frame file. 2019-07-24 09:59:31 +02:00
Dong-hee Na
29248fd1fa stdlib.io: Implement seekable() 2019-07-24 14:16:37 +09:00