Commit Graph

2986 Commits

Author SHA1 Message Date
Noah
c31b3b2af9 Use the first arg of StopIteration as yield from return value 2019-10-15 13:58:08 -05:00
Windel Bouwman
6f59609160 Merge pull request #1533 from RustPython/coolreader18/cleanupstuff
Clean up the REPL and CodeFlags
2019-10-15 20:56:57 +02:00
ChJR
b2126829e9 Add repeat count support to struct.pack() (#1518)
* Add struct.pack() repeat count test

* Add repeat count support to struct.pack()

* Refactor parse_format_codes()

* Refactor parse_format_codes() again
2019-10-15 19:25:51 +02:00
Seo Sanghyeon
6887365092 Update lexical to 4 2019-10-15 21:40:59 +09:00
coolreader18
c08f11ad1b Change FunctionOpArg to CodeFlags, stored in CodeObject 2019-10-14 20:20:52 +00:00
Windel Bouwman
6f624c6f95 Merge pull request #1521 from janrg/round_to_n_decimals
Implement round(number, digits) for digits != 0
2019-10-14 20:19:40 +02:00
Windel Bouwman
2205fec2ff Merge pull request #1524 from dan-fritchman/1175-extend-os
Add os.system
2019-10-14 20:15:28 +02:00
Dan Fritchman
2df54f3a10 Re-order os module exports 2019-10-14 18:00:38 +02:00
Dan Fritchman
899f6e78e5 Pre-underscore os.system _vm 2019-10-14 17:57:55 +02:00
janrg
4fd38e6220 Add test snippets, fix rounding for very small numbers 2019-10-14 17:06:07 +02:00
Noah
d42d422566 Merge pull request #1505 from youknowone/defer-new-int-clone
Defer BigInt::clone() for new_int
2019-10-13 14:27:37 -05:00
Dan Fritchman
e94f3f372d Add os.system 2019-10-13 15:45:17 +02:00
janrg
122aa96887 Fix linter errors 2019-10-13 14:09:17 +02:00
janrg
458fa3cb7b Fix formatting 2019-10-13 13:22:19 +02:00
janrg
b858ae8776 Implement round(number, digits) for digits != 0 2019-10-13 13:04:24 +02:00
kluid
958e9abb57 Add some csv.reader kwarg options
'delimiter' and 'quotechar'
2019-10-13 17:18:17 +09: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)
60bb597dc0 upgrade low-risk deps 2019-10-10 21:07:26 +01:00
Chris West (Faux)
a5be00b488 upgrade statrs 2019-10-10 20:50:09 +01: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
Jeong YunWon
dc09fb7539 Defer BigInt::clone() for new_int 2019-10-11 00:40:31 +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