Changes by Jon Foster :
--
nosy: +jongfoster
___
Python tracker
<http://bugs.python.org/issue16531>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
<http://bugs.python.org/issu
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 wr
Jon Foster 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.
The off
New submission from Jon Foster :
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
the code.
(Also, I