Ross Jones
|
ae2f7ed1cb
|
Implements __mul__ for lists
Implements __mul__ for lists so that it is possible to do things like
```
s = [1, 2,] * 3
s == [1, 2, 1, 2, 1, 2]
```
|
2018-12-16 12:22:31 +00:00 |
|
Windel Bouwman
|
62c53d8e5d
|
Try to make it simpler to switch dict storage types.
|
2018-12-13 20:38:09 +01:00 |
|
Windel Bouwman
|
521f664e16
|
Merge pull request #229 from AgentMacklin/master
Added some of the missing str methods
|
2018-12-13 20:31:45 +01:00 |
|
Austen LeBeau
|
7ac22d96d1
|
update and added more functions
|
2018-12-13 12:02:18 -06:00 |
|
Windel Bouwman
|
a29e882bc1
|
Store dict key as pyobject into hashmap.
|
2018-12-13 17:05:01 +01:00 |
|
Windel Bouwman
|
e657633e51
|
Move set_item to context struct.
|
2018-12-12 22:27:28 +01:00 |
|
Windel Bouwman
|
4095e0cad7
|
Modify location of set_attr so that we are able to create str python objects for the dictionary.
|
2018-12-12 22:06:19 +01:00 |
|
Windel Bouwman
|
0215830aaa
|
Move set_attr and set_item to context.
|
2018-12-12 19:41:09 +01:00 |
|
Austen LeBeau
|
dd2b4e3c25
|
added isalnum, isalpha, isdigit, swapcase
|
2018-12-12 12:01:35 -06:00 |
|
Windel Bouwman
|
5c04ad8aae
|
Make underlying dict type more hidden.
|
2018-12-12 15:13:40 +01:00 |
|
Austen LeBeau
|
07336fa984
|
initial fork commit
|
2018-12-11 22:44:56 -06:00 |
|
Shing Lyu
|
5734fc29ca
|
Merge pull request #203 from RustPython/consolelog
Mapping Python print to JavaScript console.log
|
2018-12-03 20:48:43 +01:00 |
|
Shing Lyu
|
2c55c4793e
|
[WASM] Mapping print to console.log
|
2018-12-03 19:51:48 +01:00 |
|
Windel Bouwman
|
8eacbcbc06
|
Add builtins to sys.modules. Add __float__ method to int class.
|
2018-11-26 22:31:40 +01:00 |
|
Windel Bouwman
|
f227ce0498
|
Add random module
|
2018-11-25 23:20:10 +01:00 |
|
yodalee
|
68892fb4e2
|
fix rustfmt
|
2018-11-25 22:13:26 +08:00 |
|
yodalee
|
04548db1e0
|
add implementation of special math function
function include: erf, erfc, gamma, lgamma
use package statrs' implementation
|
2018-11-25 20:10:34 +08:00 |
|
Windel Bouwman
|
be462afaa4
|
Add method to list and tuple class.
|
2018-11-17 12:31:24 +01:00 |
|
Bojan
|
0da1f73777
|
Removed empty space
|
2018-11-16 07:49:12 +01:00 |
|
Bojan
|
d972b07195
|
Fixed method comment
|
2018-11-15 23:47:11 +01:00 |
|
Bojan
|
f9860d083e
|
Moved and to use new method
|
2018-11-15 23:42:17 +01:00 |
|
Bojan
|
15c6328ecd
|
Moved sub to use new method
|
2018-11-15 23:42:03 +01:00 |
|
Bojan
|
05d2faa227
|
Added call_or_unsupported to vm.rs
This is to prevent code duplication
|
2018-11-15 23:37:46 +01:00 |
|
Windel Bouwman
|
96c1c5a328
|
Use rusts internal hash algorithm.
|
2018-11-12 21:24:53 +01:00 |
|
Windel Bouwman
|
49f855219a
|
Implement sys.getrefcount, sys.ps1, sys.ps2 and sys.getsizeof
|
2018-11-11 20:54:30 +01:00 |
|
Adam Kelly
|
9cba8d2c3a
|
Avoid crash debug logging circular dictionaries.
|
2018-11-11 18:32:27 +00:00 |
|
Adam Kelly
|
84ef6e3053
|
Add Frame.f_code.
|
2018-11-11 18:12:30 +00:00 |
|
Adam Kelly
|
a1b7c61fcf
|
Implement sys._getframe() to the point where we can use it to get locals.
|
2018-11-11 17:54:30 +00:00 |
|
Bojan
|
ccd1534f69
|
Merge branch 'master' into bojan/objobject-__and__-default
|
2018-11-07 22:34:44 +01:00 |
|
Bojan
|
e7cd83240c
|
Changed to proper implementation in vm
|
2018-11-07 22:32:20 +01:00 |
|
Windel Bouwman
|
c4cbedae2f
|
Extend min builtin function to support key and default.
|
2018-11-07 19:25:18 +01:00 |
|
Windel Bouwman
|
99af466a88
|
Move max function test cases to snippet dir. Implement key and default argument on max function.
|
2018-11-07 17:26:18 +01:00 |
|
Windel Bouwman
|
4acea45f78
|
Add code and frame python objects.
|
2018-11-07 15:24:18 +01:00 |
|
Windel Bouwman
|
df0400dffb
|
Add filter and zip builtins
|
2018-11-07 09:41:16 +01:00 |
|
Windel Bouwman
|
3c4aaa0d3c
|
Merge pull request #188 from RustPython/sub
Implement __sub__/__rsub__.
|
2018-11-06 22:33:40 +01:00 |
|
Windel Bouwman
|
bacaef0ec5
|
Make example work for sub/rsub. Still work in progress.
|
2018-11-06 22:13:49 +01:00 |
|
Windel Bouwman
|
c69b43d13b
|
Add frozenset class, callable function and enumerate function.
|
2018-11-06 21:42:42 +01:00 |
|
Windel Bouwman
|
ce5bb72ed0
|
Minor delta on super class.
|
2018-11-05 20:46:32 +01:00 |
|
Windel Bouwman
|
e3000e2f25
|
Add super object type skeleton.
|
2018-11-04 23:10:02 +01:00 |
|
Adam Kelly
|
a2ce4c8045
|
Add special case handling for __get__(None, NoneType)
|
2018-11-04 20:58:21 +00:00 |
|
Adam Kelly
|
7bf8378a18
|
type.__getattribute__ should be bound to type!
|
2018-11-04 18:43:39 +00:00 |
|
Windel Bouwman
|
a389b55ec1
|
Initial version of property class.
|
2018-11-04 17:14:07 +01:00 |
|
Windel Bouwman
|
6746784db8
|
Add classmethod and staticmethod classes.
|
2018-11-04 13:27:50 +01:00 |
|
Windel Bouwman
|
5ffb20b26e
|
Add builtin oct function. Add weakref.ref class.
|
2018-11-04 12:07:53 +01:00 |
|
Adam Kelly
|
0f0de02827
|
Implement __sub__/__rsub__.
|
2018-11-04 10:07:51 +00:00 |
|
Windel Bouwman
|
8d598740d9
|
Add int __pos__ method
|
2018-11-04 09:34:54 +01:00 |
|
Windel Bouwman
|
9364902768
|
Add tilde unary operator in syntax.
|
2018-11-04 09:30:13 +01:00 |
|
Windel Bouwman
|
17fc5a2345
|
Implemented hexadecimal, octal and binary literals. Also use bigint in the lexer to store big integer literals.
|
2018-11-04 09:00:44 +01:00 |
|
Adam Kelly
|
ff4e8da07e
|
Merge branch 'master' into newinit
|
2018-11-03 22:42:40 +00:00 |
|
Adam Kelly
|
ba8990ed17
|
Fix check that __init__ must return None.
|
2018-11-03 18:09:51 +00:00 |
|