Nico Schlömer added the comment:
Thanks very much, Steven, for the feedback and the suggestion.
--
___
Python tracker
<https://bugs.python.org/issue43
New submission from Nico Schlömer :
I stumbled upon this when dealing with NumPy arrays:
```
slice(None) is slice(None)
```
```
False
```
This came up when trying to check if a variable `a` equals `slice(None)`. The
comparison
```
a = slice(None)
a == slice(None)
```
```
True
```
works, but
Nico Schlömer added the comment:
I just updated tuna [1] to support import time profiles as well.
Install with
```
pip install tuna
```
and use with
```
python -X importprofile yourfile.py 2> import.log
tuna import.log
```
See screenshot for example output.
Cheers,
Nico
[1] https://github.
Nico Schlömer added the comment:
Okay, thanks for the info.
As a stop-gap measure, I've created pyfma [1, 2]. Install with
```
pip install pyfma
```
and use with
```
pyfma.fma(3.0, 2.0, 1.0)
```
Only works on Unix reliable then, but that's all I care about. :)
Cheers,
Nico
Nico Schlömer added the comment:
> Existing libm implementations don't work,
Okay. Is this because of the inf/NaN discrimination hiccups mentioned above or
are there any other pitfalls?
--
___
Python tracker
<https://bugs.python.org
Nico Schlömer added the comment:
Do I read this thread correctly assuming that this hasn't been implemented yet?
If not, I would probably make my own little library for this -- I really need
the feature for the precision.
--
nosy: +ns