[issue16531] Allow IPNetwork to take a tuple

2013-09-01 Thread Jon Foster
Changes by Jon Foster jongfos...@users.sourceforge.net: -- nosy: +jongfoster ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16531 ___ ___ Python

[issue18802] ipaddress documentation errors

2013-08-21 Thread Jon Foster
New submission from Jon Foster: I recently looked at using the ipaddress module in a project, and noticed some discrepencies between the code and the documentation, and some things that weren't documented. A patch to fix these is attached. * The IPv4Network.__init__ documentation wrongly

[issue18802] ipaddress documentation errors

2013-08-21 Thread Jon Foster
Jon Foster added the comment: (If this is accepted, please consider it for backport to 3.3 too. It is just a documentation improvement). -- type: - enhancement versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue18805] ipaddress netmask/hostmask parsing bugs

2013-08-21 Thread Jon Foster
New submission from Jon Foster: Short version: Validation of netmasks and hostmasks in IPv4Network is wrong: it rejects many valid netmasks, it accepts many invalid netmasks and hostmasks, and it sometimes throws the wrong exception. Patch attached. Long version: Wrongly rejecting hostmasks

[issue6906] Tkinter sets an unicode environment variable on win32

2010-02-01 Thread Jon Foster
Jon Foster jon.fos...@cabot.co.uk added the comment: This bug also breaks code that uses the subprocess module, e.g.: env = os.environ.copy() env['MY_VARIABLE'] = 'MY_VAL' subprocess.Popen(... , env=env) Fails on Windows 7 with an error that the environment can only contain strings

[issue6930] [PATCH] PyUnicode_DecodeUTF16 docs wrong (byteorder param)

2009-09-17 Thread Jon Foster
New submission from Jon Foster jon.fos...@cabot.co.uk: The documentation for the C API function PyUnicode_DecodeUTF16() does not match the code. If *byteorder is 1 or -1, the documentation says that the function looks for a BOM. It doesn't. This patch updates the documentation to match