Commit Graph

2895 Commits

Author SHA1 Message Date
ChJR
c099c5708b Change sys.version formatting string limit like CPython 2019-10-06 17:37:36 +09:00
ChJR
85f51e55f9 Change build info format 2019-10-06 17:36:05 +09:00
Jeong YunWon
79e3700477 Merge pull request #1479 from HyeockJinKim/issue1475
Fixed list's __iadd__
2019-10-06 15:46:15 +09:00
Jeong YunWon
84f08c85d9 Merge pull request #1470 from makarchuk/string.__repr__
cpython compatible "".__repr__
2019-10-06 14:32:06 +09:00
Jeong YunWon
98abc916ce Merge pull request #1473 from HyeockJinKim/slice_compare
Add comparison of slice
2019-10-06 14:31:27 +09:00
lazylife7157
b1482d6318 Fix magnitude seperator format bug 2019-10-06 21:14:09 +09:00
HyeockJinKim
4468c81bc1 Fixed list's __iadd__
When list iadd iterable value,
run iterator and add values to the list

Fixes #1475
2019-10-06 14:11:52 +09:00
Noah
867c91b28f Merge pull request #1459 from RustPython/coolreader18/sysexit
Correctly handle a SystemExit unwound to the top level of execution
2019-10-05 18:39:45 -05:00
Timur Makarchuk
027a25c123 Merge branch 'master' into string.__repr__ 2019-10-05 22:14:34 +03:00
Noah
28142e0285 Merge pull request #1471 from sanxiyn/taberror
Implement TabError
2019-10-05 13:54:51 -05:00
Timur Makarchuk
4b962b89d7 Implement some __ne__ methods (#1446)
* Implement some __ne__ methods

Added test snippets from `__ne__` methods

* Fix incompatability in str.__eq__ befaviour

Previously "".__eq__(1) returned "False", which is not the case in
cpython.
Not it's returning 'NotImplemented', as it should
2019-10-06 00:50:02 +09:00
HyeockJinKim
67bc687b31 Add comparison of slice
Add gt, ge, lt, le for slice

Issue #1431
2019-10-05 17:34:08 +09:00
Jeong YunWon
0ac9cb861c Merge pull request #1468 from dralley/new-style
Adopt new style for several more object impls
2019-10-05 16:33:38 +09:00
Jeong YunWon
9b78e9fa03 Merge pull request #1452 from HyeockJinKim/issue1450
Fix sequence comparison
2019-10-05 16:18:31 +09:00
Noah
e304504d22 Fix some miscellaneous stuff
Int division in _sre.py, float precision printf formatting
2019-10-04 22:05:01 -05:00
Noah
e89d00f167 Correctly handle a SystemExit unwound to the top level of execution 2019-10-04 22:05:01 -05:00
Seo Sanghyeon
f2e04c0e2f Implement TabError 2019-10-05 10:12:02 +09:00
Timur
70fb3f69ef cpython compatible "".__repr__
Fixes #1390
2019-10-05 01:17:17 +03:00
Noah
311b53d275 Merge pull request #1461 from dralley/cleanup-zip
Use new style for PyZip impl
2019-10-04 14:14:45 -05:00
Daniel Alley
c254c7eec1 Adopt new style for several more object impls 2019-10-04 13:53:06 -04:00
Daniel Alley
a6fcc664bd Use new style for PyZip impl 2019-10-04 13:35:36 -04:00
Noah
f4c1ae269a Merge pull request #1462 from dralley/cleanup-pystaticmethod
Use new style for PyStaticMethod impl
2019-10-04 12:02:50 -05:00
Daniel Alley
fb04771cad Use new style for PyStaticMethod impl 2019-10-04 08:19:55 -04: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
Seo Sanghyeon
1faa37e208 Disable a Clippy warning 2019-10-04 20:06:07 +09:00
Seo Sanghyeon
a17456dba5 Raise TypeError for duplicate keyword arguments 2019-10-04 19:29:57 +09:00
Windel Bouwman
0d9e723bdb Merge pull request #1463 from lazylife7157/memoryview_hash
Fix #1394 Memoryview hash problem
2019-10-04 10:55:18 +02:00
lazylife7157
c3af2bb858 Make memoryview.__hash__() returns hash value of wrapped object 2019-10-05 01:41:49 +09:00
Windel Bouwman
faee9e3652 Merge pull request #1458 from j30ng/itertools-tee
Implement itertools.tee
2019-10-04 10:53:25 +02:00
j30ng
0b7da12463 Fix Bug in tee.__next__ + Add Test 2019-10-04 16:11:43 +09:00
Daniel Alley
bb7ba3d2e7 Don't init() objtuple twice 2019-10-03 22:58:46 -04:00
Noah
9c4c39aef2 Merge pull request #1456 from RustPython/revert-1444-fix-int-arg
Revert "Fix argument keyword error in int/float/bool.__new__"
2019-10-03 15:18:32 -05:00
j30ng
5351b7d98d Use Rc::clone(&rc) instead of rc.clone() 2019-10-04 04:03:34 +09:00
Windel Bouwman
699450ddd7 Merge pull request #1447 from RustPython/coolreader18/type-attrs
Fix properties on `type`
2019-10-03 20:10:25 +02:00
j30ng
301e5a99ed Implement built-in itertools.tee 2019-10-04 02:59:46 +09:00
coolreader18
936119073b Add tests for type.__bases__, fix type.__bases__ 2019-10-03 09:46:57 -05:00
coolreader18
8746f29d3b Fix sre_compile._bytes_to_code 2019-10-02 22:09:31 -05:00
Noah
9ed825742c Revert " Fix argument keyword error in int/float/bool.__new__" 2019-10-02 21:33:43 -05:00
coolreader18
7e7a20a653 Fix PyNamespace constructor 2019-10-02 20:32:41 -05:00
coolreader18
0c84de8a54 Make creating a PyRef<T> fallible
If the payload isn't what it should be (usually because there's no
constructor for the type), it'll throw a RuntimeError
2019-10-02 18:44:24 -05:00
coolreader18
9456d1b680 Add constructor to mappingproxy 2019-10-02 18:42:46 -05:00
Noah
8612ccc151 Rename re with the Rust regex crate to regex_crate 2019-10-02 20:11:48 +00:00
Noah
d047dc0bd1 Merge pull request #1444 from lntuition/fix-int-arg
Fix argument keyword error in int/float/bool.__new__
2019-10-02 12:14:19 -05: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
Sang-Heon Jeon
49577e0713 Merge branch 'master' into fix-int-arg 2019-10-02 15:19:01 +09:00
lntuition
a07daf322f Fix argument keyword error in bool.__new__
Add BoolArgs struct to fix argument keyword error in 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
Noah
904959b0b7 Add builtinfunc.__call__ 2019-10-01 19:15:29 -05: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
a129080560 Don't forward all type properties to type_type 2019-10-01 21:54:12 +00:00