Commit Graph

2484 Commits

Author SHA1 Message Date
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
lynskylate
ab98775bd2 Optimize error info 2019-08-09 21:12:36 +08:00
lynskylate
3775e04dcd Fix pyobject truth value 2019-08-09 21:05:58 +08:00
Windel Bouwman
fc8aba1b68 Merge pull request #1215 from RustPython/syntax-fixes
Add variable annotation syntax.
2019-08-09 11:22:55 +02:00
coolreader18
abbeb38daa Fix re.split 2019-08-09 02:25:28 -05:00
Windel Bouwman
543b0efc43 Merge pull request #1220 from RustPython/coolreader18/unittest-argparse
Fix a bunch of problems with getting argparse to actually work
2019-08-09 07:27:44 +02:00
Windel Bouwman
4e1fea62c5 Merge pull request #1200 from RustPython/coolreader18/compiler-optimization
Add basic constant optimization to the compiler
2019-08-09 07:03:38 +02:00
coolreader18
9bdc2bbcac Fix Exception.__str__ 2019-08-08 17:41:40 -05:00
coolreader18
f33626347a Fix ci 2019-08-08 17:41:40 -05:00
coolreader18
546169a5df Add sys.exit 2019-08-08 17:41:39 -05:00
coolreader18
9b2e7d829b SImpler usize 2019-08-08 17:41:39 -05:00
coolreader18
fd85bc0ae3 Add Pattern.split 2019-08-08 17:41:39 -05:00
coolreader18
64f2c8d2e6 Fix '' % {} 2019-08-08 17:41:39 -05:00
coolreader18
b23aa90748 Add builtins.vars 2019-08-08 17:41:39 -05:00
coolreader18
dab0a84e83 Add findall and sub to re 2019-08-08 17:41:39 -05:00
coolreader18
513e4bf63e Add KeyboardInterrupt class 2019-08-08 17:41:39 -05:00
coolreader18
a4ffc797bb Fix clap command line parsing of pyargs 2019-08-08 17:41:39 -05:00
coolreader18
ed3b1973be Fix weird yield from interpreter bug 2019-08-08 17:41:39 -05:00
coolreader18
d7936f1ee6 Add __{cause,context,suppress_context}__ to exceptions 2019-08-08 17:41:39 -05:00
coolreader18
d6c9f2d972 Add __qualname__ and __module__ getters to objtype 2019-08-08 17:41:39 -05:00
coolreader18
8dae17ac99 Add Match methods 2019-08-08 17:41:39 -05:00
Aviv Palivoda
36b4c0219c Use into in io_open args 2019-08-08 17:35:58 +03:00
Aviv Palivoda
c7d4343381 Fix clippy warnings 2019-08-08 17:33:39 +03:00
Aviv Palivoda
58d7da7f4b Don't depend on subprocess in wasm 2019-08-08 17:33:39 +03:00
Aviv Palivoda
2a1c441a0a Add convert_to_file_io 2019-08-08 17:32:24 +03:00
Aviv Palivoda
b08c70b4e7 Support redirection 2019-08-08 17:32:24 +03:00
Aviv Palivoda
72143a6a5d Fix Popen.wait 2019-08-08 17:32:24 +03:00
Aviv Palivoda
6486780025 Add subprocess module 2019-08-08 17:32:24 +03:00
Aviv Palivoda
d63839a5ea Merge pull request #1205 from Lynskylate/impl-socket-module
Extend Socket module
2019-08-08 17:30:02 +03:00
Windel Bouwman
2fdfcb96a5 Add parser support for async for loop. Add yield expression inside parentheses. 2019-08-07 20:11:27 +02:00
yf
7b9d54f77a Add math.gcd 2019-08-08 01:51:46 +08:00
lynskylate
fccb0d2ade Disable socket import on wasm 2019-08-08 00:16:27 +08:00
Windel Bouwman
1da260a299 Merge pull request #1210 from ypyf/ttyname
Add os.ttyname
2019-08-07 17:20:20 +02:00
yf
92ebc30c27 slight change 2019-08-07 22:15:35 +08:00
Windel Bouwman
c5e7fbab11 Properly fill the __annotations__ dictionary. 2019-08-07 16:13:12 +02:00
Windel Bouwman
ded9d5ba5b Add variable annotation syntax. Simplify grammar for comprehensions. Add capital J suffix for complex numbers. 2019-08-07 15:31:24 +02:00
yf
e279364f13 reduce the scope of unsafe block 2019-08-07 20:47:43 +08:00
yf
0f3fbb401e Add os.ttyname 2019-08-07 10:16:38 +08:00
lynskylate
c9c580d2fe Add inet_ntoa and windows gethostname 2019-08-07 01:28:17 +08:00
Aviv Palivoda
9a3f73126a Skip SIGPWR, SIGSTKFLT on macos 2019-08-05 22:05:31 +03:00
lynskylate
4e969e9db7 Remove unsafe code 2019-08-05 07:10:28 +08:00
Windel Bouwman
2613ee417d Merge pull request #1189 from palaviv/signal
signal support
2019-08-04 20:29:47 +02:00
lynskylate
14c6b4028e Specific platform 2019-08-05 00:57:04 +08:00
lynskylate
5f4c8c65fa Impl gethostname sethostname inet_aton 2019-08-05 00:16:05 +08:00
Aviv Palivoda
d7e19da0c0 Merge pull request #1202 from RustPython/coolreader18/fix-redox
Fix redox with new os functions
2019-08-04 18:51:25 +03:00
yf
2e51657eaa fmt code 2019-08-04 19:11:33 +08:00
yf
18bbe94753 Add os.openpty 2019-08-04 18:26:15 +08:00
coolreader18
772460ea7f Add tuple unpacking optimization 2019-08-04 01:22:51 -05:00
coolreader18
d44a208da9 Fix redox with new os functions 2019-08-03 17:13:32 -05:00
Aviv Palivoda
5e5d46d373 Remove os_set_signal 2019-08-03 12:31:55 +03:00