Commit Graph

2942 Commits

Author SHA1 Message Date
Dan Fritchman
899f6e78e5 Pre-underscore os.system _vm 2019-10-14 17:57:55 +02:00
Dan Fritchman
e94f3f372d Add os.system 2019-10-13 15:45:17 +02:00
Windel Bouwman
336364c80d Merge pull request #1318 from youknowone/ast-module
ast module
2019-10-12 12:51:26 +02:00
Windel Bouwman
23075e5420 Merge pull request #1501 from youknowone/bool-equal
introduce and adapt vm.identical_or_equal to test `is` or else `__eq__`
2019-10-12 12:47:57 +02:00
Windel Bouwman
242f0ffb8c Merge pull request #1512 from sanxiyn/indent
Implement IndentationError
2019-10-12 12:07:56 +02:00
Jeong YunWon
78dce22c51 compile() with PyCF_ONLY_AST is available without compiler 2019-10-12 18:24:28 +09:00
Jeong YunWon
2f1fb16da1 Add mode to ast::parse 2019-10-12 18:12:36 +09:00
Jeong YunWon
16c3c78b69 introduce and adapt vm.identical_or_equal to test is or else __eq__ 2019-10-12 17:53:26 +09:00
Jeong YunWon
7333fd13b5 Lib/ast.py 2019-10-12 14:57:50 +09:00
coolreader18
6d681a4d59 Implement object.__reduce__ 2019-10-11 15:48:56 -05:00
coolreader18
be274ec39e Fill in _os.environ with the correct types of strings 2019-10-11 15:47:29 -05:00
coolreader18
8620d2307a Add some missing parts of subprocess 2019-10-11 15:47:29 -05:00
coolreader18
06a9f0b139 Add front-end python version of subprocess 2019-10-11 15:47:29 -05:00
coolreader18
277ebb240f Add iteration to collections.deque 2019-10-11 15:47:29 -05:00
Seo Sanghyeon
e76edde38e Implement IndentationError 2019-10-12 02:24:12 +09:00
Windel Bouwman
e5c92d6fa2 Merge pull request #1496 from rls1004/issue1404
Implement delattr for type object
2019-10-11 17:44:46 +02:00
Windel Bouwman
cc76649567 Merge pull request #1504 from youknowone/builtin-round
Fix builtin_round with non-int __round__
2019-10-11 17:43:19 +02:00
Windel Bouwman
8462e7bc2d Merge pull request #1506 from youknowone/refactoring
Refactor function signatures
2019-10-11 17:35:24 +02:00
Noah
53fe356cd5 Merge pull request #1511 from youknowone/pyresult
Result<T, PyObjectRef> -> PyResult<T>
2019-10-11 08:36:25 -05:00
Noah
c509509332 Merge pull request #1507 from FauxFaux/write-exception
print_exception can print to places that aren't stdout
2019-10-11 08:01:49 -05:00
Chris West (Faux)
f6d90123e5 print_exception can print to places that aren't stdout 2019-10-11 11:41:42 +01:00
Jeong YunWon
cb2a994b46 Result<T, PyObjectRef> -> PyResult<T> 2019-10-11 18:09:55 +09:00
Windel Bouwman
ef2526416b Merge pull request #1508 from HyeockJinKim/issue1356
locals() return copy of locals dictionary
2019-10-11 08:32:57 +02:00
Chris West (Faux)
9213c99da9 upgrade direct use of rand 2019-10-10 20:50:09 +01:00
HyeockJinKim
43a7245045 locals() return copy of locals dictionary
Return copy of locals so that local variables
does not change even if locals() values is changed

Fixes #1356
2019-10-11 04:35:43 +09:00
Jeong YunWon
6c0f852b62 Refactor pymethod return types to be smaller as possible 2019-10-11 03:27:23 +09:00
Jeong YunWon
1fc5dcb5bf Result<T, PyObjectRef> -> PyResult<T> 2019-10-11 02:59:47 +09:00
Jeong YunWon
791e598e3d Fix builtin_round with non-int __round__ 2019-10-11 01:17:49 +09:00
Noah
8bce893118 Merge pull request #1502 from youknowone/small-int-cache
Small int cache like CPython
2019-10-10 09:45:53 -05:00
Jeong YunWon
1216874c29 Small int cache like cpython 2019-10-10 23:11:26 +09:00
Windel Bouwman
161f1d4c98 Merge pull request #1491 from RustPython/bytecode-compression
Compress bytecode using LZ4
2019-10-10 08:04:21 +02:00
MinJeong Kim
37a3b2c8f0 Implement delattr for type object
Fixed: #1404
2019-10-10 04:24:55 +00:00
Jeong YunWon
b769675c74 Merge pull request #1500 from youknowone/refactor-seq-cmp
Refactor sequence item comparison
2019-10-10 11:25:34 +09:00
Jeong YunWon
72b4965312 Merge pull request #1497 from HyeockJinKim/ne
Add __ne__ methods
2019-10-10 10:59:24 +09:00
Jeong YunWon
2fac9bad71 Refactor sequence item comparison 2019-10-10 10:52:19 +09:00
HyeockJinKim
37e85df527 Add __ne__ for float
Issue #1442
2019-10-10 03:49:13 +09:00
HyeockJinKim
100416f4f2 Add __eq__, __ne__ of none
Issue #1442
2019-10-10 03:49:09 +09:00
HyeockJinKim
1e8ade7098 Fixed __eq__ and add __ne__ of range
change return type of __eq__ to PyResult
and add __ne__

Issue #1442
2019-10-10 03:49:05 +09:00
Windel Bouwman
6f9aeb03de Merge pull request #1494 from kluid/mod_csv
Added csv module
2019-10-09 12:10:22 +02:00
kluid
6f7d76f74b Added _csv module and implemented reader function. 2019-10-09 12:29:35 +09:00
Windel Bouwman
dccc22dbb9 Merge pull request #1493 from HyeockJinKim/issue1490
Fixed to return the mro function
2019-10-08 21:16:33 +02:00
Windel Bouwman
d3ff1c6c2d Merge pull request #1485 from ChJR/feature/sys.version
Change format of sys.version
2019-10-08 20:24:09 +02:00
HyeockJinKim
75eff109ba Fixed to return the mro function
Fixed to return the mro function
to include its own class

Fixes #1490
2019-10-09 01:22:12 +09:00
Syrus
7495fc68ae Added support for WASI 2019-10-07 12:30:48 -07:00
Windel Bouwman
64ab147f64 Compress bytecode using LZ4 2019-10-07 20:54:22 +02:00
Windel Bouwman
ad8a182a4c Merge pull request #1483 from ChJR/hotfix/SystemExit
Change something related to exit
2019-10-07 19:58:15 +02:00
Windel Bouwman
0f2eddc86e Merge pull request #1487 from HyeockJinKim/issue1482
Fixed __hash__ of range
2019-10-07 19:40:48 +02:00
HyeockJinKim
f43ae4424e Change return type of length to BigInt
Change the return type of length to BigInt
since most of the length's values are used as_bigint
2019-10-08 01:48:14 +09:00
Hyunji Kim
83a7a4d9ed fix clippy lint 2019-10-07 23:16:56 +09:00
Hyunji Kim
7defbe927b fix error message for __call__ for non-callable objects 2019-10-07 23:16:21 +09:00