Commit Graph

517 Commits

Author SHA1 Message Date
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
25b9f35de0 Fix more clippy warnings 2019-08-03 00:09:45 +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
1b17926e91 Initial signal support 2019-08-02 09:45:39 +03: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
coolreader18
a72ef1e365 Add frozen package support 2019-07-27 14:27:29 -05:00
Windel Bouwman
1fddce461f Implement review comments and improve parsing a bit. 2019-07-25 23:54:31 +02:00
Dong-hee Na
29248fd1fa stdlib.io: Implement seekable() 2019-07-24 14:16:37 +09:00
Windel Bouwman
d6c19c1c6a Add location to expressions. Change symboltable to use flags for symbols. 2019-07-20 20:44:38 +02:00
Windel Bouwman
f919ed0137 Extend symtable module. 2019-07-19 22:05:35 +02:00
Windel Bouwman
215308d474 Add initial draft of symtable module. 2019-07-16 22:04:38 +02:00
Windel Bouwman
ff762d7109 Address relative import with 3 dots. Closes #1052. 2019-07-15 21:41:43 +02:00
Windel Bouwman
0741c36bb8 Simplify import AST in line with CPython. 2019-07-15 21:00:28 +02:00
Windel Bouwman
a0abe08c9a Merge pull request #1149 from RustPython/coolreader18/cpython-libs3
Add codecs, locale, shutil, errno, and encodings modules
2019-07-15 17:12:08 +02:00
coolreader18
f7dd1a2952 Add windows errno 2019-07-15 00:03:38 -05:00
coolreader18
f59d84a750 Add codecs, locale, shutil, errno, and encodings modules 2019-07-14 23:09:59 -05:00
Windel Bouwman
e06de30eb6 Implement more nodes in the ast. Add script to walk over AST of sourcecode. 2019-07-14 21:18:49 +02:00
coolreader18
fb3ccadc17 Merge pull request #1140 from RustPython/redox
Add Redox OS support, via platform checks!
2019-07-13 16:59:56 -05:00
Windel Bouwman
e705ec292b Add mktime function. 2019-07-13 11:26:44 +02:00
coolreader18
86a6b2a366 Use feature for proc_macro_hack 2019-07-13 00:59:18 -05:00
coolreader18
bd749eae2d Use more platform checks 2019-07-12 20:18:54 -05:00
coolreader18
afd7a33848 Implement os.stat for redox 2019-07-12 20:02:21 -05:00
coolreader18
fc6c683c03 Fix os module again 2019-07-12 16:18:50 -05:00
coolreader18
67813f186c Fix os module 2019-07-12 11:44:42 -05:00
coolreader18
869ea2e679 Remove pwd on redox 2019-07-11 19:26:59 -05:00
coolreader18
0b7ca175a8 Add fnmatch and shlex 2019-07-11 09:38:13 -05:00
Windel Bouwman
98e6486c98 Merge pull request #1128 from RustPython/re-kung-fu
Add time.gmtime function.
2019-07-10 20:06:43 +02:00
Windel Bouwman
fb23cc6e03 Add time.ctime, time.strftime 2019-07-10 17:37:42 +02:00
coolreader18
9204035d97 Cover up bare trait objects with a dyn 2019-07-10 09:41:58 -05:00
Windel Bouwman
0ab39651b8 Add time.gmtime function. 2019-07-10 16:12:30 +02:00
Windel Bouwman
d16c288ef1 Improve re module. Favor string.py over string.rs 2019-07-10 11:19:01 +02:00
Windel Bouwman
e5d0a02fad Merge pull request #1119 from silmeth/text_file_io
make TextIOBase writable, handle malformed utf-8 in read()
2019-07-09 11:57:26 +02:00
silmeth
afec714a44 use vm.call_method() instead of get_method&invoke, remove String alloc 2019-07-09 10:53:40 +02:00
silmeth
5450f8e8a3 use vm.try_class, early return on unsupported op error 2019-07-08 20:44:36 +02:00
silmeth
03b7299150 make TextIOBase writable, handle malformed utf-8 in read() 2019-07-08 19:57:38 +02:00
coolreader18
1c1440eb78 Add __len__ to deque 2019-07-07 15:38:57 -05:00