Commit Graph

2885 Commits

Author SHA1 Message Date
Windel Bouwman
26073152cd Merge pull request #1486 from HyeockJinKim/ref
extend_class for PyTuple
2019-10-07 09:15:34 +02:00
HyeockJinKim
b2c19a964b extend_class for PyTuple 2019-10-07 15:38:02 +09:00
Noah
ae4b68f5ba Merge pull request #1438 from lntuition/fix-byte-like-object
Add logic to check array.array byte like object
2019-10-06 20:33:02 -05:00
Windel Bouwman
09871c03a4 Merge pull request #1467 from youknowone/pow-negative-exp
Fix pow(0, exp) with negative exp to raise ZeroDivisionError
2019-10-06 14:07:54 +02:00
Windel Bouwman
549c95c83f Merge pull request #1344 from youknowone/thread-timeout
_thread.TIMEOUT_MAX
2019-10-06 14:06:41 +02:00
Windel Bouwman
b8582ae7f1 Merge pull request #1484 from lazylife7157/memoryview_construct
Fix #1003 Construct memoryview from bytes-like obejcts
2019-10-06 14:05:27 +02:00
lazylife7157
725d153937 Add type constraints to memoryview constructor 2019-10-07 02:27:12 +09:00
Windel Bouwman
c2118a6194 Merge pull request #1477 from lazylife7157/recursion_error
Add RecursionError
2019-10-06 14:03:48 +02:00
lazylife7157
d0d5dbea67 Formatting 2019-10-06 20:02:59 +09:00
Jeong YunWon
f221a698eb Merge pull request #1480 from HyeockJinKim/slice_hash
Add __hash__ of slice
2019-10-06 17:28:42 +09:00
Jeong YunWon
79e3700477 Merge pull request #1479 from HyeockJinKim/issue1475
Fixed list's __iadd__
2019-10-06 15:46:15 +09:00
HyeockJinKim
96c93c4a21 Add __hash__ of slice
When hashing slice, raise TypeError

Issue #1431
2019-10-06 15:28:36 +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
lazylife7157
540bcbc26b Change type of recursion_limit to Cell 2019-10-06 14:11:15 +09:00
lazylife7157
c15c428da7 Add sys.getrecursionlimit && sys.setrecursionlimit 2019-10-06 13:07:53 +09:00
lazylife7157
297777a15a Raise RecursionError when maximum recursion depth exceeded 2019-10-06 12:11:50 +09:00
lazylife7157
c90ffa7db3 Add RecursionError 2019-10-06 11:31:40 +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
Jeong YunWon
2153ebbc23 Fix pow(0, exp) with negative exp to raise ZeroDivisionError 2019-10-05 00:04:31 +09:00
lntuition
c1d7723b52 Add logic to check array.array byte like object
Add byte like list check function to objlist
And check byte like object in objbyteinner
After apply this patch, We can handle array.array byte like object

Fixed: #1437
2019-10-04 22:04:25 +09:00
Daniel Alley
fb04771cad Use new style for PyStaticMethod impl 2019-10-04 08:19:55 -04:00
Jeong YunWon
035c51b360 _thread.TIMEOUT_MAX 2019-10-04 21:03:00 +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
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