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
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
Change by Philipp Gortan :
--
nosy: +mephinet
___
Python tracker
<https://bugs.python.org/issue40821>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Philipp Rehs :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue30256>
___
___
Python-bugs-list mailing list
Unsubscrib
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
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
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.
Change by Philipp Rauch :
--
versions: +Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.org/issue25810>
___
___
Python-bugs-list mailing list
Unsub
Change by Philipp Rauch :
--
versions: +Python 3.7
___
Python tracker
<https://bugs.python.org/issue25810>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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
Changes by Philipp Hagemeister :
--
keywords: +patch
Added file: http://bugs.python.org/file26664/issue15538.patch
___
Python tracker
<http://bugs.python.org/issue15
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
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
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
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
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
Changes by Philipp Weinfurter :
Removed file: http://bugs.python.org/file23045/chunk2.patch
___
Python tracker
<http://bugs.python.org/issue2259>
___
___
Python-bug
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
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
Changes by Philipp Mölders :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue12596>
___
___
Python-bugs-list mailing list
Unsubscri
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
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
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
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",
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",
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
Changes by Philipp :
--
nosy: +Phil
___
Python tracker
<http://bugs.python.org/issue6393>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
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
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
Changes by Philipp Hagemeister :
--
title: test_posixpath.py -> Clean up test_posixpath.py
___
Python tracker
<http://bugs.python.org/issue6036>
___
___
Python-
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
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
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
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
Changes by Philipp Hagemeister :
Removed file: http://bugs.python.org/file13198/mcast-example.diff
___
Python tracker
<http://bugs.python.org/issue5379>
___
___
Python-bug
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
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
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
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
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
46 matches
Mail list logo