This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2008年03月17日 18:16 by brett.cannon, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (5) | |||
|---|---|---|---|
| msg63704 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2008年03月17日 18:16 | |
Using a float where an int should only be used (e.g., ``[].insert(.5, 0)``) should raise a Py3K warning. |
|||
| msg64345 - (view) | Author: Benjamin Peterson (benjamin.peterson) * (Python committer) | Date: 2008年03月22日 23:12 | |
This is already implemented: >>> [].insert(.5, 0) __main__:1: DeprecationWarning: integer argument expected, got float |
|||
| msg64348 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2008年03月22日 23:34 | |
Is there any other place where this might be an issue? That's the real question; are all reasonable cases covered. |
|||
| msg64350 - (view) | Author: Benjamin Peterson (benjamin.peterson) * (Python committer) | Date: 2008年03月22日 23:43 | |
I think so. The warning is implemented in getargs.c, so any conversion from a float to int will result in a warning. |
|||
| msg65954 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2008年04月29日 02:18 | |
Closing as out of date since it seems to have already been handled. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:31 | admin | set | github: 46596 |
| 2008年04月29日 02:18:48 | brett.cannon | set | status: open -> closed resolution: out of date messages: + msg65954 |
| 2008年03月23日 02:41:56 | brett.cannon | set | assignee: brett.cannon |
| 2008年03月22日 23:44:32 | benjamin.peterson | set | type: behavior |
| 2008年03月22日 23:43:48 | benjamin.peterson | set | messages: + msg64350 |
| 2008年03月22日 23:34:00 | brett.cannon | set | messages: + msg64348 |
| 2008年03月22日 23:12:26 | benjamin.peterson | set | nosy:
+ benjamin.peterson messages: + msg64345 |
| 2008年03月17日 20:11:48 | brett.cannon | set | priority: release blocker -> critical |
| 2008年03月17日 18:16:17 | brett.cannon | create | |