Maxim Kurnikov
|
347d48198e
|
fix remaining clippy warnings
|
2019-07-07 06:27:07 +03:00 |
|
silmeth
|
d0de3be2a9
|
fix float–int cross-type comparisons
Fixes #1069
|
2019-06-29 16:50:09 +02:00 |
|
Maxim Kurnikov
|
8a5182a8a1
|
make get_method_or_type_error() error message lazy
|
2019-06-07 16:08:37 +03:00 |
|
Maxim Kurnikov
|
3bfd66bb89
|
make some exception messages more compatible with CPython, split get_method() into two methods and make raising TypeError more explicit for get_method() errors
|
2019-06-03 19:46:32 +03:00 |
|
Maxim Kurnikov
|
bc35a64e54
|
fix most of clippy warnings
|
2019-06-01 03:19:22 +03:00 |
|
coolreader18
|
9888d27e61
|
Merge pull request #981 from youknowone/frexp
Add math.frexp
|
2019-05-16 21:37:34 -05:00 |
|
Jeong YunWon
|
ca912a168d
|
Add float.to_hex
|
2019-05-17 03:24:31 +09:00 |
|
Jeong YunWon
|
ceca2ed98e
|
Add float.fromhex
|
2019-05-17 02:35:39 +09:00 |
|
Jeong YunWon
|
d223af645b
|
Add math.frexp
|
2019-05-17 01:12:43 +09:00 |
|
Jeong YunWon
|
2c77dc208f
|
Add float.__hash__
|
2019-05-13 01:09:51 +09:00 |
|
Windel Bouwman
|
7ae533f860
|
Merge pull request #911 from sapir/fix-clippy-float-error
Fix clippy error about float comparison
|
2019-05-06 18:12:25 +02:00 |
|
Jeong YunWon
|
6b495eac1e
|
str(1.0) == '1.0'
|
2019-05-06 02:14:28 +09:00 |
|
Y. Sapir
|
1a5bddc41b
|
Fix clippy error about float comparison
|
2019-05-04 23:32:49 +03:00 |
|
Jeong YunWon
|
9a7fadcb6c
|
Refactor PyComplex using try_complex
|
2019-05-04 00:59:19 +09:00 |
|
Windel Bouwman
|
e578dcfc46
|
Merge pull request #899 from youknowone/float-complex
Add numbers.Complex impl to float + extend_class
|
2019-05-03 17:22:12 +02:00 |
|
coolreader18
|
fa148a4aed
|
Merge branch 'master' into float-round
|
2019-05-01 20:06:52 -05:00 |
|
Jeong YunWon
|
4a598d03e2
|
Add float.imag, float.conjugate
|
2019-05-01 21:31:02 +09:00 |
|
Jeong YunWon
|
bb878a3402
|
PyFloat to use extend_class for __new__ and __doc__
|
2019-05-01 21:31:02 +09:00 |
|
Jeong YunWon
|
1c814ff2b5
|
Add float.__rpow__
|
2019-05-01 04:02:34 +09:00 |
|
Jeong YunWon
|
09710b5222
|
Add float.__rdivmod__ and div/mod tests
|
2019-05-01 03:40:28 +09:00 |
|
Jeong YunWon
|
813307f8f9
|
Refactor PyFloat using try_float()
|
2019-05-01 01:22:56 +09:00 |
|
Jeong YunWon
|
a0ad4368c6
|
Add float.pow OverflowError handling
|
2019-05-01 01:22:52 +09:00 |
|
Jeong YunWon
|
a318e4e09e
|
objfloat.rs try_float for common operand handling
|
2019-05-01 01:21:14 +09:00 |
|
Jeong YunWon
|
c951cb3cfd
|
float.__round__ for ndigits == 0
|
2019-04-30 06:09:48 +09:00 |
|
Jeong YunWon
|
b7c7591639
|
Fix float.__trunc__ to handle abnormal values
|
2019-04-30 03:30:35 +09:00 |
|
Jeong YunWon
|
4c8f655d4e
|
float.__round__ inf/nan support
|
2019-04-30 03:30:30 +09:00 |
|
Jeong YunWon
|
68e15a2bd8
|
Add basic float.__round__ without ndigits support
|
2019-04-30 03:11:31 +09:00 |
|
Jeong YunWon
|
20b2f64cef
|
Add float.__rmod__
|
2019-04-28 22:46:21 +09:00 |
|
Jeong YunWon
|
304cea89b8
|
objint::get_float_value
|
2019-04-28 20:31:07 +09:00 |
|
Jeong YunWon
|
4810a55c82
|
Add float.__trunc__
|
2019-04-28 12:44:25 +09:00 |
|
Jeong YunWon
|
9dda776e25
|
Add float.__int__ / float.__float__
|
2019-04-28 12:41:59 +09:00 |
|
Jeong YunWon
|
7fb98c91d2
|
PyFloat uses #[pyclass] #[pyimpl] #[pymethod]
|
2019-04-28 05:47:29 +09:00 |
|
Adam
|
90ded15339
|
Merge pull request #799 from RustPython/joey/ref-receiver
Allow first argument to be a shared ref to a python value
|
2019-04-07 10:02:03 +01:00 |
|
Joey Hain
|
c2716040d2
|
float: take self by shared ref
|
2019-04-06 19:05:18 -07:00 |
|
Joey Hain
|
be55562457
|
Allow first argument to be a shared ref to a python value
|
2019-04-06 18:50:40 -07:00 |
|
Joey Hain
|
98889d5339
|
match_class! macro
|
2019-04-01 20:09:45 -07:00 |
|
Joey Hain
|
8bdc766bed
|
Use name field directly
|
2019-03-25 19:32:58 -07:00 |
|
Joey Hain
|
6474a4a6ef
|
Remove objtype::get_type_name()
|
2019-03-25 19:18:07 -07:00 |
|
Joey Hain
|
cc4f3fdb40
|
Clean up TypeProtocol
|
2019-03-25 19:18:01 -07:00 |
|
ben
|
6fa059fd6c
|
Make PyObject.typ a PyClassRef
|
2019-03-24 10:51:52 +13:00 |
|
Adam Kelly
|
9ebbde8126
|
Replace special cases in boolval with __bool__ method on types.
|
2019-03-23 09:31:42 +00: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 |
|
Windel Bouwman
|
68ba050030
|
Use the extend class macro more.
|
2019-03-22 20:45:34 +01:00 |
|
coolreader18
|
a9051ab462
|
Convert all &mut VirtualMachine to &VirtualMachine
|
2019-03-22 01:48:14 -05: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 |
|
Adrian Wielgosik
|
e3a5ac1378
|
Make objint::get_value return a reference
|
2019-03-11 23:07:56 +01: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 |
|