Commit Graph

27 Commits

Author SHA1 Message Date
ZapAnton
2d7164df92 float type: Added __doc__ 2019-02-06 14:44:30 +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
Windel Bouwman
8eacbcbc06 Add builtins to sys.modules. Add __float__ method to int class. 2018-11-26 22:31:40 +01:00
Windel Bouwman
bddaf3e77e Implement while-else and for-else. Call __neg__ and __invert__ methods on unary operation. 2018-10-31 21:50:00 +01:00
Windel Bouwman
f6cced5d65 Change integer type into bigint 2018-10-30 21:01:31 +01:00
Windel Bouwman
1e3b45ee0d Add complex basic type 2018-10-29 21:55:58 +01:00
Bojan
59417ea451 Added __ge__ to float 2018-10-28 00:36:51 +02:00
Bojan
ec006ae6b9 Added __gt__ to float 2018-10-27 22:45:22 +02:00
Windel Bouwman
57dbfd16af Merge pull request #177 from BojanKogoj/bojan/objfloat-__lt__
Added __lt__ for float
2018-10-27 22:23:06 +02:00
Bojan
6df02536c8 Removed unused line 2018-10-27 21:03:40 +02:00
Windel Bouwman
1d854a8fbb Modify isinstance call signature to take reference to a python reference. 2018-10-27 17:58:54 +02:00
Bojan
3077d7b22c Merge branch 'master' into bojan/objfloat-__lt__ 2018-10-27 15:57:00 +02:00
Bojan
89e03d0436 Added __le__ for float 2018-10-27 15:13:03 +02:00
Bojan
4bb412a9ab Added __lt__ for float 2018-10-27 13:14:35 +02:00
rmliddle
1e1e9d2669 divmod builtin 2018-09-13 08:00:52 +10:00
rmliddle
77772abedf div_mod attribute on float and int 2018-09-12 22:56:57 +10:00
rmliddle
256d518c4a floordiv, float mod 2018-09-11 21:56:08 +10:00
rmliddle
43489bed4c added abs builtin, __abs__ attributes on float and int objects 2018-09-10 23:01:07 +10:00
Windel Bouwman
1a2a4adcef Lets delete some clones 2018-09-02 19:41:37 +02:00
Adam Kelly
c8d8528bff object.__str__ delegates to __repr__. 2018-09-02 12:09:57 +01:00
Adam Kelly
28f8cdbda9 Define __eq__ for basic types. 2018-09-01 17:09:20 +01:00
Windel Bouwman
8ed132cadb Fix issue #112 2018-08-31 21:10:49 +02:00
Windel Bouwman
b2ab49376a Change get_value to take a reference to a reference 2018-08-31 20:49:52 +02:00
Windel Bouwman
f453c749ec Move builtin types to own directory 2018-08-31 20:31:25 +02:00