Commit Graph

3608 Commits

Author SHA1 Message Date
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
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
076b975eb1 Make argument parsing fully match CPython's 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
2aea7ab318 Fix textwrap regexes 2019-08-08 17:41:39 -05:00
coolreader18
b65a9f905b Add textwrap 2019-08-08 17:41:39 -05:00
coolreader18
8865624b79 Remove print 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
7a74ca2c9a Modify regex with lookahead in it in argparse 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
d49f341eaa Fix stack overflow 2019-08-08 17:41:39 -05:00
coolreader18
8dae17ac99 Add Match methods 2019-08-08 17:41:39 -05:00
Aviv Palivoda
3176d7b8c3 Merge pull request #1201 from palaviv/subprocess
Add subprocess
2019-08-08 19:11:04 +03:00
Aviv Palivoda
36b4c0219c Use into in io_open args 2019-08-08 17:35:58 +03:00
Aviv Palivoda
03311b777a Change echo output for windows 2019-08-08 17:33:39 +03:00
Aviv Palivoda
bc8521dd54 Remove -n option in echo 2019-08-08 17:33:39 +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
coolreader18
8f28149f67 Address comments 2019-08-07 14:40:16 -05:00
Windel Bouwman
f2001d4f7c Merge pull request #1219 from ypyf/math
Add math.gcd
2019-08-07 20:40:08 +02: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
Noah
91ad31f52d Merge pull request #1213 from RustPython/import-syntax
Fix import syntax to require at least one imported symbol. Fixes #1211.
2019-08-07 09:33:23 -05: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
Windel Bouwman
de89349d8d Fix import syntax to require at least one imported symbol. Fixes #1211. 2019-08-07 13:00:34 +02:00
Windel Bouwman
b3d7e5b839 Merge pull request #1209 from RustPython/coolreader18/unittest
Add unittest (!!!!)
2019-08-07 11:08:27 +02:00
yf
b672647a4a Fix tests 2019-08-07 11:34:28 +08:00