Windel Bouwman
40bbb6be1b
Merge pull request #1551 from ChJR/feature/float-repr
...
Fix float.__repr__()
2019-10-20 21:14:09 +02:00
Windel Bouwman
e8bb4bb5ba
Merge pull request #1549 from palaviv/refactor-pystruct
...
pystruct refactor
2019-10-20 14:11:56 +02:00
Windel Bouwman
11e8e6235d
Merge pull request #1526 from seeeturtle/itertools
...
Implement itertools.product
2019-10-20 10:30:40 +02:00
Aviv Palivoda
d0184a7ac2
struct.pack does not allow string as pack parameter
2019-10-20 10:13:40 +03:00
ChJR
fb206a0d2d
Add float.__repr__() tests
2019-10-20 16:12:26 +09:00
johan.park
533aa2bc26
Update fmod module of math
...
- Implement fmod function with test case
2019-10-20 14:55:23 +09:00
joshua1b
8deb936c22
Implement itertools.product
...
This implements `itertools.product` of standard library.
Related with #1361
2019-10-20 14:47:22 +09:00
johan.park
731186a23d
Improve modf module of math
...
- Add INF, NINF, NAN test case
- Apply code relevant to added the test case on the modf code
2019-10-19 10:36:20 +09:00
Jack Park
3fdc72de5d
Resolved conflict
2019-10-18 07:18:50 +07:00
Jack Park
fcc6635b1f
Implemented range.__reduce__
2019-10-18 07:01:37 +07: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
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
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
coolreader18
672f146de4
Properly implement gen.throw()
2019-10-15 14:00:08 -05:00
Noah
c31b3b2af9
Use the first arg of StopIteration as yield from return value
2019-10-15 13:58:08 -05: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
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
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
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
Jeong YunWon
239495f259
Fix testutils.assert_* and pow
2019-10-14 10:48:19 +09:00
kluid
25f656105f
Add more test for csv
2019-10-13 17:20:33 +09: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
82e8811fee
Merge pull request #1499 from HyeockJinKim/issue1498
...
Take only numbers after `.`
2019-10-11 17:39:54 +02:00
HyeockJinKim
cb9b9e6320
Add tests for locals
2019-10-11 04:35:47 +09:00
Jeong YunWon
791e598e3d
Fix builtin_round with non-int __round__
2019-10-11 01:17:49 +09:00
Jeong YunWon
dcd1f3138a
Use is for bool comparison
2019-10-10 23:11:26 +09:00
Jeong YunWon
1216874c29
Small int cache like cpython
2019-10-10 23:11:26 +09:00
HyeockJinKim
2cd4c95994
Add tests for float
2019-10-10 17:24:14 +09:00
MinJeong Kim
37a3b2c8f0
Implement delattr for type object
...
Fixed : #1404
2019-10-10 04:24:55 +00:00
Jeong YunWon
72b4965312
Merge pull request #1497 from HyeockJinKim/ne
...
Add __ne__ methods
2019-10-10 10:59:24 +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
076232141e
Added test case for csv module
2019-10-09 12:49:32 +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
HyeockJinKim
594c3bb97e
Add tests for mro
2019-10-09 01:22:48 +09: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
ChJR
2bc854387f
Remove NameError checking from exit.py due to error of flake8 Linting
2019-10-08 01:05:32 +09:00
Jeong YunWon
c0dfb9367c
disable some PowTest.powtest for num-bigint bug
2019-10-07 23:30:58 +09:00
Jeong YunWon
eef97a78ca
PowTest.powtest from cpython
2019-10-07 23:29:44 +09:00