Message390789
Wouldn't the next thing you do be to convert it to a float, so you'd call float() twice? I think you'd be better off just catching the exception yourself, and using the result of float().
I'm opposed to such a simple function being a member of str or in the stdlib. In all of my years using Python with plenty of floats, I've never needed this function.
The usual suggestion with such short functions it to just add them to your own utility library. |
|
Date |
User |
Action |
Args |
2021-04-11 17:24:55 | eric.smith | set | recipients:
+ eric.smith, JimmyCarlos |
2021-04-11 17:24:54 | eric.smith | set | messageid: <1618161894.97.0.570422067374.issue43808@roundup.psfhosted.org> |
2021-04-11 17:24:54 | eric.smith | link | issue43808 messages |
2021-04-11 17:24:54 | eric.smith | create | |
|