coolreader18
|
070f5aa322
|
Merge master into pyvaluepayload
|
2019-03-12 18:36:10 -05:00 |
|
coolreader18
|
e49d7146a0
|
Add PyValuePayload trait and use it for PyObject.payload
|
2019-03-12 18:31:59 -05:00 |
|
Adrian Wielgosik
|
b334689e55
|
Remove Option from PyObject.typ; Refactor type hierarchy initialization.
|
2019-03-12 21:58:03 +01:00 |
|
Adam Kelly
|
1e39512e74
|
Convert _mro to iterator.
|
2019-03-11 18:58:15 +00: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
|
e2e13af7ea
|
Remove PyObjectPayload
|
2019-03-10 13:45:38 -07:00 |
|
Joey Hain
|
45bc8c8f7a
|
Move PyRef to pyobject module
|
2019-03-10 13:01:46 -07: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 |
|
Adam
|
21382fadbd
|
Merge branch 'master' into py_class
|
2019-03-08 08:04:23 +00:00 |
|
ben
|
4b1cd72355
|
Add todo for using PyClassRef when that lands
|
2019-03-08 17:04:32 +13:00 |
|
Adam Kelly
|
e220f0a571
|
Add PyClass and remove old Class payload
|
2019-03-07 20:42:10 +00:00 |
|
Adam Kelly
|
995212040a
|
Use PyInstance as the payload rather than ().
|
2019-03-07 18:42:46 +00:00 |
|
Adam Kelly
|
5b1384814c
|
Move attributes dictionary to PyObject.
|
2019-03-07 18:04:02 +00:00 |
|
ben
|
720bec2f4f
|
Convert __class__ descriptor to use new style functions
|
2019-03-07 20:47:31 +13:00 |
|
ben
|
9d03abf652
|
Move __class__ attribute to object to make it work in more situations
|
2019-03-07 20:47:31 +13:00 |
|
Windel Bouwman
|
d7f8961a12
|
Simplify some PyFuncArgs occurences.
|
2019-03-06 22:30:11 +01:00 |
|
Adam Kelly
|
10bbfc6a34
|
Implement dir via __dir__.
|
2019-03-06 19:05:18 +00:00 |
|
ricky han
|
30145ec6e2
|
cargo fmt
|
2019-02-26 17:47:03 -05:00 |
|
ricky han
|
0a2aa1e64b
|
fix compile
|
2019-02-26 17:39:56 -05:00 |
|
Joey Hain
|
f10fa6db44
|
Remove outer RefCell from PyObjectRef
|
2019-02-25 21:01:37 -08:00 |
|
Ricky Han
|
6f85a44f7c
|
cargo fmt
|
2019-02-25 16:35:19 -05:00 |
|
Ricky Han
|
cf400501a1
|
move set_item to DictProtocol
|
2019-02-25 16:32:50 -05:00 |
|
Joey
|
df76ffe116
|
Replace most relative imports with 2018-style crate
|
2019-02-20 08:50:53 -08:00 |
|
Windel Bouwman
|
e5af4caecf
|
Merge pull request #424 from janczer/add_object_lt_le_gt_ge
Add object.{__lt__, __le__, __gt__, __gt__}
|
2019-02-12 19:21:07 +01:00 |
|
janczer
|
0887b55da8
|
Add object.{__lt__, __le__, __gt__, __gt__}
|
2019-02-12 15:32:07 +01:00 |
|
ben
|
d14aeef2e5
|
Handle passing no format_spec into format()
|
2019-02-12 20:24:57 +13:00 |
|
ben
|
5c12367f59
|
Merge branch 'master' into object_format
|
2019-02-12 20:09:27 +13:00 |
|
ben
|
93e5634d39
|
Fixes #328, add object.__format__
|
2019-02-12 20:06:50 +13:00 |
|
Joey Hain
|
057a22529e
|
Move delegation of __ne__ to __eq__ out of objobject
|
2019-02-10 15:46:12 -08:00 |
|
Joey Hain
|
a510aed86a
|
Tests and fix objobject ne impl
|
2019-02-10 10:13:30 -08: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 |
|
Windel Bouwman
|
040a377d06
|
Merge branch 'master' into fix_redundant_field_names
|
2019-02-06 08:14:14 +01:00 |
|
veera venky
|
3de17b9083
|
Added __doc__ atrribute for object
|
2019-02-06 08:35:57 +05:30 |
|
Windel Bouwman
|
aaf0eab530
|
Merge pull request #342 from ZapAnton/fix_collapsible_if
Fixed the 'collapsible_if' clippy warnings
|
2019-02-05 23:34:29 +01:00 |
|
ZapAnton
|
fb9fa27555
|
Fixed the 'redundant_field_names' clippy warnings
This replaces all the occurrences of the Struct {field : field}
with the Struct {field}.
Relevant clippy warning: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
|
2019-02-05 21:56:16 +03:00 |
|
ZapAnton
|
b0cbb23b43
|
Fixed the 'collapsible_if' clippy warnings
Relevant clippy warning: https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
|
2019-02-05 21:49:07 +03: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 |
|
coolreader18
|
80573b0544
|
Format PyObject's correctly and nicely
|
2018-12-26 18:09:49 -06: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
|
5c7b0da2f1
|
Magic methods aren't looked up via getattribute.
|
2018-11-01 19:57:13 +00:00 |
|
Adam Kelly
|
3e07c19ec4
|
Implement object.__getattribute__.
|
2018-11-01 19:57:13 +00:00 |
|
Windel Bouwman
|
104bc56bc1
|
Add hash builtin function.
|
2018-10-21 23:33:06 +02:00 |
|
Windel Bouwman
|
ae768c7fe6
|
Add parsing for star arg parameters.
|
2018-10-20 11:47:23 +02:00 |
|
Windel Bouwman
|
133d72fcb1
|
Add tokenize module. Change call_method to take a reference to a PyObjectRef. Add new method to list class.
|
2018-10-14 15:21:48 +02:00 |
|
Windel Bouwman
|
2d7b0e0d4b
|
Moved objbool into obj folder
|
2018-09-29 09:38:07 +02:00 |
|
Adam Kelly
|
c8d8528bff
|
object.__str__ delegates to __repr__.
|
2018-09-02 12:09:57 +01:00 |
|
Adam Kelly
|
76344e5023
|
Add object.__init__
|
2018-09-02 10:57:30 +01:00 |
|