Commit Graph

346 Commits

Author SHA1 Message Date
Adrian Wielgosik
ecfc70ef99 Add list.copy() 2019-02-13 00:21:42 +01:00
Windel Bouwman
e5af4caecf Merge pull request #424 from janczer/add_object_lt_le_gt_ge
Add object.{__lt__, __le__, __gt__, __gt__}
2019-02-12 19:21:07 +01:00
Windel Bouwman
de98ac696b Merge pull request #442 from OddCoincidence/float-parsing
Support float(<str>) and float(<bytes>)
2019-02-12 18:45:50 +01:00
janczer
0887b55da8 Add object.{__lt__, __le__, __gt__, __gt__} 2019-02-12 15:32:07 +01:00
Adam Kelly
a735bb3dfc Add __repr__ and __new__ to NoneType. 2019-02-12 10:09:13 +00:00
ben
5c12367f59 Merge branch 'master' into object_format 2019-02-12 20:09:27 +13:00
ben
93e5634d39 Fixes #328, add object.__format__ 2019-02-12 20:06:50 +13:00
Windel Bouwman
9177252cf9 Merge pull request #259 from RustPython/list_insert
Implemented list.insert()
2019-02-12 06:10:20 +01:00
Joey Hain
38c0ea06e5 Support float(<str>) and float(<bytes>) 2019-02-11 19:40:55 -08:00
Shing Lyu
8ded37d566 Raise OverflowError is the index for list.index() overflows 2019-02-11 22:52:27 +01:00
Shing Lyu
b101a52dd0 Added list.insert() 2019-02-11 22:50:10 +01:00
Adam Kelly
50be99a0a1 Failing test case for in and index where types don't match. 2019-02-11 21:11:33 +00:00
Adam
45f45bf43a Merge pull request #433 from OddCoincidence/not-implemented
Use NotImplemented in binary operations
2019-02-11 12:37:22 +00:00
rmliddle
55a22c5a71 Fix module name in os 2019-02-11 21:40:00 +11:00
Joey Hain
057a22529e Move delegation of __ne__ to __eq__ out of objobject 2019-02-10 15:46:12 -08:00
Joey Hain
a510aed86a Tests and fix objobject ne impl 2019-02-10 10:13:30 -08:00
janczer
aac1ce4e07 Fix the str.{__lt__, __gt__} and add the methods str.{__le__, __ge__} 2019-02-10 16:40:09 +01:00
Windel Bouwman
05cd60bebc Merge pull request #415 from silmeth/fix-int-eq-float
fix int – float equality for big ints, inf and nan
2019-02-10 13:55:50 +01:00
silmeth
2182fa1bf5 rename old math tests (conflicting with math library imports) 2019-02-10 13:33:45 +01:00
Windel Bouwman
cf31805c2c Fix set test by add __hash__ method. 2019-02-10 13:30:22 +01:00
Windel Bouwman
9497ee89e8 Merge pull request #292 from mcon/sets-using-hashes
Items are now added to sets using proper __hash__ function calls.
2019-02-10 12:57:46 +01:00
Windel Bouwman
2bab31b8e7 Merge pull request #387 from janczer/add_bytes_ge_gt_le_lt
Add bytes.{__ge__, __gt__, __le__, __lt__}
2019-02-10 12:27:01 +01:00
Windel Bouwman
03a2aad82d Merge pull request #410 from OddCoincidence/complex
Add complex.{__abs__, __eq__, __neg__}
2019-02-10 12:23:24 +01:00
Windel Bouwman
c2db23db2b Merge pull request #417 from janczer/fix_lt_le_ge_gt_float
float.{__lt__, __le__, __ge__, __gt__} fix comparing with non float type
2019-02-10 12:10:58 +01:00
Windel Bouwman
fc38d55b59 Merge pull request #381 from nficca/implement-range-count
Implement range.count
2019-02-10 11:46:10 +01:00
Windel Bouwman
94db145ae8 Merge branch 'master' into complex 2019-02-10 11:41:39 +01:00
Windel Bouwman
e69605328b Merge pull request #426 from skinny121/recursive_repr
Fixed #191, fixes recursive repr() for the standard collections
2019-02-10 08:35:02 +01:00
Ryan Liddle
7422d27201 Merge pull request #422 from HomerMcMillan/range-reversed
Fix range reversed #421
2019-02-10 15:08:34 +11:00
ben
5b637385ea Fixed #191, fixes recursive repr() for the standard collections 2019-02-10 13:22:03 +13:00
Homer McMillan
0611e765e2 Add extra test to builtin_range.py 2019-02-09 18:40:46 -05:00
Nic Ficca
316e94bd42 Add tests 2019-02-09 16:28:04 -05:00
Matthew Constable
9f3cc35e9c Allow sets to be initialized from literals. 2019-02-09 21:24:16 +00:00
Matthew Constable
c673384cc4 Merge branch 'master' into sets-using-hashes 2019-02-09 21:04:33 +00:00
Tommaso Thea Cioni
b9d773824c Uncommented a line of code like a TODO said. 2019-02-09 20:24:24 +01:00
Windel Bouwman
ac37026010 Merge pull request #385 from OddCoincidence/reversed
Add reversed builtin and range.__reversed__
2019-02-09 19:32:44 +01:00
Joey Hain
d3d73bdc22 Disable broken test for now 2019-02-09 10:24:17 -08:00
Windel Bouwman
7807dc3d2c Merge pull request #388 from veera83372/sys-doc
Added __doc__ for sys module
2019-02-09 18:59:45 +01:00
Joey Hain
22a430cdc5 Don't use magic methods directly 2019-02-09 08:20:04 -08:00
Joey Hain
969ddf2ea0 Merge remote-tracking branch 'upstream/master' into reversed 2019-02-09 08:13:03 -08:00
Joey Hain
09dc751869 Avoid using magic methods in tests where possible 2019-02-09 08:09:48 -08:00
janczer
8d1d6ce1ee float.{__lt__, __le__, __ge__, __gt__} fix comparing with non float type 2019-02-09 17:05:32 +01:00
janczer
607e1262d4 Fix the typo 2019-02-09 16:42:32 +01:00
Windel Bouwman
3c25c14311 Merge pull request #400 from palaviv/Add-set-funcs
Add set.{__eq__,__gt__,__ge__,__le__,__lt__,issubset,issuperset}
2019-02-09 16:31:05 +01:00
Windel Bouwman
601e4c9dc9 Merge pull request #416 from silmeth/zero-division
fix floordiv and divmod by zero for ints and floats
2019-02-09 16:29:52 +01:00
silmeth
6c56c22f0f fix floordiv and divmod by zero for ints and floats 2019-02-09 15:15:54 +01:00
silmeth
d960ca3d5b fix int – float equality for big ints, inf and nan 2019-02-09 14:02:43 +01:00
Adam Kelly
5c5d27203a Support for all co_* that can implemented currently. 2019-02-09 12:22:51 +00:00
Adam Kelly
1869a9f1ed Passing version of code.py tests. 2019-02-09 12:15:16 +00:00
Adam Kelly
7b2508a730 Start adding methods to code object. 2019-02-09 12:15:16 +00:00
Adam
8ad95c4a57 Merge pull request #326 from lausek/master
int type: rounding, index, trunc, int (#304)
2019-02-09 11:23:14 +00:00