Joey
|
75d02a1725
|
complex: move to impl block
|
2019-04-02 09:30:18 -07:00 |
|
Adam
|
26a238085f
|
Merge pull request #724 from RustPython/cleaning-tweaks
Increase usage of extend_class macro.
|
2019-03-23 09:14:50 +00:00 |
|
Windel Bouwman
|
b93f96d491
|
Increase usage of extend_class macro.
|
2019-03-23 09:16:32 +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
|
5c7812734d
|
Use more specific ref type than PyObjectRef in PyContext
|
2019-03-23 13:00:12 +13:00 |
|
coolreader18
|
a9051ab462
|
Convert all &mut VirtualMachine to &VirtualMachine
|
2019-03-22 01:48:14 -05:00 |
|
Joey
|
9de7285d23
|
Merge remote-tracking branch 'origin/master' into joey/pyobject-function-split
Conflicts:
vm/src/frame.rs
vm/src/obj/objbytearray.rs
vm/src/obj/objbytes.rs
vm/src/obj/objcomplex.rs
|
2019-03-16 08:37:18 -07:00 |
|
Joey
|
7bfd2e6e84
|
Move function items out of pyobject module
|
2019-03-15 21:27:11 -07:00 |
|
Adam
|
0e6e8b617d
|
Merge branch 'master' into prefer_pyvalue_into_ref
|
2019-03-15 22:11:51 +00:00 |
|
Adam Kelly
|
e8e8544b4b
|
Avoid use of PyObject in objcomplex.
|
2019-03-15 16:09:04 +00: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 |
|
Joey Hain
|
053ceb1a30
|
Move payload boxing into PyObject::new
|
2019-03-10 20:19:28 -07:00 |
|
Joey Hain
|
5971fc3bd4
|
rename PyObjectPayload2 to PyValue
|
2019-03-10 13:48:51 -07:00 |
|
Joey Hain
|
e2e13af7ea
|
Remove PyObjectPayload
|
2019-03-10 13:45:38 -07:00 |
|
Joey Hain
|
f820aeb1ea
|
Convert complex payload
|
2019-03-04 09:04:24 -08:00 |
|
coolreader18
|
f364ea5943
|
Fix a bunch of clippy lints
|
2019-03-01 18:41:45 -06:00 |
|
Joey Hain
|
f10fa6db44
|
Remove outer RefCell from PyObjectRef
|
2019-02-25 21:01:37 -08:00 |
|
Adam Gutglick
|
f333c75fd6
|
Added the ability to do addition between complex numbers and ints.
|
2019-02-22 08:42:44 -05:00 |
|
Adam Gutglick
|
38b4c10833
|
Added the ability to do addition between complex numbers and ints.
|
2019-02-21 19:28:46 -05:00 |
|
Joey
|
df76ffe116
|
Replace most relative imports with 2018-style crate
|
2019-02-20 08:50:53 -08:00 |
|
janczer
|
2a2ddff14e
|
Add complex methods real and imag
|
2019-02-14 16:56:32 +01:00 |
|
Joey Hain
|
520f71f354
|
Add NotImplemented built-in constant
|
2019-02-08 19:24:08 -08:00 |
|
Joey Hain
|
d66ca54a2d
|
Add complex.{__eq__, __neg__}
|
2019-02-08 18:20:58 -08:00 |
|
Joey Hain
|
fc863aaba5
|
Add complex.__abs__
|
2019-02-08 18:20:55 -08:00 |
|
ZapAnton
|
031f062e72
|
complex type: Added __doc__
|
2019-02-08 18:47:23 +03:00 |
|
Nathan
|
12e6de0503
|
repr() of complex numbers is compliant with cpython
|
2019-02-05 20:59:41 -06: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 |
|
Windel Bouwman
|
a6f64eefee
|
Change int __pow__ to use bigint pow.
|
2018-11-03 10:30:17 +01:00 |
|
Windel Bouwman
|
1e3b45ee0d
|
Add complex basic type
|
2018-10-29 21:55:58 +01:00 |
|