Message207835
| Author |
ethan.furman |
| Recipients |
Arfrever, eric.smith, ethan.furman, gvanrossum, larry, mark.dickinson, pitrou, python-dev, r.david.murray, rhettinger, serhiy.storchaka, skrah, terry.reedy, vstinner |
| Date |
2014年01月10日.04:40:47 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1389328848.1.0.683968413699.issue19995@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Could somebody explain this?
===============================================================================
ethan@media:~/source/python/issue19995_depr$ ./python -W error
Python 3.4.0b1 (default:2f81f0e331f6+, Jan 9 2014, 20:30:18)
[GCC 4.7.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> '%x' % 3.14
oxX
no __index__
depracation is fatal
oxX
no __index__
depracation is fatal
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
DeprecationWarning: automatic int conversions have been deprecated
>>>
===============================================================================
ethan@media:~/source/python/issue19995_depr$ ./python -W message
Invalid -W option ignored: invalid action: 'message'
Python 3.4.0b1 (default:2f81f0e331f6+, Jan 9 2014, 20:30:18)
[GCC 4.7.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> '%x' % 3.14
oxX
no __index__
depracation not fatal, attempting __int__ conversion
conversion with __int__ successful
'3'
>>>
===============================================================================
ethan@media:~/source/python/issue19995_depr$ ./python -W once
Python 3.4.0b1 (default:2f81f0e331f6+, Jan 9 2014, 20:30:18)
[GCC 4.7.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> '%x' % 3.14
oxX
no __index__
sys:1: DeprecationWarning: automatic int conversions have been deprecated
depracation not fatal, attempting __int__ conversion
conversion with __int__ successful
'3'
>>>
===============================================================================
As you can see, with the -W error option it seems to go through the routine twice; does that mean the the '1' in 'line 1' is being specified as a float? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年01月10日 04:40:48 | ethan.furman | set | recipients:
+ ethan.furman, gvanrossum, rhettinger, terry.reedy, mark.dickinson, pitrou, vstinner, larry, eric.smith, Arfrever, r.david.murray, skrah, python-dev, serhiy.storchaka |
| 2014年01月10日 04:40:48 | ethan.furman | set | messageid: <1389328848.1.0.683968413699.issue19995@psf.upfronthosting.co.za> |
| 2014年01月10日 04:40:48 | ethan.furman | link | issue19995 messages |
| 2014年01月10日 04:40:47 | ethan.furman | create |
|