[issue43297] bz2.open modes behaving differently than standard open() modes

2021-02-23 Thread Philipp Freyer
Philipp Freyer added the comment: I understand and accept that but I would recommend highlighting this difference in the documentation a bit more since this information can be easily skipped when reading the documentation. I still find it important to hint to this stronger since I've

[issue43297] bz2.open modes behaving differently than standard open() modes

2021-02-22 Thread Philipp Freyer
New submission from Philipp Freyer : The documentation clearly states that bz2.open(mode='r') opens a file in binary mode. I would have to use 'rt' for text mode. The basic Python open(mode='r') method opens a file in text mode. This is how I would expect any

[issue40821] os.getlogin() not working

2020-12-16 Thread Philipp Gortan
Change by Philipp Gortan : -- nosy: +mephinet ___ Python tracker <https://bugs.python.org/issue40821> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2020-02-03 Thread Philipp Rehs
Change by Philipp Rehs : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue30256> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue39510] use-after-free in BufferedReader.readinto()

2020-01-31 Thread Philipp Gesang
Change by Philipp Gesang : -- keywords: +patch pull_requests: +17669 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18295 ___ Python tracker <https://bugs.python.org/issu

[issue39510] use-after-free in BufferedReader.readinto()

2020-01-31 Thread Philipp Gesang
New submission from Philipp Gesang : reader = open ("/dev/zero", "rb") _void = reader.read (42) reader.close () reader.readinto (bytearray (42)) ### BANG! Bisected to commit dc469454ec. PR on Github to follow. -- messages: 361119 nosy: phg prior

[issue30256] Adding a SyncManager Queue proxy to a SyncManager dict or Namespace proxy raises an exception

2020-01-30 Thread Philipp Rehs
Philipp Rehs added the comment: Are there any reasons why it does not get merged? This issue is open since more than two years and the fix is quiet small -- nosy: +Philipp Rehs versions: +Python 3.8 ___ Python tracker <https://bugs.python.

[issue25810] Python 3 documentation for eval is incorrect

2019-08-07 Thread Philipp Rauch
Change by Philipp Rauch : -- versions: +Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue25810> ___ ___ Python-bugs-list mailing list Unsub

[issue25810] Python 3 documentation for eval is incorrect

2019-08-07 Thread Philipp Rauch
Change by Philipp Rauch : -- versions: +Python 3.7 ___ Python tracker <https://bugs.python.org/issue25810> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31309] Tkinter root window does not close if used with matplotlib.pyplot

2017-08-30 Thread Philipp
New submission from Philipp: Today I ran into a problem when using both tkinter and matplotlib.pyplot at the same time. I thought it would be best to let you know, in case it is an issue. The problem is/was that the root window did not close itself, when just using `askopenfilename()`. A

