[issue26657] Directory traversal with http.server and SimpleHTTPServer on windows

2016-03-28 Thread Philipp Hagemeister
Philipp Hagemeister added the comment: Update testcase, and call split before splitdrive -- Added file: http://bugs.python.org/file42319/fix-path-traversal-26657.patch ___ Python tracker <http://bugs.python.org/issue26

[issue26657] Directory traversal with http.server and SimpleHTTPServer on windows

2016-03-28 Thread Philipp Hagemeister
Philipp Hagemeister added the comment: Please find attached a patch which adds a testcase for Windows (on all platforms) as well as code to fix the problem. Since os.path.split returns everything after the final slash/backslash, it only needs to be called once. Note that the usage of

[issue16465] dict creation performance regression

2012-11-13 Thread Philipp Hagemeister
New submission from Philipp Hagemeister: On my system, {} has become significantly slower in 3.3: $ python3.2 -m timeit -n 100 '{}' 100 loops, best of 3: 0.0314 usec per loop $ python3.3 -m timeit -n 100 '{}' 100 loops, best of 3: 0.0892 usec per loop $ h

[issue15538] Avoid nonstandard s6_addr8

2012-08-02 Thread Philipp Hagemeister
Changes by Philipp Hagemeister : -- keywords: +patch Added file: http://bugs.python.org/file26664/issue15538.patch ___ Python tracker <http://bugs.python.org/issue15

[issue15538] Avoid nonstandard s6_addr8

2012-08-02 Thread Philipp Hagemeister
New submission from Philipp Hagemeister: The s6_addr8 field of in6_addr structs is nonstandard, and therefore not supported on all platforms (android in my example). cpython's socket module should use the standard s6_addr field instead. -- components: IO hgrepos: 144 messages: 1

[issue6098] xml.dom.minidom incorrectly claims DOM Level 3 conformance

2009-05-24 Thread Philipp Hagemeister
New submission from Philipp Hagemeister : >From DOM Level 3[1]: "An implementation conforms to a DOM Level 3 module if it supports all the interfaces for that module and the associated semantics.". minidom supports only some Level 3 functions such as Node.renameNode, Element.s

[issue6025] documentation of xml.dom.minidom.parse signature is wrong

2009-05-16 Thread Philipp Hagemeister
Philipp Hagemeister added the comment: The patch has been applied to trunk, but not branches/py3k. Sorry for that, I should really get into the habit of providing patches for both branches. -- status: closed -> open ___ Python tracker &l

[issue6036] Clean up test_posixpath.py

2009-05-16 Thread Philipp Hagemeister
Changes by Philipp Hagemeister : -- title: test_posixpath.py -> Clean up test_posixpath.py ___ Python tracker <http://bugs.python.org/issue6036> ___ ___ Python-

[issue6036] test_posixpath.py

2009-05-16 Thread Philipp Hagemeister
New submission from Philipp Hagemeister : At line 300 (version 72674) there is the following interesting construction: if hasattr(os, "symlink"): if hasattr(os, "symlink"): (...) (...) hasattr is idempotent. Additionally, test_posixpath.py is missing

[issue6025] documentation of xml.dom.minidom.parse signature is wrong

2009-05-14 Thread Philipp Hagemeister
New submission from Philipp Hagemeister : In the documentation, the signature is given as parse(filename_or_file, parser), although the next paragraph reads "(...) *parser*, if given, (...)". The latter is correct, and there is a new bufsize parameter, too. -- assignee: ge

[issue5917] Reference platform-independent alternative in socket.inet_ntop documentation

2009-05-03 Thread Philipp Hagemeister
New submission from Philipp Hagemeister : socket.inet_ntop is only available on some UNIX platforms, although for example Windows users may want to use it. The new ipaddr module provides a platform-independent conversion to the packed format on all platforms and should therefore be used in

[issue5916] Wrong function referenced in documentation of socket.inet_aton

2009-05-03 Thread Philipp Hagemeister
New submission from Philipp Hagemeister : >From the documentation of socket.inet_aton (and socket.inet_ntoa): "inet_aton() does not support IPv6, and getnameinfo() should be used instead for IPv4/v6 dual stack support." socket.getnameinfo can not replace inet_aton/inet_ntoa at

[issue5379] Multicast example mcast.py is outdated and ugly

2009-05-03 Thread Philipp Hagemeister
Changes by Philipp Hagemeister : Removed file: http://bugs.python.org/file13198/mcast-example.diff ___ Python tracker <http://bugs.python.org/issue5379> ___ ___ Python-bug

[issue5379] Multicast example mcast.py is outdated and ugly

2009-05-03 Thread Philipp Hagemeister
Philipp Hagemeister added the comment: Updated patch to use the new ipaddr module instead of the platform-specific socket.inet_pton (unavailable on some platforms, including Windows XP) Updated formatting -- Added file: http://bugs.python.org/file13851/mcast-example.diff

[issue5424] Packed IPaddr conversion tests should be extended

2009-03-05 Thread Philipp Hagemeister
New submission from Philipp Hagemeister : Currently, the testStringToIPv6 and testIPv6ToStrings tests in Lib/test/test_socket.py only check for variants 1 and 2 (but not 3) from RFC 4291 2.2. Furthermore, there are no assertions that check wrong inputs are appropriately refused in any of the

[issue5379] Multicast example mcast.py is outdated and ugly

2009-02-26 Thread Philipp Hagemeister
New submission from Philipp Hagemeister : The multicast example Demo/sockets/mcast.py 1. mentions that multicast is only implemented on SGI (and optional on other systems). That is not the case anymore. 2. Includes completely unrelated code for broadcast transmission. There is already an example