Commit Graph

1690 Commits

Author SHA1 Message Date
coolreader18
f7c91c7df0 Add add_to_scope() method for WASM VM 2019-02-04 20:36:19 -06:00
Joey Hain
9ac8e55695 Represent range with BigInts 2019-02-04 17:38:23 -08:00
coolreader18
3bec2260bb Rename VMStore 2019-02-04 18:58:53 -06:00
holygits
9a37825f7b Add OSError
Fix heirarchy or existing os errors
2019-02-05 10:29:36 +13: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
47d43a7fef Merge pull request #306 from HomerMcMillan/range-builtin
Add built in range type (addresses #294)
2019-02-04 21:46:07 +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
HomerMcMillan
41d73c49a1 Merge branch 'master' into range-builtin 2019-02-04 15:14:43 -05:00
veera venky
c8f2515f4b Added object expected methods to left to implement list 2019-02-05 01:42:32 +05:30
Homer McMillan
64bd33e787 Add built in range type (addresses #294) 2019-02-04 15:08:13 -05:00
Michael Recachinas
9dded0cb7b Replace context.new_property with context.new_str for int.__doc__ 2019-02-04 19:46:58 +00:00
Michael Recachinas
804def1522 Replace context.new_property with context.new_str for bool.__doc__ 2019-02-04 19:37:24 +00:00
Timur
b25aab006e Add type conversion to functions calls in math 2019-02-04 22:22:18 +03:00
Windel Bouwman
2b22cd443e Implement clippy thoughts into rustpython_parser 2019-02-04 18:18:40 +01:00
Windel Bouwman
7096434f95 Implement some clippy tips 2019-02-04 17:17:54 +01:00
Windel Bouwman
55aa12b68f Merge pull request #299 from holygits/fix-unicode-handling
Handle unicode string slicing with graphemes
2019-02-04 13:48:41 +01:00
Windel Bouwman
b7f6db753f Merge branch 'master' into fix-unicode-handling 2019-02-04 08:39:21 +01:00
Windel Bouwman
4242b66992 Merge pull request #301 from mrnugget/remove_dereference
Remove unnecessary dereferences/references in compiler
2019-02-04 08:37:32 +01:00
Windel Bouwman
1e576b5baa Merge pull request #273 from skinny121/tuple_add
Add tuple.__add__
2019-02-04 08:27:41 +01:00
Thorsten Ball
0146e5f51c Remove unnecessary dereferences/references in compiler
It's not necessary to dereference a reference to then take a reference
again, at least not in these cases, so we can remove them.
2019-02-04 08:15:22 +01:00
Windel Bouwman
caac5a34d5 Merge branch 'master' into tuple_add 2019-02-04 08:05:07 +01:00
Windel Bouwman
44e9658f52 Merge pull request #297 from HomerMcMillan/issue_295
Fix panic on out of bounds negative index (addresses #295)
2019-02-04 07:48:17 +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
Windel Bouwman
371f8f81dc Merge pull request #298 from idbentley/alphebetize_exceptions
Alphebetize exception related code
2019-02-04 07:42:42 +01:00
holygits
33a3ec8832 Handle unicode string slicing with graphemes 2019-02-04 15:40:30 +13:00
idbentley
f2db23bb35 correct order of errors. 2019-02-03 16:51:17 -05:00
Homer McMillan
055e577424 Fix panic on out of bounds negative index (addresses #295)
Also an out of bounds index now raises an IndexError rather than a ValueError
2019-02-03 16:38:04 -05:00
idbentley
19557e8344 Alphebetize exception related code 2019-02-03 16:36:25 -05: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
Windel Bouwman
0f87d151a0 Merge pull request #289 from chaconnewu/198fix
Fix reverse method for calling div.
2019-02-03 21:27:59 +01:00
Windel Bouwman
7c6fdbacf1 Merge pull request #279 from HomerMcMillan/list-orderable-ops
Add list.{__lt__, __gt__, __le__, __ge__}
2019-02-03 21:25:35 +01:00
Alexander Gude
a95747f161 Add .conjugate() method to int type
Also add tests for for the int type, and a commented out one for the
bool type.
2019-02-03 11:18:23 -08:00
Matthew Constable
190b2a43d9 Fixed formatting 2019-02-03 18:34:35 +00:00
Matthew Constable
0beceefd0c Add a few tests for sets which reflect new changes. 2019-02-03 17:51:06 +00:00
Matthew Constable
da5046100b Able to create set from iterable. 2019-02-03 17:25:24 +00:00
Matthew Constable
b433b7fcf0 Implemented remove() method on set. 2019-02-03 17:01:32 +00:00
Homer McMillan
353d881bac Fix missing seq_mul import 2019-02-03 11:33:11 -05:00
HomerMcMillan
168e0e5471 Merge branch 'master' into list-orderable-ops 2019-02-03 11:17:09 -05:00
Matthew Constable
c022ac46e6 Refactored adding to set using hash into helper function. 2019-02-03 16:09:44 +00:00
Matthew Constable
6acb7eb006 Handle attempt to add non-hashable items to a set. 2019-02-03 15:46:13 +00:00
Matthew Constable
d5801162bd Sets use python __hash__ functions when items are added - need to re-implement set creation from iterable 2019-02-03 15:25:24 +00:00
Windel Bouwman
34c99b0c99 Merge pull request #278 from holygits/improve-fio-errs
Better error handling for file io
2019-02-03 16:03:41 +01:00
Yu Wu
38ee8aeed6 Fix reverse method for calling div. 2019-02-03 07:02:36 -08:00
Windel Bouwman
384ae474de Merge pull request #282 from orf/use-xdg
Use XDG paths to store Python history
2019-02-03 15:40:24 +01:00
Windel Bouwman
a7d011f9c7 Merge pull request #270 from ZapAnton/str_isdecimal
Added the isdecimal method to the 'str' class
2019-02-03 15:37:20 +01:00
Windel Bouwman
ac0ea87ead Merge pull request #271 from holygits/bitshift
Implement `__rshift__` and `__lshift__` for integer type
2019-02-03 15:35:50 +01:00
Windel Bouwman
00f86d1454 Merge pull request #288 from 11Takanori/fix-typo
Fix typo
2019-02-03 14:58:24 +01:00
Takanori Ishibashi
334d78704a distuingish -> distinguish 2019-02-03 21:41:04 +09:00