Commit Graph

4411 Commits

Author SHA1 Message Date
Noah
2bfb08a83b Merge pull request #1540 from palaviv/random-new-arg-style
Convert random to new arg style
2019-10-17 11:25:30 -05:00
Noah
7980b78e0a Merge pull request #1541 from ashermancinelli/int-sizeof
`int.__sizeof__` from #1426
2019-10-17 11:24:44 -05:00
Asher Mancinelli
ccd61b9d20 Update objint.rs 2019-10-17 08:04:42 -07:00
Aviv Palivoda
cd96d2b292 Fix typo 2019-10-17 12:08:04 +03:00
Windel Bouwman
be4a3f3299 Merge pull request #1514 from alanjds/fix-1132-sys-stdout
`sys.std{in,out,err}` implemented in the most simple way
2019-10-17 07:20:30 +02:00
Windel Bouwman
85ae39f2e4 Merge pull request #1534 from RustPython/coolreader18/yieldfrom-fix
Fix the `yield from` expression
2019-10-17 07:15:44 +02:00
Asher Mancinelli
9459cabcc9 Update vm/src/obj/objint.rs
Co-Authored-By: Noah <33094578+coolreader18@users.noreply.github.com>
2019-10-16 21:16:52 -07:00
Noah
8b31ee573e Merge pull request #1539 from palaviv/io-new-arg-style
Convert io to new arg style
2019-10-16 22:50:46 -05:00
Asher Mancinelli
89c76b1235 parenthesis in calculation 2019-10-16 16:02:34 -07:00
Asher Mancinelli
8fff494926 bits -> bytes 2019-10-16 14:10:20 -07:00
Johan
6270344740 Update isclose module of math (#1532)
- Implement `math.isclose()` function with test case
  - Add `IsCloseArgs` struct for `keyword_only` argument: `rel_tol`, `abs_tol`
- Change order of test case on `math_module.py` for readability
  - Clippy recommends using `std::f64::EPSILON` instead of `==` but purpose is different
- Fix multiline declaration on the function parameters
2019-10-16 23:25:53 +09:00
Robert Berglund
81302ce6c2 impl __sizeof__ for bytearray, int, list, str, dict and set (#1426) 2019-10-16 23:24:36 +09:00
Alan Justino da Silva
7d4ab62b01 Fix typo on sys.__stdout__ and sys.__stderr__ 2019-10-16 16:14:42 +02:00
Jeong YunWon
9f6ccf1ec4 Merge pull request #1537 from palaviv/os-new-arg-style
Change os functions to new arg style
2019-10-16 16:39:33 +09:00
Jeong YunWon
4477e6725e Merge pull request #1528 from youknowone/module-error
Fix module attr error to use python `__name__` instead of rust struct `name`
2019-10-16 12:00:14 +09:00
Aviv Palivoda
1e7fb388d2 Revert os.close drop call 2019-10-15 22:31:29 +03:00
Aviv Palivoda
2930c10979 Convert random to new arg style 2019-10-15 22:22:05 +03:00
coolreader18
672f146de4 Properly implement gen.throw() 2019-10-15 14:00:08 -05:00
Windel Bouwman
a1e3fe4e63 Merge pull request #1538 from palaviv/platform-new-arg-style
Convert platform to new arg style
2019-10-15 20:58:35 +02:00
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
Aviv Palivoda
dda4ab00e3 Convert io.{TextIOWrapper, BufferedReader} to new arg style 2019-10-15 21:52:08 +03:00
Aviv Palivoda
1ad9ee8792 Simplify os.close 2019-10-15 21:38:28 +03:00
Aviv Palivoda
e8b0185251 Convert io.FileIO to new arg style 2019-10-15 21:27:42 +03: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
Aviv Palivoda
6d08b4f553 Convert io.{IOBase, BufferedReader} to new arg style 2019-10-15 19:03:15 +03:00
Aviv Palivoda
f0e30f2ff3 Convert platform to new arg style 2019-10-15 18:39:09 +03:00
Noah
ea803d1ed4 Merge pull request #1535 from sanxiyn/update-lexical
Update lexical to 4
2019-10-15 10:28:11 -05:00
Noah
0fe04944b3 Merge pull request #1536 from jenix21/enhance_script
Add RUSTPYTHONPATH to whats_left.sh to run the script without setting an environment variable
2019-10-15 10:27:31 -05:00
Aviv Palivoda
a435bb1f81 Change os.error to new arg style 2019-10-15 18:21:46 +03:00
Aviv Palivoda
9d5cdf23b3 Change os.close to new arg style 2019-10-15 18:16:38 +03:00
Aviv Palivoda
b51dc3df20 Merge pull request #1522 from RustPython/add-badges
Add some extra badges with links to readme.
2019-10-15 18:07:14 +03:00
jenix21
7e816649a1 Add RUSTPYTHONPATH to whats_left.sh to run the script without setting an environment variable 2019-10-15 23:39:54 +09:00
Seo Sanghyeon
6887365092 Update lexical to 4 2019-10-15 21:40:59 +09:00
Noah
64674d2d85 Fix clippy parameter number warning 2019-10-14 20:55:00 +00:00
coolreader18
c08f11ad1b Change FunctionOpArg to CodeFlags, stored in CodeObject 2019-10-14 20:20:52 +00:00
coolreader18
1edf7c85aa Cleanup some stuff related to the repl 2019-10-14 20:20:13 +00:00
Windel Bouwman
67f005e9f7 Merge pull request #1529 from youknowone/fix-asserts
Fix testutils.assert_* and pow test
2019-10-14 20:34:06 +02: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
b1684b2861 Merge pull request #1530 from youknowone/test-names
Rename some test filenames by convention
2019-10-14 20:18:30 +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
Dan Fritchman
8c4a9c6041 Add initial os.system unit tests 2019-10-14 17:55:59 +02:00
janrg
4fd38e6220 Add test snippets, fix rounding for very small numbers 2019-10-14 17:06:07 +02:00
Noah
92be5de8ec Merge pull request #1515 from RustPython/add-doc-strings
Add some documentation strings to the parser code.
2019-10-14 09:59:26 -05:00
Jeong YunWon
08db19aa62 Merge pull request #1519 from ChJR/feature/change_rustc_version_in_markdown
Change rustc version in markdown
2019-10-14 15:59:55 +09:00
Jeong YunWon
12b3c855f9 Fix module attr error to use python __name__ instead of rust struct field name 2019-10-14 11:13:40 +09:00
Jeong YunWon
5c57ae2d53 tests/snippets/import_module.py -> tests/snippets/module.py 2019-10-14 11:13:36 +09:00
Jeong YunWon
95e8e2f2ce Rename some test filenames by convention 2019-10-14 11:05:18 +09:00