Daniel Watkins
|
ea7f6b4d37
|
Pass a string slice around in main.rs
We only need to convert it to a String once we're passing it in to
compile::compile.
|
2018-09-11 00:11:03 -04:00 |
|
Daniel Watkins
|
c5e36e8530
|
Ignore clippy warnings in lalrpop generated code
|
2018-09-11 00:11:03 -04:00 |
|
Windel Bouwman
|
803a823d51
|
Merge pull request #138 from RustPython/assignment
Assignment
|
2018-09-10 19:45:22 +02:00 |
|
cthulahoops
|
d443c6428b
|
Merge pull request #136 from RustPython/objtyp
Objtyp
|
2018-09-09 21:35:38 +01:00 |
|
Adam Kelly
|
a14b776a81
|
Add tuple packing/unpacking assignment. (tuples only)
|
2018-09-09 21:19:56 +01:00 |
|
Adam Kelly
|
b48d77b78e
|
Add tests to check assignment works with tuple unpacking.
|
2018-09-09 21:19:27 +01:00 |
|
Windel Bouwman
|
de9c11c7c5
|
Move nxt function from pyobject to objiter file. Also fix formatting issues.
|
2018-09-09 20:55:03 +02:00 |
|
Windel Bouwman
|
0acfc10a09
|
Merge with master branch
|
2018-09-09 20:36:42 +02:00 |
|
Windel Bouwman
|
9f06835ca0
|
Add built-ins next and iter
|
2018-09-09 20:35:48 +02:00 |
|
Windel Bouwman
|
903bf41a7a
|
Merge pull request #135 from rmliddle/added_builtins
implemented pow builtin
|
2018-09-09 19:43:45 +02:00 |
|
rmliddle
|
06f3506b62
|
formatting fixes on builtin_pow
|
2018-09-09 00:34:08 +10:00 |
|
rmliddle
|
abba4ae9cc
|
implemented pow builtin
|
2018-09-09 00:05:13 +10:00 |
|
cthulahoops
|
416e48b12e
|
Merge pull request #134 from RustPython/objtyp
Initial attempt at ast builtin module
|
2018-09-07 09:45:23 +01:00 |
|
Windel Bouwman
|
da7745cf27
|
Fix module type
|
2018-09-05 14:31:06 +02:00 |
|
Windel Bouwman
|
ac3c18cf4a
|
Add module type
|
2018-09-05 14:16:36 +02:00 |
|
Windel Bouwman
|
51885f29fc
|
Added more ast to pyast transformations
|
2018-09-05 14:06:16 +02:00 |
|
Windel Bouwman
|
f914b4848f
|
Add two asserts to the ast snippets to check attributes of ast nodes.
|
2018-09-05 12:36:28 +02:00 |
|
Windel Bouwman
|
6293117886
|
Initial attempt at ast builtin module
|
2018-09-04 21:07:57 +02:00 |
|
cthulahoops
|
ba78000fc0
|
Merge pull request #129 from RustPython/objtyp
Implement dir on object
|
2018-09-03 21:14:23 +01:00 |
|
Windel Bouwman
|
64b04d0a91
|
Move get_attributes to objtype file
|
2018-09-03 21:39:16 +02:00 |
|
Windel Bouwman
|
9fa10c7c1a
|
Merge with master
|
2018-09-03 21:30:05 +02:00 |
|
Daniel Watkins
|
e0609823b3
|
Merge pull request #133 from RustPython/bools_are_a_doubleton
Add true_value and false_value to context.
|
2018-09-03 14:45:17 -04:00 |
|
Adam Kelly
|
6068ef6a7a
|
Update json tests to use is.
|
2018-09-03 19:24:02 +01:00 |
|
Adam Kelly
|
1bb7579f7c
|
Add true_value and false_value to context.
|
2018-09-03 19:21:24 +01:00 |
|
cthulahoops
|
9394fec620
|
Merge pull request #128 from OddBloke/json
Create objects with correct types in json.rs
|
2018-09-03 19:00:25 +01:00 |
|
cthulahoops
|
46b306848f
|
Merge pull request #131 from OddBloke/int
Implement no-args int() construction
|
2018-09-02 22:33:58 +01:00 |
|
Daniel Watkins
|
10f0ef33d6
|
Implement no-args int() construction
|
2018-09-02 17:00:35 -04:00 |
|
Daniel Watkins
|
8c167ac4f5
|
Clean up unwrapping of string objects in json.loads
|
2018-09-02 16:49:50 -04:00 |
|
Windel Bouwman
|
947c17eb84
|
Improve int type error
|
2018-09-02 21:49:56 +02:00 |
|
Windel Bouwman
|
a9bc374fc0
|
Implement dir on object
|
2018-09-02 20:44:46 +02:00 |
|
Daniel Watkins
|
91a6989515
|
Remove completed TODO
|
2018-09-02 14:13:02 -04:00 |
|
Daniel Watkins
|
0e33aa397a
|
Create objects with correct types in json.rs
Fixes #120.
|
2018-09-02 14:13:02 -04:00 |
|
Daniel Watkins
|
a4a91f14d4
|
Convert PyObjectSerializer to store a PyContext
We don't actually need anything from the VirtualMachine other than the
context, so just use that directly.
|
2018-09-02 14:13:02 -04:00 |
|
Daniel Watkins
|
82226bfea3
|
Merge pull request #127 from RustPython/objtyp
Objtyp
|
2018-09-02 14:11:03 -04:00 |
|
Windel Bouwman
|
1a2a4adcef
|
Lets delete some clones
|
2018-09-02 19:41:37 +02:00 |
|
Windel Bouwman
|
3bf48b1c2a
|
Merge branch 'master' of https://github.com/RustPython/RustPython into objtyp
|
2018-09-02 19:34:58 +02:00 |
|
Windel Bouwman
|
f7cae1e9db
|
Change signature of isinstance to take a reference to a python reference
|
2018-09-02 19:34:54 +02:00 |
|
Windel Bouwman
|
ab6c517091
|
Merge pull request #123 from RustPython/repr
Implement Repr
|
2018-09-02 19:33:49 +02:00 |
|
Adam Kelly
|
a7af78be54
|
Merge branch 'master' into repr
|
2018-09-02 18:11:37 +01:00 |
|
Windel Bouwman
|
f8016dc38e
|
Merge pull request #124 from RustPython/bools_are_ints
Bool is a subclass of int, so doesn't need a special kind.
|
2018-09-02 18:38:04 +02:00 |
|
Adam Kelly
|
04b73d4628
|
Bool is a subclass of int, so doesn't need a special kind.
|
2018-09-02 14:10:36 +01:00 |
|
Adam Kelly
|
8816e5d362
|
Implement more complete version of str_repr.
|
2018-09-02 13:05:03 +01:00 |
|
Adam Kelly
|
993634269e
|
PrintExpr should print the repr.
|
2018-09-02 12:09:57 +01:00 |
|
Adam Kelly
|
7c3cd319b2
|
objbytes: str -> repr
|
2018-09-02 12:09:57 +01:00 |
|
Adam Kelly
|
7277e63a53
|
Add vm.to_repr and call for formatting list/tuple/dict elements.
|
2018-09-02 12:09:57 +01:00 |
|
Adam Kelly
|
70f6d73001
|
Add __repr__ to objstr.
|
2018-09-02 12:09:57 +01:00 |
|
Adam Kelly
|
c8d8528bff
|
object.__str__ delegates to __repr__.
|
2018-09-02 12:09:57 +01:00 |
|
cthulahoops
|
f42b8b114e
|
Merge pull request #121 from RustPython/objtyp
Improve traceback of exception
|
2018-09-02 12:01:24 +01:00 |
|
Windel Bouwman
|
972b77aefa
|
Merge pull request #122 from RustPython/int_new
Int new
|
2018-09-02 12:21:15 +02:00 |
|
Windel Bouwman
|
fd805cb2ce
|
Fix unittest
|
2018-09-02 12:18:03 +02:00 |
|