[Python-Dev] struct module and coercing floats to integers

2006-07-28 Thread Bob Ippolito
It seems that the pre-2.5 struct module has some additional undocumented behavior[1] that didn't percolate into the new version: http://python.org/sf/1530559 Python 2.4 and previous will coerce floats to integers when necessary as such without any kind of complaint: $ python2.4 -c "import s

Re: [Python-Dev] struct module and coercing floats to integers

2006-07-28 Thread Michael Urman
On 7/28/06, Bob Ippolito <[EMAIL PROTECTED]> wrote: > http://python.org/sf/1530559 > > [1] The pre-2.5 behavior should really be considered a bug, the > documentation says "Return a string containing the values v1, v2, ... > packed according to the given format. The arguments must match the > value

Re: [Python-Dev] struct module and coercing floats to integers

2006-08-02 Thread Bob Ippolito
On Jul 28, 2006, at 1:35 PM, Bob Ippolito wrote: > It seems that the pre-2.5 struct module has some additional > undocumented behavior[1] that didn't percolate into the new version: > http://python.org/sf/1530559 > > Python 2.4 and previous will coerce floats to integers when necessary > as such