HyeockJinKim
|
e812024737
|
Add tests for seqeunce comparison
|
2019-10-04 20:42:24 +09:00 |
|
HyeockJinKim
|
edf44a2b5d
|
Fix sequence comparison
Fixed gt, lt comparison of sequence. Also, the values of
le and ge are calculated using the not operation of gt and lt
Fixes #1450
|
2019-10-04 20:39:34 +09:00 |
|
Windel Bouwman
|
339e44fb5c
|
Merge pull request #1420 from lntuition/fix-1408
Fix int type casting errors
|
2019-10-02 17:27:54 +02:00 |
|
Noah
|
d9cdb32e49
|
Merge pull request #1441 from dralley/fix-strings
Handle unicode indexing by character, not by grapheme
|
2019-10-01 19:01:41 -05:00 |
|
Noah
|
57ab07deb1
|
Merge pull request #1445 from dralley/version_info
Change sys.version* attributes to return the Python version
|
2019-10-01 16:35:58 -05:00 |
|
Daniel Alley
|
a6bf19e549
|
Change sys.version* attributes to return the Python version
Return the version of Python that we attempt to be compatible with, not
the version numbers of the RustPython interpreter itself.
closes #1396
|
2019-10-01 16:12:45 -04:00 |
|
Daniel Alley
|
02ea0b629f
|
Handle unicode indexing by character, not by grapheme
Python isn't grapheme aware, so for compatibility sake, we shouldn't be
either.
closes #1417
|
2019-10-01 12:37:16 -04:00 |
|
Noah
|
36a4e107d7
|
Merge pull request #1414 from RustPython/coolreader18/enum-module
Fix weirdness with type.__new__()/type()/metaclass.__new__() in order to support enum
|
2019-10-01 07:26:31 -05:00 |
|
Jeong YunWon
|
9ad862c753
|
Merge pull request #1443 from HyeockJinKim/iss1431
Implement __eq__, __ne__ of slice
|
2019-10-01 15:19:05 +09:00 |
|
HyeockJinKim
|
246cb81ebe
|
Add tests for slice.__eq__ and slice.__ne__
|
2019-10-01 14:39:27 +09:00 |
|
HyeockJinKim
|
cc8f221c67
|
Implement __eq__, __ne__ of slice
Compute __eq__ and __ne__ by comparing start,
stop and step of slice
Issue #1431
|
2019-10-01 14:39:21 +09:00 |
|
Aviv Palivoda
|
da17726a90
|
Merge pull request #1380 from mpajkowski/os_scandir_contextmanager
os.scandir refinement
|
2019-09-30 23:53:33 +03:00 |
|
coolreader18
|
7780337f72
|
Add mappingproxy.get tests
|
2019-09-29 23:32:51 -05:00 |
|
coolreader18
|
78069284a8
|
Only have type_new on object
|
2019-09-29 23:22:59 -05:00 |
|
Noah
|
d22cac2dd8
|
Rename new slots to tp_new
|
2019-09-29 23:14:37 -05:00 |
|
Noah
|
2bb04f4836
|
Don't try to put __new__ on every type
|
2019-09-29 23:14:37 -05:00 |
|
coolreader18
|
b581975ef6
|
Fix clippy lints
|
2019-09-29 23:14:36 -05:00 |
|
coolreader18
|
c46b5b50bd
|
Fix weirdness with type.__new__()/type()/metaclass.__new__()
|
2019-09-29 23:14:31 -05:00 |
|
coolreader18
|
e5bbe82b72
|
Fix enum.py for RustPython
|
2019-09-29 23:13:08 -05:00 |
|
coolreader18
|
39c73922d0
|
Add enum.py from CPython 3.6
|
2019-09-29 23:13:08 -05:00 |
|
coolreader18
|
4313abcdad
|
Fix type.__new__ for enum
|
2019-09-29 23:13:08 -05: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
|
6bbc69b38a
|
Fix int type casting which number has radix and front underscore
When some number has radix and front underscore both, then ignore front underscore
fixed: #1415
|
2019-09-29 12:57:55 +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 |
|