A correction to my reply: int('1234567890' * 100) will not raise an overflow
error, multiplying 1.0 with it raises the error. str.isfloat would still flag
the string as an int and then it is upto the application code to deal with the
overflow error.
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/EMO7BBX4VENOUTL62OQVF2A72R6TYCUR/
Code of Conduct: http://python.org/psf/codeofconduct/
- [Python-ideas] Re: String method to check for a float Dennis Sweeney
- [Python-ideas] Re: String method to check for a float Debashish Palit
- [Python-ideas] Re: String method to check for a f... Chris Angelico
- [Python-ideas] Re: String method to check for... Debashish Palit
- [Python-ideas] Re: String method to check for a f... Steven D'Aprano
- [Python-ideas] Re: String method to check for... Debashish Palit
- [Python-ideas] Re: String method to check... Debashish Palit
- [Python-ideas] Re: String method to check... Steven D'Aprano
- [Python-ideas] Re: String method to check for a float Steven D'Aprano
- [Python-ideas] Re: String method to check for a float Debashish Palit
- [Python-ideas] Re: String method to check for a f... Debashish Palit
- [Python-ideas] Re: String method to check for a f... Steven D'Aprano
- [Python-ideas] Re: String method to check for... Debashish Palit
- [Python-ideas] Re: String method to check... Steven D'Aprano
- [Python-ideas] Re: String method to ... Debashish Palit
- [Python-ideas] Re: String method... Chris Angelico
- [Python-ideas] Re: String method... Debashish Palit
- [Python-ideas] Re: String method... Steven D'Aprano
- [Python-ideas] Re: String method... Debashish Palit
- [Python-ideas] Re: String method... Jeremiah Paige
