Filip Gruszczyński grusz...@gmail.com added the comment:
Here is a test and a patch.
--
keywords: +patch
nosy: +gruszczy
Added file: http://bugs.python.org/file21426/9696.patch
___
Python tracker rep...@bugs.python.org
Mark Dickinson dicki...@gmail.com added the comment:
Patch looks good to me. Thanks!
--
assignee: - mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9696
___
Roundup Robot devnull@devnull added the comment:
New changeset d3f9a6d7f6e4 by Mark Dickinson in branch '2.7':
Issue #9696: Fix exception incorrectly raised by xdrlib.Packer.pack_int when
trying to pack a negative (in-range) integer.
http://hg.python.org/cpython/rev/d3f9a6d7f6e4
--
Filip Gruszczyński grusz...@gmail.com added the comment:
I believe this should be applied also against 3.3. I was working on this using
3.3 code base, so it is not working there too.
--
___
Python tracker rep...@bugs.python.org
Mark Dickinson dicki...@gmail.com added the comment:
Patience! I'm getting there...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9696
___
___
Filip Gruszczyński grusz...@gmail.com added the comment:
I'm sorry, I wasn't hurrying you. Just wanted to make sure you know.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9696
___
Roundup Robot devnull@devnull added the comment:
New changeset bd5e821f201c by Mark Dickinson in branch '3.1':
Issue #9696: Fix exception incorrectly raised by xdrlib.Packer.pack_int when
trying to pack a negative (in-range) integer.
http://hg.python.org/cpython/rev/bd5e821f201c
New changeset
Mark Dickinson dicki...@gmail.com added the comment:
I'm sorry, I wasn't hurrying you. Just wanted to make sure you know.
No problem :-). Thanks for the fix!
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
versions: +Python 3.3
Changes by Mark Dickinson dicki...@gmail.com:
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9696
___
___
Python-bugs-list
New submission from David Powell powellip...@gmail.com:
The problem is easy to reproduce:
import xdrlib
p = xdrlib.Packer()
p.pack_int(-1)
__main__:1: DeprecationWarning: struct integer overflow masking is deprecated
The cause is xdrlib.Packer uses the same pack operation for both
signed
Éric Araujo mer...@netwok.org added the comment:
Thanks for the report. This actually raises an error with current Pythons:
2.7 traceback: File xdrlib.py, line 54, in pack_uint
self.__buf.write(struct.pack('L', x))
struct.error: integer out of range for 'L' format code
(The 3.x error
11 matches
Mail list logo