Commit Graph

4130 Commits

Author SHA1 Message Date
lntuition
02135be992 Add testcase for bool.__new__
Add testcase for bool.__new__
2019-10-02 15:13:45 +09:00
lntuition
a209169d9c Fix argument keyword error in float.__new__
Add FloatArgs struct to fix argument keyword error in float.__new
2019-10-02 15:13:45 +09:00
lntuition
9cee128c6f Add testcase for float.__new__
Add testcase for float.__new__
2019-09-30 21:45:32 +09:00
lntuition
17ef308785 Fix argument keyword error in int.__new__
Change property name and attributes of IntOptions

Fixed: #1440
2019-09-30 21:45:32 +09:00
lntuition
af0f03cdc6 Add testcase for int.__new__
Add testcase for int.__new__
2019-09-30 20:31:59 +09:00
Johan
dd6ca78c19 extend_class for PyNone (#1436)
* extend_class for PyNone

* Apply clippy
2019-09-29 19:07:41 +02:00
Noah
e95c23f351 Merge pull request #1434 from ChJR/feature/sys._git
Add sys._git (#1358)
2019-09-29 09:46:37 -05:00
Jeong YunWon
ca24ca20e8 Merge pull request #1435 from HyeockJinKim/issue1431
Add __repr__ of slice
2019-09-29 17:38:02 +09:00
HyeockJinKim
55e70eac2a Add tests for slice 2019-09-29 16:59:27 +09:00
HyeockJinKim
442e0d0255 Add __repr__ of slice
Issue: #1431
2019-09-29 16:54:04 +09:00
Windel Bouwman
e2444b1ca3 Merge pull request #1429 from lntuition/fix-int-with-byte
Fix error in int.from_bytes and int.to_bytes
2019-09-29 09:36:39 +02:00
Jeong YunWon
557d3aa886 Merge pull request #1432 from HyeockJinKim/refactoring
extend_class for PySlice
2019-09-29 16:04:49 +09:00
HyeockJinKim
5df5ba67ed extend_class for PySlice 2019-09-29 15:32:58 +09:00
lntuition
8336bc9524 Rename struct and arguments of int.from_bytes and int.to_bytes 2019-09-29 12:27:39 +09:00
Noah
af10174cf8 Merge pull request #1362 from RustPython/coolreader18/proper-class-nonewlocals
Only overwrite the locals in __build_class__ if it's a class
2019-09-28 19:44:31 -05:00
Windel Bouwman
188ff0ea73 Merge pull request #1430 from HyeockJinKim/issue1422
Generate SyntaxError at integer starting with 0
2019-09-28 21:08:06 +02:00
HyeockJinKim
831c883deb Add tests for integer 2019-09-29 01:12:11 +09:00
HyeockJinKim
c8d0f5c956 Generate SyntaxError at integer starting with 0
Generate syntaxError at integer starting with 0,
not zero

Fixes #1422
2019-09-29 01:12:07 +09:00
Noah
2d4b15c337 Merge pull request #1428 from lntuition/master
Add .cache/ to tests/.gitignore
2019-09-28 10:42:58 -05:00
lntuition
0700a9e81d Fix argument keyword error in int.to_bytes
Add IntToByteOptions struct to fix int argument keyword error in int.to_bytes
Also fix some ValueError to OverflowError like cPython
2019-09-28 18:33:09 +09:00
lntuition
42fef0c473 Add .cache/ to tests/.gitignore
When execute `pytest` local, sometimes generate .cache folder to tests folder.
Add .cache/ to tests/.gitignore prevent wrong commit.
2019-09-28 18:27:48 +09:00
lntuition
5a277adafb Add testcase for int.to_bytes 2019-09-28 18:22:44 +09:00
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
coolreader18
d0f7b5f347 Invert the inverted boolean 2019-09-28 00:41:41 -05:00
Noah
499bf146bd Only overwrite the locals in __build_class__ if it's a class 2019-09-28 00:41:41 -05: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