[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

[issue23128] Key presses are doubled in Tkinter dialog invoked from window close handler (OS X only)

2014-12-30 Thread Philipp Emanuel Weidmann
Philipp Emanuel Weidmann added the comment: I upgraded to Python 2.7.9 and ActiveTcl 8.5.17.0 as suggested. I confirmed that this is the Tk version actually used by looking at Python's About dialog. The problem persists. -- ___ Python tr

[issue23128] Key presses are doubled in Tkinter dialog invoked from window close handler (OS X only)

2014-12-29 Thread Philipp Emanuel Weidmann
New submission from Philipp Emanuel Weidmann: Minimal code example: from Tkinter import Tk from tkSimpleDialog import askstring def close_handler(): askstring('', '') root.destroy() root = Tk() root.protocol('WM_DELETE_WINDOW', close_handler) root.mainlo

[issue22431] Change format of test runner output

2014-09-17 Thread Philipp Metzler
New submission from Philipp Metzler: Can I change the test runner output format to main.tests.tests.TimeSlotTestCase.test_creation ... ERROR instead of test_creation (main.tests.tests.TimeSlotTestCase) ... ERROR so that I can easily just copy&paste that line and run the test again wit

[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

[issue15504] pickle/cPickle saves invalid/incomplete data

2012-07-30 Thread Philipp Lies
New submission from Philipp Lies: I just stumbled upon a very serious bug in cPickle where cPickle stores the data passed to it only partially without a warning/error: #creating a >8GB long random data sting import os import cPickle random_string = os.urandom(int(1.1*2**33)) print

[issue13555] cPickle MemoryError when loading large file (while pickle works)

2011-12-12 Thread Philipp Lies
Philipp Lies added the comment: a) it's 122GB free RAM (out of 128GB total RAM) b) when I convert the numpy array to a list it works. So seems to be a problem with cPickle and numpy at/from a certain array size c) $ /usr/bin/time -v python test_np.py Traceback (most recent call

[issue13555] cPickle MemoryError when loading large file (while pickle works)

2011-12-08 Thread Philipp Lies
Philipp Lies added the comment: Well, replace cPickle by pickle and it works. So if there is a memory allocation problem cPickle should be able to handle it, especially since it should be completely compatible to pickle. -- ___ Python tracker

[issue2259] Poor support other than 44.1khz, 16bit audio files?

2011-08-25 Thread Philipp Weinfurter
Philipp Weinfurter added the comment: Oops. Misread the code, that part of skip() is fine. Patch removed. Sorry about that. -- ___ Python tracker <http://bugs.python.org/issue2

[issue2259] Poor support other than 44.1khz, 16bit audio files?

2011-08-25 Thread Philipp Weinfurter
Changes by Philipp Weinfurter : Removed file: http://bugs.python.org/file23045/chunk2.patch ___ Python tracker <http://bugs.python.org/issue2259> ___ ___ Python-bug

[issue2259] Poor support other than 44.1khz, 16bit audio files?

2011-08-25 Thread Philipp Weinfurter
Philipp Weinfurter added the comment: >From AIFF-C Draft '91, Section 5, Sound Data Chunk: "If soundData[] contains an odd number of bytes, a pad byte with a value of zero is added at the end to preserve an even length for this Chunk." So I think aifc.patch is wrong. Howeve

[issue12596] cPickle - stored data differ for same dictionary

2011-07-20 Thread Philipp Mölders
Philipp Mölders added the comment: The file on disk matters for a replication service, so if a file is touched but not changed it will not be replicated, but in this special case the data change even when the structures have not changed. So if this happens very often it could cause a lot of

[issue12596] cPickle - stored data differ for same dictionary

2011-07-20 Thread Philipp Mölders
Changes by Philipp Mölders : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue12596> ___ ___ Python-bugs-list mailing list Unsubscri

[issue12596] cPickle - stored data differ for same dictionary

2011-07-20 Thread Philipp Mölders
New submission from Philipp Mölders : I think there is a problem within cPickle. I wanted to store a dictionary with only one entry with cPickle.dump() this works fine and can be loaded with cPickle.load(). But if you store the loaded data with cPickle.dump() again, the stored data differ

[issue5023] Segfault in datetime.time.strftime("%z")

2010-06-01 Thread Philipp Gortan
Philipp Gortan added the comment: Unfortunately, I'm no longer able to reproduce this issue as I upgraded to gcc 4.3 sometime within the last nine months... With 4.3, I don't see this segfault any longer. -- ___ Python trac

[issue5023] Segfault in datetime.time.strftime("%z")

2010-05-31 Thread Philipp Gortan
Philipp Gortan added the comment: @belopolsky: unittest exists, /usr/lib/python2.6/test/test_datetime.py as mentioned by the OP, this unittest reproduces the issue. -- ___ Python tracker <http://bugs.python.org/issue5

[issue5565] Strange behavior when I logout() with IMAP4_SSL

2010-05-03 Thread Philipp Tölke
Philipp Tölke added the comment: The TCP-issues from my post are all resolved. I now know how TCP works; the behaviour of python seems to be correct. About the imap-behaviour: m...@harga ~$ python Python 2.5.5 (r255:77872, Apr 21 2010, 08:40:04) [GCC 4.4.3] on linux2 Type "help",

[issue5565] Strange behavior when I logout() with IMAP4_SSL

2010-05-03 Thread Philipp Tölke
Philipp Tölke added the comment: The TCP-issues from my post are all resolved. I now know how TCP works; the behaviour of python seems to be correct. About the imap-behaviour: m...@harga ~$ python Python 2.5.5 (r255:77872, Apr 21 2010, 08:40:04) [GCC 4.4.3] on linux2 Type "help",

[issue5023] Segfault in datetime.time.strftime("%z")

2009-09-25 Thread Philipp Gortan
Philipp Gortan added the comment: I can reproduce this problem with Gentoo Hardened and gcc version 3.4.6 (Gentoo Hardened 3.4.6-r2 p1.6, ssp-3.4.6-1.0, pie-8.7.10) when gdb-ing through the datetimemodule.c, and displaying the "tuple" variable in time_strftime, I can see that the po

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-08 Thread Philipp
Changes by Philipp : -- nosy: +Phil ___ Python tracker <http://bugs.python.org/issue6393> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[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

[issue5565] Strange behavior when I logout() with IMAP4_SSL

2009-04-02 Thread Philipp Tölke
Philipp Tölke added the comment: Just FYI, this issue is in python2.6, too. Only, that in 2.6 the GC does not collect the objects immediately, so that very soon I have a galore of connections in the CLOSE_WAIT-State. And I checked, I can not read anymore data out of the socket. Is this a bug

[issue5565] Strange behavior when I logout() with IMAP4_SSL

2009-03-26 Thread Philipp Tölke
New submission from Philipp Tölke : While researching some strange logs from out firewall and narrowing it down to a biff-like imap-client written in python we found the following: To reproduce: Start a network-sniffer like wireshark on the loopback-interface In one shell start some network

[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