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 |
|
Adrian Wielgosik
|
10531191bb
|
Convert most tuple/list methods to new args style
|
2019-03-08 20:43:20 +01:00 |
|
Adrian Wielgosik
|
1601da0692
|
Migrate PyFloat to new method style
|
2019-03-07 19:47:16 +01:00 |
|
Windel Bouwman
|
d7f8961a12
|
Simplify some PyFuncArgs occurences.
|
2019-03-06 22:30:11 +01:00 |
|
Adrian Wielgosik
|
eed0b3ca45
|
Add float.as_integer_ratio()
|
2019-03-04 20:52:56 +01:00 |
|
Joey Hain
|
e7fb116210
|
Convert more objects to Any payload
|
2019-03-02 13:27:00 -08:00 |
|
Windel Bouwman
|
30ddb48037
|
Use PyResult at more places.
|
2019-03-02 14:10:46 +01:00 |
|
coolreader18
|
58e1533b12
|
Fix clippy lint for float_is_integer
|
2019-03-01 20:12:54 -06:00 |
|
Joey Hain
|
d3646925ea
|
Fix float()
|
2019-02-25 21:57:37 -08:00 |
|
Joey Hain
|
f10fa6db44
|
Remove outer RefCell from PyObjectRef
|
2019-02-25 21:01:37 -08:00 |
|
Adam Gutglick
|
f4e6e5dec8
|
Addred real property and is_integer function to float.
|
2019-02-24 04:02:24 +02:00 |
|
Joey
|
df76ffe116
|
Replace most relative imports with 2018-style crate
|
2019-02-20 08:50:53 -08:00 |
|
Joey Hain
|
c6ac393f84
|
Add {int,float}.{__radd__,__rsub__,__rmul__,__rtruediv__}
|
2019-02-14 21:21:30 -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
|
9277e67b15
|
Add not_implemented to float.{__le__, __gt__, __ge__}
|
2019-02-12 18:32:26 +01:00 |
|
janczer
|
0887b55da8
|
Add object.{__lt__, __le__, __gt__, __gt__}
|
2019-02-12 15:32:07 +01:00 |
|
Joey Hain
|
38c0ea06e5
|
Support float(<str>) and float(<bytes>)
|
2019-02-11 19:40:55 -08:00 |
|
Joey Hain
|
dab4f7385f
|
Use NotImplemented in binary operations
|
2019-02-10 09:19:06 -08:00 |
|
Windel Bouwman
|
05cd60bebc
|
Merge pull request #415 from silmeth/fix-int-eq-float
fix int – float equality for big ints, inf and nan
|
2019-02-10 13:55:50 +01:00 |
|
janczer
|
454837f64b
|
Fix fmt in objfloat
|
2019-02-09 19:16:04 +01:00 |
|
janczer
|
8d1d6ce1ee
|
float.{__lt__, __le__, __ge__, __gt__} fix comparing with non float type
|
2019-02-09 17:05:32 +01:00 |
|
silmeth
|
6c56c22f0f
|
fix floordiv and divmod by zero for ints and floats
|
2019-02-09 15:15:54 +01:00 |
|
silmeth
|
d960ca3d5b
|
fix int – float equality for big ints, inf and nan
|
2019-02-09 14:02:43 +01:00 |
|
janczer
|
ba19732fbb
|
Fix the fmt error
|
2019-02-08 22:09:42 +01:00 |
|
janczer
|
59706538f4
|
Fix typo and fix fmt errors
|
2019-02-08 21:56:07 +01:00 |
|
janczer
|
d4b82007df
|
Add floats.{__truediv__, __mul__}
|
2019-02-08 20:34:33 +01:00 |
|
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 |
|