Windel Bouwman
|
589c431c8c
|
Merge master branch
|
2019-08-15 18:59:29 +02:00 |
|
Marcin Pajkowski
|
e65e9ff7c3
|
Make func_ref an &PyObjectRef
|
2019-08-15 13:45:47 +02:00 |
|
Windel Bouwman
|
d06dec77ea
|
Attempt to reduce the size of the pyobject.rs files by splitting out builtin types.
|
2019-08-14 19:08:47 +02:00 |
|
Windel Bouwman
|
f7320cf545
|
Move Scope struct to its own file, making the frame module private in the process.
|
2019-07-23 20:39:47 +02:00 |
|
ben
|
d24dd170e9
|
Changes to RustPython to support importing and running unittest
|
2019-04-14 12:09:54 +12:00 |
|
ben
|
d5a9d96d62
|
Expose function.__defaults__ and function.__kwdefaults__(only getters)
|
2019-04-07 07:38:42 +12:00 |
|
ben
|
5fd3cf2bcd
|
Implemented keyword only defaults
|
2019-04-07 07:38:42 +12:00 |
|
Adrian Wielgosik
|
89f63e4c9a
|
Convert objobject.rs to new args style
|
2019-03-27 23:25:09 +01:00 |
|
Joey Hain
|
cc4f3fdb40
|
Clean up TypeProtocol
|
2019-03-25 19:18:01 -07:00 |
|
ben
|
db8e648646
|
Make PyFunction.code a PyCodeRef, PyGenerator.frame a FrameRef, and
other improvements to increase use of specific ref types.
|
2019-03-24 13:41:37 +13:00 |
|
ben
|
c1d5ce715f
|
Change isinstance/issubclass to accept PyClassRef instead of PyCObject.
Also changed PyValue::class to return a PyClassRef.
|
2019-03-23 19:32:31 +13:00 |
|
coolreader18
|
a9051ab462
|
Convert all &mut VirtualMachine to &VirtualMachine
|
2019-03-22 01:48:14 -05:00 |
|
Joey
|
7bfd2e6e84
|
Move function items out of pyobject module
|
2019-03-15 21:27:11 -07:00 |
|
Joey
|
fa9e48a5b3
|
Take &mut VirtualMachine insteadof &PyContext
|
2019-03-14 21:43:19 -07:00 |
|
Joey
|
737ec12fa5
|
Rename PyValue::{required_type => class}
|
2019-03-14 20:08:41 -07:00 |
|
Windel Bouwman
|
c00d368448
|
Move classmethod and staticmethod to own files. Also use extend_class more.
|
2019-03-11 19:38:26 +01:00 |
|
Windel Bouwman
|
b8aa38db1a
|
Merge pull request #653 from RustPython/joey/pyobject-2.0-prep
Remove PyObjectPayload enum
|
2019-03-11 17:33:51 +01:00 |
|
ben
|
65c26a1f1b
|
Use new_attribute_error in more places
|
2019-03-11 17:38:19 +13:00 |
|
Joey Hain
|
5971fc3bd4
|
rename PyObjectPayload2 to PyValue
|
2019-03-10 13:48:51 -07:00 |
|
Adam Kelly
|
3fbf627582
|
Merge branch 'master' into scope_globals_locals
|
2019-03-10 13:00:03 +00:00 |
|
Adam
|
9e5b76c9b6
|
Merge pull request #635 from skinny121/property_refactor
Unify property like objects
|
2019-03-10 12:35:24 +00:00 |
|
Joey Hain
|
5a74121c76
|
method
|
2019-03-09 07:11:28 -08:00 |
|
Joey Hain
|
dd56d1d5a2
|
function
|
2019-03-09 07:09:53 -08:00 |
|
ben
|
0ec034df51
|
Change property.__new__ to use new style function and construct
PyProperty
|
2019-03-09 14:07:42 +13:00 |
|
ben
|
2edfe4c7be
|
Migrate usage of member_descriptor and data_descriptor to
new_property/PropertyBuilder
|
2019-03-09 13:00:54 +13:00 |
|
ben
|
f2f0f1d742
|
Remove debug statements
|
2019-03-08 06:03:13 +13:00 |
|
ben
|
9d03abf652
|
Move __class__ attribute to object to make it work in more situations
|
2019-03-07 20:47:31 +13:00 |
|
Joey Hain
|
f10fa6db44
|
Remove outer RefCell from PyObjectRef
|
2019-02-25 21:01:37 -08:00 |
|
Joey
|
eec76ef8e8
|
Don't require objtype import to use arg_check! macro
|
2019-02-21 08:38:02 -08:00 |
|
Joey
|
df76ffe116
|
Replace most relative imports with 2018-style crate
|
2019-02-20 08:50:53 -08:00 |
|
Adrian Wielgosik
|
21299ecf3d
|
Refactor arg_check macro
|
2019-02-13 21:05:23 +01:00 |
|
Tommaso Thea Cioni
|
7e1589d811
|
Minor fix.
|
2019-02-11 13:38:53 +01:00 |
|
Tommaso Thea Cioni
|
c04f4219eb
|
Removed the __code__ attribute from the builtin_function_or_method type.
|
2019-02-11 13:35:59 +01:00 |
|
Tommaso Thea Cioni
|
8ac3c46de1
|
Fix RustPython#390. Now Rust functions have a builtin_function_or_method type, Python functions retain the function type.
|
2019-02-11 02:50:51 +01:00 |
|
Windel Bouwman
|
07fd61f55f
|
Change instance and class to simplified dict type. (#379)
* Change instance and class to simplified dict type.
* Fix formatting.
|
2019-02-08 14:18:14 +00:00 |
|
Adam Kelly
|
a83fd7c1af
|
Add __code__ to functions.
|
2019-02-06 16:01:07 +00:00 |
|
ZapAnton
|
0d3b218237
|
Fixed the 'toplevel_ref_arg' clippy warning
This replaces all the occurrences of the
'let ref var = another_var' with the
'let var = &another_var'
Relevant clippy warning: https://rust-lang.github.io/rust-clippy/master/index.html#toplevel_ref_arg
|
2019-02-05 21:45:56 +03:00 |
|
Windel Bouwman
|
892493e464
|
Rename PyObjectKind into PyObjectPayload
|
2019-01-30 18:06:27 +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 |
|
Adam Kelly
|
a2ce4c8045
|
Add special case handling for __get__(None, NoneType)
|
2018-11-04 20:58:21 +00:00 |
|
Windel Bouwman
|
6746784db8
|
Add classmethod and staticmethod classes.
|
2018-11-04 13:27:50 +01:00 |
|
Windel Bouwman
|
40cf7f4579
|
Move more objects to obj folder
|
2018-09-01 10:00:55 +02:00 |
|