Martin v. Löwis mar...@v.loewis.de added the comment:
What's the point of disallowing the replace error handler? That's a slightly
incompatible change, isn't it?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12263
Senthil Kumaran sent...@uthcode.com added the comment:
I forgot completely, but in Python3, Issue5418 had already added
support to addinfourl. It is now possible to write code like
import urllib.request
with urllib.request.urlopen('http://www.python.org') as req:
res = req.read()
But
STINNER Victor victor.stin...@haypocalc.com added the comment:
Oh, I forgot to give a little bit more details.
b'abc\xff-'.decode('punycode', 'ignore') and b'abc\xff-'.decode('punycode',
'replace') raise a UnicodeDecodeError: the error handler is just useless
(ignored) here.
With my patch,
Charles-François Natali neolo...@free.fr added the comment:
The obvious solution is to use a recursive lock instead.
Note that it's not really a solution, just a workaround to avoid
deadlocks, become this might lead to a corruption if free is called
while the heap is in an inconsistent state.
greg.ath gathan...@gmail.com added the comment:
Hi,
I also wonder about the performance cost of a recursive lock.
I am still unable to reproduce the bug in a simple script. Looking
closely to the gdb stack, there is that frame:
Frame 0x13be190, for file
Charles-François Natali neolo...@free.fr added the comment:
Looking closely to the gdb stack, there is that frame:
Yeah, but it calls _free, which runs unlocked. That's not the problem.
I am still unable to reproduce the bug in a simple script.
Try with this one:
import
Petri Lehtinen pe...@digip.org added the comment:
In which file there's an error? Could you elaborate a bit?
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12379
___
Petri Lehtinen pe...@digip.org added the comment:
New semantics may also be something else than new classes or functions. New
optional function arguments exposing new functionality, for example.
--
nosy: +petri.lehtinen
___
Python tracker
STINNER Victor victor.stin...@haypocalc.com added the comment:
I also wonder about the performance cost of a recursive lock.
An alternative is to disable the garbage collector in malloc():
def malloc(self, size):
...
enabled = gc.isenabled()
if enabled:
Petri Lehtinen pe...@digip.org added the comment:
The patch looks good to me. It passes the old doctests tests and adds a new
test case for what it's fixing.
--
nosy: +petri.lehtinen, tim_one
___
Python tracker rep...@bugs.python.org
Changes by Petri Lehtinen pe...@digip.org:
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11869
___
___
Python-bugs-list
Changes by Petri Lehtinen pe...@digip.org:
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11708
___
___
Python-bugs-list
Changes by Petri Lehtinen pe...@digip.org:
--
nosy: +bethard
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11708
___
___
Python-bugs-list mailing
New submission from Robin Jarry diabete...@gmail.com:
When trying to open a non existing MSI database, an obscure unknown error 6e
is raised.
Could it be possible to get a more explicit message such as File not found or
whatever ?
Thanks :)
Here is a example:
Robin Jarry diabete...@gmail.com added the comment:
changed the headline of the defect for something more meaningful :)
--
title: [msilib] Ambiguous exception message when trying to open a non existing
MSI database - [msilib] Obscure exception message when trying to open a
Changes by Tim Golden m...@timgolden.me.uk:
--
nosy: +markmcmahon, tim.golden
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12382
___
___
Changes by Petri Lehtinen pe...@digip.org:
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11695
___
___
Python-bugs-list
Petri Lehtinen pe...@digip.org added the comment:
This seems like a bug worth fixing. The ConversionError exception has been
documented, an there's an example in the docs that suggest that at least all
packing fails with a ConversionError.
--
nosy: +petri.lehtinen
R. David Murray rdmur...@bitdance.com added the comment:
What's the use case? I'm inclined to reject this as not needed.
--
nosy: +r.david.murray
type: behavior - feature request
versions: +Python 3.3 -Python 2.7, Python 3.1
___
Python tracker
R. David Murray rdmur...@bitdance.com added the comment:
As Raymond said in another issue, someone should fix this once and for all by
factoring this check out into a reusable method and making sure it is used
everywhere.
--
keywords: +easy
nosy: +r.david.murray
versions: +Python 3.2,
Changes by Xuanji Li xua...@gmail.com:
--
nosy: +xuanji
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12381
___
___
Python-bugs-list mailing list
R. David Murray rdmur...@bitdance.com added the comment:
Heh. You are assuming we know how it should be used :) It's pretty new yet,
so I don't think we've figured that out. But at at least how it works should
be mentioned in the devguide.
--
nosy: +r.david.murray
New submission from Thomas Wouters tho...@python.org:
The addition of the _posixsubprocess module in 3.2 introduced a change of
behaviour when passing an empty dict (or other false value besides None) as env:
python3.1 -c 'import subprocess; print(subprocess.Popen([env], env={},
Roundup Robot devnull@devnull added the comment:
New changeset b5963fceddad by Victor Stinner in branch '3.2':
Close #12383: Fix subprocess module with env={}: don't copy the environment
http://hg.python.org/cpython/rev/b5963fceddad
New changeset 10ecf8576eb2 by Victor Stinner in branch
STINNER Victor victor.stin...@haypocalc.com added the comment:
The addition of the _posixsubprocess module in 3.2 introduced
a change of behaviour when passing an empty dict
(or other false value besides None) as env: ...
This bug was introduced by the commit (768722b2ae0a) introducing
STINNER Victor victor.stin...@haypocalc.com added the comment:
Thanks for the fix, I added an unit test.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12383
___
R. David Murray rdmur...@bitdance.com added the comment:
The test appears to be failing on the buildbots:
http://www.python.org/dev/buildbot/all/builders/x86%20Ubuntu%20Shared%203.2/builds/370
--
nosy: +r.david.murray
status: closed - open
___
Changes by Adam Woodbeck adam.woodb...@gmail.com:
--
nosy: +adam.woodbeck
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10403
___
___
Gregory P. Smith g...@krypto.org added the comment:
That failure is likely due to the environment being empty causing the
subprocess to be unable to run. Notice this error message further up:
test_empty_env (test.test_subprocess.ContextManagerTests) ...
Changes by Petri Lehtinen pe...@digip.org:
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12381
___
___
Python-bugs-list
Changes by Catalin Iacob iacobcata...@gmail.com:
--
nosy: +catalin.iacob
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12378
___
___
Charles-François Natali neolo...@free.fr added the comment:
The test still fails on FreeBSD 7.2, Tiger and Debian parallel:
==
FAIL: test_siginterrupt_on (test.test_signal.SiginterruptTest)
STINNER Victor victor.stin...@haypocalc.com added the comment:
On Mac OS X, the failure is different:
==
FAIL: test_empty_env (test.test_subprocess.ProcessTestCase)
Catalin Iacob iacobcata...@gmail.com added the comment:
Just a note after running Joe's example. smtplib is affected by this issue in
3.x, but the example produces different results in 3.x: smtpd doesn't keep the
connection open due to UnicodeDecodeError when the data from the ssl handshake
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:
Maybe test_empty_env() should pass LD_LIBRARY_PATH to child process.
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12383
Roundup Robot devnull@devnull added the comment:
New changeset 8d46e84cd812 by Victor Stinner in branch '3.2':
Issue #12383: skip test_empty_env() if compiled is compiled in shared mode
http://hg.python.org/cpython/rev/8d46e84cd812
--
___
Python
Roundup Robot devnull@devnull added the comment:
New changeset d1d5a7392e39 by Victor Stinner in branch 'default':
(merge 3.2) Issue #12383: skip test_empty_env() if compiled is compiled in
http://hg.python.org/cpython/rev/d1d5a7392e39
--
___
Python
New submission from Terry J. Reedy tjre...@udel.edu:
The basic problem: in 2.6, a namedtuple was introduced to difflib
from collections import namedtuple as _namedtuple
Match = _namedtuple('Match', 'a b size')
and used for the return values of SeqeunceMatcher.get_longest_match and
STINNER Victor victor.stin...@haypocalc.com added the comment:
Maybe test_empty_env() should pass LD_LIBRARY_PATH to child process.
The idea of the test is to test an empty environment: if we pass one variable,
it is no more an empty environment.
I changed the test to skip it if Python is
Martin v. Löwis mar...@v.loewis.de added the comment:
Oh, I forgot to give a little bit more details.
b'abc\xff-'.decode('punycode', 'ignore') and
b'abc\xff-'.decode('punycode', 'replace') raise a UnicodeDecodeError:
the error handler is just useless (ignored) here.
That's not my point:
Roumen Petrov bugtr...@roumenpetrov.info added the comment:
cf. http://hg.python.org/cpython/rev/0d0ca6f95d9d
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12379
___
Charles-François Natali neolo...@free.fr added the comment:
Duh, don't know what I was thinking: the syscall is not restarted
(even though ERESTARTSYS is displayed by strace): the real problem is
that the 3s timeout to communicate is not enough, because spawning a
new interpreter can take a
Changes by Charles-François Natali neolo...@free.fr:
Added file: http://bugs.python.org/file22421/test_siginterrupt.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12363
___
Changes by Charles-François Natali neolo...@free.fr:
Removed file: http://bugs.python.org/file22420/test_siginterrupt.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12363
___
Changes by Charles-François Natali neolo...@free.fr:
--
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12363
___
___
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
I'll take a look at this when I get a chance (est. two weeks).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12384
___
py.user port...@yandex.ru added the comment:
all other methods support it and it's right
barr = bytearray(b'abcd*')
barr.center(len(barr) * 4, barr[-1:])
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: must be a byte string of length 1, not bytearray
b =
Adam Woodbeck adam.woodb...@gmail.com added the comment:
I grepped the documentation in the cpython repository and replaced all mentions
of member(s) with attribute(s) where I felt appropriate. I left mentions
of members related to structs or any C documentation alone as I'm less
confident
R. David Murray rdmur...@bitdance.com added the comment:
A bytearray is for working with mutable data. We don't support using it in all
places that the non-mutable data types can be used. You can code your example
like this:
barr.center(len(barr) * 4, bytes([barr[-1]]))
I realize that
New submission from py.user port...@yandex.ru:
help(bytearray.maketrans)
maketrans(...)
B.maketrans(frm, to) - translation table
Return a translation table (a bytes object of length 256)
suitable for use in bytes.translate where each byte in frm is
mapped to the byte at the
py.user port...@yandex.ru added the comment:
A bytearray is for working with mutable data. We don't support using it in
all places that the non-mutable data types can be used.
bytearray(b'abcd').strip(bytearray(b'da'))
bytearray(b'bc')
.translate, .find, .partition, ...
R. David Murray rdmur...@bitdance.com added the comment:
Hmm. I wonder why we have two copies of this method.
Well, given that we do, the best fix for the docs would be to say for use in
the bytes or bytearray translate method in both this docstring and the
bytes.maketrans docstring.
R. David Murray rdmur...@bitdance.com added the comment:
All right, let's get some other opinions from people who have actually worked
with the bytearray and bytes code (and Terry because he cares about APIs).
--
nosy: +haypo, ncoghlan, pitrou, rhettinger, terry.reedy
status: closed -
Eric Snow ericsnowcurren...@gmail.com added the comment:
Yeah, the extra space results in a different formatting. Compare Index by
Category with Numerical Index.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12307
Eric Snow ericsnowcurren...@gmail.com added the comment:
I had considered that, but thought it would be better to leave the topical
index open for editing to a broader audience. If it's in PEP 0 then only
committers could make changes.
I do like the idea of using keywords from the PEPs
Simon simon.buchan...@gmail.com added the comment:
Not sure if this is related, but for me none of the F5 processes (command line
pythonw.exe -c __import__('idlelib.run').run.main(True) num) ever exit on
either 2.7.2 or 3.2.1rc1.
--
nosy: +Simon
Petri Lehtinen pe...@digip.org added the comment:
Benjamin: The mentioned commit is yours, so you probably have the best
understanding of this change.
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
57 matches
Mail list logo