[issue5104] getsockaddrarg() casts port number from int to short without any warning

2009-01-29 Thread Roman Zeyde
New submission from Roman Zeyde : The following code shouldn't fail without any warning at all: >>> import socket >>> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) >>> s.bind(('localhost', 7)) >>> print(s.getsockname()) ('127.

[issue5104] getsockaddrarg() casts port number from int to short without any warning

2009-01-29 Thread Roman Zeyde
Changes by Roman Zeyde : -- components: +Extension Modules -None ___ Python tracker <http://bugs.python.org/issue5104> ___ ___ Python-bugs-list mailing list Unsub

[issue5104] getsockaddrarg() casts port number from int to short without any warning

2009-01-29 Thread Roman Zeyde
Changes by Roman Zeyde : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue5104> ___ ___ Python-bugs-list mailing list Unsubscri

[issue5104] getsockaddrarg() casts port number from int to short without any warning

2009-02-14 Thread Roman Zeyde
Roman Zeyde added the comment: I've checked Python 3.0.1 today (at http://svn.python.org/projects/python/tags/r301/Modules/socketmodule.c) and it seems that the bug above has been fixed there too. ___ Python tracker <http://bugs.python.org/i

[issue18169] struct.pack() behaves strangely for 'L' on 64bit Linux

2013-06-08 Thread Roman Zeyde
New submission from Roman Zeyde: Reproduction: Python 2.7.4 (default, Apr 19 2013, 18:28:01) [GCC 4.7.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import struct >>> struct.pack('!L&#x

[issue18169] struct.pack() behaves strangely for 'L' on 64bit Linux

2013-06-08 Thread Roman Zeyde
Roman Zeyde added the comment: You are correct - the documentation is right: "Format characters have the following meaning; the conversion between C and Python values should be obvious given their types. The ‘Standard size’ column refers to the size of the packed value in bytes when

[issue18169] struct.pack() behaves strangely for 'L' on 64bit Linux

2013-06-08 Thread Roman Zeyde
Changes by Roman Zeyde : -- resolution: -> works for me status: open -> closed ___ Python tracker <http://bugs.python.org/issue18169> ___ ___ Python-bugs-