Commit Graph

15 Commits

Author SHA1 Message Date
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