Message274205
| Author |
Jonatan Skogsfors |
| Recipients |
Jonatan Skogsfors |
| Date |
2016年09月02日.06:52:55 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1472799175.75.0.400083322493.issue27936@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Theo error handling for round is different for float and int.
Python 3.5.1 (default, Apr 18 2016, 11:46:32)
[GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> round(1.0, None)
1
>>> round(1, None)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'NoneType' object cannot be interpreted as an integer |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年09月02日 06:52:55 | Jonatan Skogsfors | set | recipients:
+ Jonatan Skogsfors |
| 2016年09月02日 06:52:55 | Jonatan Skogsfors | set | messageid: <1472799175.75.0.400083322493.issue27936@psf.upfronthosting.co.za> |
| 2016年09月02日 06:52:55 | Jonatan Skogsfors | link | issue27936 messages |
| 2016年09月02日 06:52:55 | Jonatan Skogsfors | create |
|