Jeong YunWon
|
80f3da92ee
|
vm/src/slots.rs
|
2020-01-26 14:05:05 +09:00 |
|
Jeong YunWon
|
e2e5c7ab00
|
Add PyBuiltinCallable and call slot
|
2020-01-26 14:04:44 +09:00 |
|
Jeong YunWon
|
d5367d1761
|
#[pymethod(magic)]: pyname as __{sig.ident}__ form
|
2020-01-26 02:48:43 +09:00 |
|
coolreader18
|
538e492dda
|
Add #[pyimpl(with(...))]
|
2020-01-14 23:56:21 -06:00 |
|
Jeong YunWon
|
bf0b4dcfdd
|
Hide PyFunction members by moving methods to objfunction
|
2020-01-15 11:51:59 +09:00 |
|
Jeong YunWon
|
30fc460136
|
PyClassImpl for PyFunction
|
2020-01-15 11:51:59 +09:00 |
|
Jeong YunWon
|
0b1050e8c1
|
cleanup PyFunction a little bit
|
2020-01-15 11:51:29 +09:00 |
|
Jeong YunWon
|
4c2e34a523
|
Use slot descriptor get if it exists
|
2020-01-14 15:37:26 +09:00 |
|
Jeong YunWon
|
cdc39701d8
|
Add PyBuiltinDescriptor for descriptors
|
2020-01-14 15:37:15 +09:00 |
|
Jeong YunWon
|
70b63eb758
|
new_rustfunc -> new_function & new_method to distinguish bindable functions
|
2020-01-12 18:39:16 +09:00 |
|
Jeong YunWon
|
78b268ae0b
|
Remove unbound methods from modules
|
2020-01-12 18:34:44 +09:00 |
|
Jeong YunWon
|
c1306726c4
|
Fix clippy warnings
|
2019-12-21 18:49:48 +09:00 |
|
coolreader18
|
f7831491c5
|
Add stub implementation of atexit
|
2019-11-17 17:09:38 -06:00 |
|
Aviv Palivoda
|
841e22434a
|
Return function attributs in method
|
2019-11-02 19:34:10 +02:00 |
|
coolreader18
|
c08f11ad1b
|
Change FunctionOpArg to CodeFlags, stored in CodeObject
|
2019-10-14 20:20:52 +00:00 |
|
Jeong YunWon
|
6c0f852b62
|
Refactor pymethod return types to be smaller as possible
|
2019-10-11 03:27:23 +09:00 |
|
Noah
|
904959b0b7
|
Add builtinfunc.__call__
|
2019-10-01 19:15:29 -05:00 |
|
Noah
|
499bf146bd
|
Only overwrite the locals in __build_class__ if it's a class
|
2019-09-28 00:41:41 -05:00 |
|
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 |
|