Commit Graph

4102 Commits

Author SHA1 Message Date
lntuition
33131ab79b Fix argument keyword error in int.from_bytes
Add IntFromByteOptions struct to fix int argument keyword error in int.from_bytes

Fixed: #1427
2019-09-28 18:01:22 +09:00
lntuition
9359a0cd05 Add testcase for int.from_bytes 2019-09-28 18:01:06 +09:00
Noah
8ac743dd6e Merge pull request #1386 from j30ng/zero-aware-format
Enable Zero-padding with Format Strings
2019-09-27 15:05:31 -05:00
j30ng
b056044b5a Fix CI Build in Rust 1.38.0 2019-09-28 03:24:47 +09:00
j30ng
9ccc9d7bfa Add Testcase 2019-09-28 00:36:48 +09:00
j30ng
3768233c8e Enable Zero-padding with Format Strings 2019-09-28 00:36:48 +09:00
Windel Bouwman
215eefe0b7 Merge pull request #1407 from vazrupe/dup-kargs-error
Add duplicate keyword argument error
2019-09-27 10:06:35 +02:00
Noah
c181a7cae2 Merge pull request #1424 from dralley/fix-float
Allow float() to be called without an argument
2019-09-26 23:10:38 -05:00
Daniel Alley
32b4a9255f Allow float() to be called without an argument
closes #1421
2019-09-26 22:54:47 -04:00
Noah
3856e9373d Merge pull request #1423 from dralley/fix-complaints
Fix some clippy complaints
2019-09-26 20:35:53 -05:00
Daniel Alley
a964f216c4 Fix clippy warnings 2019-09-26 17:45:36 -04:00
Noah
d6d305f4a4 Merge branch 'master' of https://github.com/RustPython/RustPython 2019-09-26 11:06:23 -05:00
Jeong YunWon
f209929dbc Merge pull request #1413 from ChJR/hotfix/exit
Fix exit()
2019-09-26 20:16:08 +09:00
Windel Bouwman
a9570065bd Merge pull request #1418 from vazrupe/bytes-neg-int
Fix panic when using negative int for bytes()
2019-09-26 10:45:08 +02:00
HyeonGyu Lee (Vazrupe)
00823dd923 Fix panic when using negative int for bytes()
Fixes #1401
2019-09-26 13:24:00 +09:00
Vazrupe (HyeonGyu Lee)
21669a023b Add duplicate keyword argument error
Fixes #116
2019-09-26 12:27:57 +09:00
Noah
d88167bb73 Bump crate versions 2019-09-25 11:57:38 -05:00
Windel Bouwman
51c3f71eed Merge pull request #1406 from lntuition/fix-1405
Fix int type casting error with negative base value
2019-09-25 17:15:48 +02:00
Windel Bouwman
90d20fe320 Merge pull request #1400 from pitachips/it_compress
itertools.compress
2019-09-25 17:08:33 +02:00
Hyunji Kim
239115f686 itertools.compress 2019-09-25 22:55:05 +09:00
Noah
a3c2eeab48 Merge pull request #1410 from dralley/fix-range
Fix range slicing behavior
2019-09-24 11:06:52 -05:00
Sang-Heon Jeon
545e9d39df Fix int type casting error with negative base value
Change base type from u32 to PyIntRef

Fixed: #1405
2019-09-25 01:01:21 +09:00
ChJR
1cf11f5961 Add SystemExit BaseException 2019-09-25 00:26:04 +09:00
ChJR
8c77f1a1cf Add builtin exit test 2019-09-25 00:25:28 +09:00
Daniel Alley
c6bebae462 Clippy 2019-09-24 09:42:58 -04:00
Daniel Alley
6a3e38d4da Cargo Format 2019-09-24 09:42:50 -04:00
Daniel Alley
ecb3cd4df5 Fix implementation of range slicing
closes #1373
2019-09-24 09:31:22 -04:00
Daniel Alley
36efb50563 Refactor for less allocations 2019-09-24 09:31:22 -04:00
Daniel Alley
6ba7655cdb Rewrite if-let as match statement 2019-09-24 09:31:22 -04:00
Daniel Alley
12b961f212 Fix bug where [::0] did not throw ValueError 2019-09-23 15:46:58 -04:00
Daniel Alley
7858fb863a Add additional test snippets for range slicing 2019-09-23 15:46:58 -04:00
Daniel Alley
a6662315c3 Fix typo 2019-09-23 15:41:48 -04:00
Noah
0160cd1159 Merge pull request #1402 from lntuition/Fix-typo
Fix Typo in vm/src/stdlib/pystruct.rs
2019-09-23 12:29:08 -05:00
Noah
eae16695e3 Merge pull request #1409 from ChJR/feature/sys.implementation.name
Change sys.implementation.name to only has lowercase
2019-09-23 12:26:03 -05:00
ChJR
1531d19352 Change sys.implementation.name to only has lowercase 2019-09-24 01:51:33 +09:00
Noah
2a9ae1e797 Merge pull request #1398 from Writtic/module_copysign
Update copysign module of math
2019-09-23 11:31:20 -05:00
Noah
dd9bece293 Fix os_open 2019-09-23 11:26:04 -05:00
Noah
46c91414ad Maybe fix os.open 2019-09-22 14:46:46 -05:00
Noah
87f496ed3e Merge pull request #1399 from Riey/stdlib-os-symlink-windows
Fix os_symlink compile error on windows
2019-09-22 11:30:27 -05:00
unknown
c76739fed7 Fix Typo in vm/src/stdlib/pystruct.rs 2019-09-22 20:27:39 +09:00
Riey
6f12e35120 Fix os_symlink compile error 2019-09-22 18:08:54 +09:00
johan.park
040c290a6e Apply clippy 2019-09-22 16:27:38 +09:00
johan.park
db10a82cbe Update copysign module of math
- Implement copysign function with test case
- Add constants of NAN, INF, NINF on top of `math_module.py`
2019-09-22 16:12:41 +09:00
Noah
00a0e455f3 Merge pull request #1387 from RustPython/coolreader18/string-hash-field
Add a hash field to PyString á la CPython, make PyString.value private
2019-09-21 17:15:17 -05:00
Noah
f846cd7327 Fix failing socket test 2019-09-21 15:33:52 -05:00
Noah
c52677afb1 Merge pull request #1388 from RustPython/coolreader18/match_class-match-expr
Match an actual match expression in match_class!
2019-09-21 15:29:57 -05:00
Noah
63271dc42c Merge pull request #1392 from HyeockJinKim/issue1389
Fix __eq__ of range
2019-09-21 09:45:17 -05:00
Noah
c0a6f61272 Merge pull request #1393 from rls1004/issue1391
Fix the ValueError for whitespace in float()
2019-09-21 09:41:50 -05:00
MinJeong Kim
6e7e6ecfce Fix the ValueError for whitespace in float()
Ignore whitespace

Fixed: #1391
2019-09-20 18:21:15 +00:00
HyeockJinKim
38a815073c Add test for range __eq__ 2019-09-21 02:19:45 +09:00