diff options
| author | Mark Dickinson <dickinsm@gmail.com> | 2010-03-07 16:24:45 (GMT) |
|---|---|---|
| committer | Mark Dickinson <dickinsm@gmail.com> | 2010-03-07 16:24:45 (GMT) |
| commit | 154b7ad07e775f15a0a556c7ec3ae5ab5762ae1e (patch) | |
| tree | 8102aad436b0b60b7e1a98a376a1257546019898 /Lib/test/bad_coding.py | |
| parent | c083864fc8a03a045dfc0200e8456996395ad4dc (diff) | |
| download | cpython-154b7ad07e775f15a0a556c7ec3ae5ab5762ae1e.zip cpython-154b7ad07e775f15a0a556c7ec3ae5ab5762ae1e.tar.gz cpython-154b7ad07e775f15a0a556c7ec3ae5ab5762ae1e.tar.bz2 | |
Issue #1530559: When packing a non-integer with any integer conversion
code using struct.pack, attempt to convert to an integer first using
the argument's __int__ method (if present). Also raise a
DeprecationWarning for any such usage of __int__.
This fixes a regression from 2.6, where some (but not all) integer
conversion codes already used __int__.
Diffstat (limited to 'Lib/test/bad_coding.py')
0 files changed, 0 insertions, 0 deletions
