Aviv Palivoda
|
a5026eded0
|
Use IntoPyFloat in complex
|
2019-09-14 12:55:22 +03:00 |
|
Aviv Palivoda
|
6a6a10afa1
|
Use IntoPyFloat in math.rs
|
2019-09-14 12:50:58 +03:00 |
|
coolreader18
|
825ee4bc7c
|
Fix tests/clippy
|
2019-08-23 17:52:38 -05:00 |
|
coolreader18
|
b8eba6abe3
|
Add the array module
|
2019-08-23 17:34:52 -05:00 |
|
Windel Bouwman
|
32634b2d53
|
Merge pull request #1080 from JimJeon/feature/round
Feature/round
|
2019-08-15 19:50:52 +02:00 |
|
Windel Bouwman
|
589c431c8c
|
Merge master branch
|
2019-08-15 18:59:29 +02:00 |
|
Marcin Pajkowski
|
e65e9ff7c3
|
Make func_ref an &PyObjectRef
|
2019-08-15 13:45:47 +02:00 |
|
JimJeon
|
befb9a239e
|
Add round feature for objfloat when ndigits is 0
|
2019-08-15 16:16:40 +09:00 |
|
Windel Bouwman
|
d06dec77ea
|
Attempt to reduce the size of the pyobject.rs files by splitting out builtin types.
|
2019-08-14 19:08:47 +02:00 |
|
JimJeon
|
be887526c1
|
Fix implements of round
- Fix implements when ndigits argument of builtin_round is None
- Fix implements when ndigits argument of float_round is 0
|
2019-07-18 11:18:18 +09:00 |
|
coolreader18
|
2c65988ea7
|
Switch to hexf_parse
|
2019-07-11 18:53:47 -05:00 |
|
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 |
|