Commit Graph

279 Commits

Author SHA1 Message Date
Joey Hain
1ebacafb00 Add reversed builtin and range.__reversed__ 2019-02-08 00:19:14 -08:00
Joey Hain
54bcb08518 Add range.{__bool__, __contains__}
- Also fix range.index for negative steps
2019-02-07 20:31:32 -08:00
veera venky
b85cf91a23 Added __doc__ atrribute for tuple 2019-02-07 23:47:47 +05:30
veera venky
1479d6bc77 Added index to tuple 2019-02-07 14:56:14 +05:30
Windel Bouwman
c21772c969 Merge pull request #365 from ZapAnton/int_rxor
int type: Added __rxor__
2019-02-06 10:55:55 +01:00
Windel Bouwman
62cad730d3 Merge pull request #364 from HomerMcMillan/string_is_methods
Fix string is* methods
2019-02-06 10:55:06 +01:00
ZapAnton
dfd0ea23c0 int type: Added tests for the __rxor__ 2019-02-06 12:08:26 +03:00
Homer McMillan
94dc6ece64 Fix python tests that travis didn't like 2019-02-06 02:42:44 -05:00
Windel Bouwman
a26279111d Merge pull request #353 from OddCoincidence/range-index
Add range.index
2019-02-06 08:00:11 +01:00
Windel Bouwman
8a53547e2b Merge pull request #355 from NLincoln/compliant-complex-repr
repr() of complex numbers is compliant with cpython
2019-02-06 07:52:31 +01:00
Homer McMillan
0085470c83 Add tests for bytearray 2019-02-06 01:26:51 -05:00
Nathan
12e6de0503 repr() of complex numbers is compliant with cpython 2019-02-05 20:59:41 -06:00
ben
6d494fb9ee Merge branch 'master' into iter_lazy 2019-02-06 12:46:16 +13:00
ben
6c8ec39882 Make map and filter into proper types 2019-02-06 12:45:14 +13:00
Windel Bouwman
87ceed77ad Merge pull request #287 from makarchuk/float-conversion
Float Conversion for #211
2019-02-05 23:19:20 +01:00
ben
6e99ad32db Added tests for when function in filter/map raises StopIteration 2019-02-06 11:12:25 +13:00
ben
f85bc13ded Fix misunderstanding about behaviour if filter function is None 2019-02-06 11:12:25 +13:00
ben
91fcd7782e Make map lazy and accept multiple iterables 2019-02-06 11:12:25 +13:00
ben
8cc6821c44 Make filter lazy 2019-02-06 11:12:25 +13:00
Joey Hain
b0a2f6f87d Add range.index 2019-02-05 13:34:54 -08:00
Timur
4b2787ea1d Comment out math from tests due to Travis errors 2019-02-05 21:54:13 +03:00
Windel Bouwman
7941480fca Merge pull request #269 from mrecachinas/add-int-doc
Add int.__doc__ (addresses #261)
2019-02-05 18:26:28 +01:00
Windel Bouwman
0f0ceeaa00 Merge pull request #332 from lausek/imports
raise ImportError in import list
2019-02-05 18:25:41 +01:00
Windel Bouwman
fa91cc36e8 Merge pull request #329 from ZapAnton/int_invert
int type: Added __invert__
2019-02-05 18:14:21 +01:00
Windel Bouwman
676f60296d Merge pull request #330 from ichyo/string-len
Use the number of characters instead of bytes for str.__len__
2019-02-05 17:57:58 +01:00
Windel Bouwman
b710eedb04 Merge pull request #324 from veera83372/refactor-py
Refactored: whats_left_to_implement.py
2019-02-05 17:45:10 +01:00
lausek
f4af599167 added ImportError as builtin 2019-02-05 17:41:05 +01:00
Adam
6ea784e78e Merge pull request #323 from vokar97/handle-index-overflow
Add error handling for objsequence and objstr index overflow (addresses #276)
2019-02-05 16:00:07 +00:00
ichyo
d1b034e3b9 Avoid using \xhh for string 2019-02-05 23:54:39 +09:00
lausek
f8db0f1c94 raise ImportError in import list 2019-02-05 15:42:39 +01:00
ichyo
fc779c2e3a Use the number of characters instead of bytes for str.__len__ 2019-02-05 23:26:13 +09:00
ZapAnton
8c469a6466 int type: Added tests for the __invert__ 2019-02-05 15:25:07 +03:00
veera venky
ea4059a18f Refactored: whats_left_to_implement.py 2019-02-05 16:04:01 +05:30
Vladimir Karamyshev
ebbd3d9f22 Add error handling for objsequence and objstr index overflow 2019-02-05 10:17:43 +03:00
Windel Bouwman
63c83086c7 Merge pull request #320 from HomerMcMillan/tuple_comparisons
Tuple comparisons
2019-02-05 06:24:30 +01:00
Windel Bouwman
ed53a353c2 Merge pull request #316 from OddCoincidence/range-use-bigint
Represent range with BigInts
2019-02-05 06:21:04 +01:00
Windel Bouwman
2be174050a Merge pull request #305 from veera83372/master
Adding int.__bool__ method
2019-02-05 06:19:26 +01:00
Homer McMillan
fb58ca3e6c Add comparison tests for tuple 2019-02-04 23:31:39 -05:00
Joey Hain
9ac8e55695 Represent range with BigInts 2019-02-04 17:38:23 -08:00
veera venky
d3fedecd61 Adding 'int.__bool__' method 2019-02-05 02:26:44 +05:30
Windel Bouwman
f4a78d4148 Merge pull request #307 from veera83372/object-methods
Added object expected methods to left to implement list
2019-02-04 21:49:19 +01:00
Windel Bouwman
b7b4a8a51b Merge branch 'master' into add-int-doc 2019-02-04 21:47:09 +01:00
Windel Bouwman
1c07a2285d Merge pull request #268 from mrecachinas/add-bool-doc
Add bool.__doc__ (addresses #260)
2019-02-04 21:34:58 +01:00
veera venky
c8f2515f4b Added object expected methods to left to implement list 2019-02-05 01:42:32 +05:30
Timur
b25aab006e Add type conversion to functions calls in math 2019-02-04 22:22:18 +03:00
Windel Bouwman
b7f6db753f Merge branch 'master' into fix-unicode-handling 2019-02-04 08:39:21 +01:00
Windel Bouwman
caac5a34d5 Merge branch 'master' into tuple_add 2019-02-04 08:05:07 +01:00
Windel Bouwman
235aa864f4 Merge pull request #296 from agude/int_conj
Add .conjugate() method to int type
2019-02-04 07:43:13 +01:00
holygits
33a3ec8832 Handle unicode string slicing with graphemes 2019-02-04 15:40:30 +13:00
Alexander Gude
33523d492c Change int.conjugate() to return a new int
This results in the correct behavior (that is, matching CPython) for
both int and bool types.

Also adding a bool conjugate test.
2019-02-03 13:31:09 -08:00