Joey Hain
|
cc4f3fdb40
|
Clean up TypeProtocol
|
2019-03-25 19:18:01 -07:00 |
|
Adrian Wielgosik
|
9a6f7aa8a1
|
Make PyRef::clone not require T implementing Clone
It seems to be a weird consequence of using PhantomData,
so I just rolled a custom Clone.
|
2019-03-24 11:56:15 +01: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 |
|
ben
|
b354b86b7b
|
Fix none_new, return same object that is in PyContext
|
2019-03-23 13:00:17 +13:00 |
|
ben
|
5c7812734d
|
Use more specific ref type than PyObjectRef in PyContext
|
2019-03-23 13:00:12 +13:00 |
|
Adam Kelly
|
50437f8a75
|
Use class_get_attr in various places where we need the internal interface
|
2019-03-22 19:51:02 +00:00 |
|
coolreader18
|
a9051ab462
|
Convert all &mut VirtualMachine to &VirtualMachine
|
2019-03-22 01:48:14 -05:00 |
|
ben
|
08e66b5002
|
Create workaround for properties on None
|
2019-03-20 19:58:56 +13: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 |
|
ben
|
3f301bd684
|
Implement property attributes and functions
|
2019-03-14 17:19:43 +13:00 |
|
Joey Hain
|
5971fc3bd4
|
rename PyObjectPayload2 to PyValue
|
2019-03-10 13:48:51 -07:00 |
|
Joey Hain
|
45bc8c8f7a
|
Move PyRef to pyobject module
|
2019-03-10 13:01:46 -07:00 |
|
Adam Kelly
|
adf473faf4
|
Use macro for NoneType.
|
2019-03-07 17:06:34 +00:00 |
|
Adam Kelly
|
22811c0d56
|
Add PyNone and new style definition for NoneType methods.
|
2019-03-07 17:00:24 +00:00 |
|
Adam Kelly
|
5afbfafa8b
|
Remove special case for None payload from boolval.
|
2019-03-06 16:04:26 +00: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 |
|
Adam Kelly
|
a735bb3dfc
|
Add __repr__ and __new__ to NoneType.
|
2019-02-12 10:09:13 +00:00 |
|