Adam Kelly
|
79ec7990a8
|
builtin_build_class should call objtype::new
|
2018-08-16 07:44:00 +01:00 |
|
Windel Bouwman
|
d8a8e86c22
|
Merge pull request #65 from RustPython/object
Add object class.
|
2018-08-15 21:31:42 +02:00 |
|
Adam Kelly
|
fd116b7d3f
|
Add object class.
|
2018-08-15 17:03:29 +01:00 |
|
cthulahoops
|
66c5f0f96a
|
Merge pull request #63 from RustPython/list_append
Add getattr and hasattr builtins
|
2018-08-15 16:59:18 +01:00 |
|
Windel Bouwman
|
942d74e9a7
|
Merge pull request #64 from RustPython/callable_2
Callable 2
|
2018-08-15 17:04:56 +02:00 |
|
Windel Bouwman
|
a7ff8a01bc
|
Rust formatting
|
2018-08-15 14:29:01 +02:00 |
|
Adam Kelly
|
68554d8dd2
|
Refactor to simplify body of invoke.
Moves some functionality to objclass, removes call method from PyObject.
|
2018-08-15 13:04:38 +01:00 |
|
Adam Kelly
|
9917bebb99
|
Remove unnecessary mutability in DictProtocol.
|
2018-08-15 12:58:18 +01:00 |
|
Adam Kelly
|
8eee2cec74
|
Add (broken) callable test.
|
2018-08-15 12:58:18 +01:00 |
|
Adam Kelly
|
f488843970
|
Implement __call__
|
2018-08-15 12:58:18 +01:00 |
|
Adam Kelly
|
eb9d61fbdb
|
Remove unneeded mutable borrow which causes trace crash.
|
2018-08-15 12:58:18 +01:00 |
|
Windel Bouwman
|
6854aacf5e
|
Add builtin chr function
|
2018-08-15 13:52:08 +02:00 |
|
Windel Bouwman
|
19300496c2
|
Let len method invoke list __len__ function
|
2018-08-15 13:32:39 +02:00 |
|
Windel Bouwman
|
a388334c9e
|
Call vm.get_attribute from getattr
|
2018-08-15 10:00:47 +02:00 |
|
Windel Bouwman
|
c81e497ace
|
Add setattr built-in
|
2018-08-15 00:02:15 +02:00 |
|
Windel Bouwman
|
6444b50a44
|
Add getattr and hasattr builtins
|
2018-08-14 23:39:47 +02:00 |
|
cthulahoops
|
2069a4fa82
|
Merge pull request #62 from RustPython/list_append
Register append function to list type
|
2018-08-14 22:16:11 +01:00 |
|
Windel Bouwman
|
c9816c37de
|
Fix append snippet
|
2018-08-14 22:44:55 +02:00 |
|
Windel Bouwman
|
919b7f631d
|
Add reverse function to list
|
2018-08-14 22:01:40 +02:00 |
|
Windel Bouwman
|
34bba7a257
|
Borrow list object mutably and append item
|
2018-08-14 21:52:00 +02:00 |
|
Windel Bouwman
|
4ada085234
|
Format code properly and try to implement append function
|
2018-08-14 21:21:47 +02:00 |
|
Windel Bouwman
|
51acd6c4b5
|
Register append function to list type
|
2018-08-14 20:56:14 +02:00 |
|
Daniel Watkins
|
573edffafc
|
Merge pull request #60 from RustPython/none
There is only one none.
|
2018-08-12 17:12:52 -04:00 |
|
Adam Kelly
|
c83f548d92
|
There is only one none.
|
2018-08-12 20:20:56 +01:00 |
|
cthulahoops
|
1ad9f87f4e
|
Merge pull request #59 from RustPython/methods
Methods
|
2018-08-12 19:34:39 +01:00 |
|
Adam Kelly
|
3a6649ddeb
|
Use standard method machinary to call __init__.
|
2018-08-12 18:57:56 +01:00 |
|
Adam Kelly
|
4b52f72316
|
load_attr to use class based attribute getting.
|
2018-08-12 18:57:56 +01:00 |
|
Adam Kelly
|
0597cff6c6
|
Add has_attr to AttributeProtocol.
|
2018-08-12 18:27:03 +01:00 |
|
Adam Kelly
|
6889b34515
|
Add Type Protocol.
|
2018-08-12 18:27:03 +01:00 |
|
Adam Kelly
|
43011d3a9c
|
Create functions with type of function class.
|
2018-08-12 18:27:03 +01:00 |
|
Adam Kelly
|
cb3bd23cb1
|
Add modules for class and function objects.
|
2018-08-12 18:27:03 +01:00 |
|
Adam Kelly
|
9776385ce9
|
Ignore vim swap files.
|
2018-08-12 18:26:41 +01:00 |
|
Windel Bouwman
|
1f8595cc94
|
Merge pull request #58 from OddBloke/trailing_commas
Parse trailing commas in lists/dicts
|
2018-08-12 12:20:00 +02:00 |
|
Daniel Watkins
|
19c9db2375
|
Parse trailing commas in lists/dicts
|
2018-08-11 23:37:01 -04:00 |
|
Windel Bouwman
|
37c1377fcb
|
Merge pull request #57 from OddBloke/rustfmt
Format the whole project (and add Travis check to avoid regression)
|
2018-08-11 10:09:45 +02:00 |
|
Daniel Watkins
|
aa41eb7cd1
|
Add rustfmt check to Travis
|
2018-08-10 20:36:44 -04:00 |
|
Daniel Watkins
|
2a90df80c8
|
Run cargo fmt to format the entire project
|
2018-08-10 20:23:15 -04:00 |
|
Daniel Watkins
|
a9653931b7
|
Fix warnings emitted during cargo test
|
2018-08-10 17:13:27 -04:00 |
|
Daniel Watkins
|
76a19d35be
|
Move lexer::lex_source in to tests module
That's the only place it is used; this fixes a warning.
|
2018-08-10 17:10:42 -04:00 |
|
cthulahoops
|
8bda921856
|
Merge pull request #56 from OddBloke/warnings
Fix all current warnings
|
2018-08-10 22:02:32 +01:00 |
|
Daniel Watkins
|
0b5248827b
|
Allow TryExcept to be dead code (for now)
TryExcept is referenced by code, so I don't want to rename it, but it's
never constructed so it still produces a warning.
|
2018-08-10 16:32:11 -04:00 |
|
Daniel Watkins
|
ede4533349
|
Rename objdict::_set_item as it is unused
|
2018-08-10 16:32:11 -04:00 |
|
Daniel Watkins
|
f879fd9b43
|
Rename objlist::append as it is unused
|
2018-08-10 16:32:11 -04:00 |
|
Daniel Watkins
|
a15007f10d
|
Remove the unused and empy objint::add function
|
2018-08-10 16:32:11 -04:00 |
|
Daniel Watkins
|
340d90a3f9
|
Refactor push_code_object to push_new_code_object
The argument wasn't being used by the current implementation, so drop
it.
|
2018-08-10 16:32:11 -04:00 |
|
Daniel Watkins
|
d8d9eb8087
|
Silence a variety of unused argument warnings
|
2018-08-10 16:32:11 -04:00 |
|
Daniel Watkins
|
20737f77ac
|
Remove duplicated match arm from PyObject::eq
|
2018-08-10 16:32:11 -04:00 |
|
Daniel Watkins
|
d8cd5a3361
|
Enforce zero arguments to locals
|
2018-08-10 16:31:13 -04:00 |
|
Daniel Watkins
|
976a3f7a03
|
Remove unused VirtualMachine.call function
|
2018-08-10 12:34:01 -04:00 |
|
Daniel Watkins
|
aba1daf674
|
Remove unused import (and rustfmt all imports) in vm.rs
|
2018-08-10 12:32:53 -04:00 |
|