Giampaolo Rodola' g.rod...@gmail.com added the comment:
In attachment.
Before the patch:
9.433167934417725
After the patch:
0.0016150474548339844
scheduler.queue and scheduler.empty should be modified in accordance (which I
haven't done, it's just to give you an idea).
--
Added
Changes by Senthil Kumaran sent...@uthcode.com:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13425
___
___
Python-bugs-list
Mark Dickinson dicki...@gmail.com added the comment:
+1 to kwargs support in sched. I've also ended up modifying sched.py to
support this in the past.
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
Petri Lehtinen pe...@digip.org added the comment:
getallmatchinheaders() is not documented, i.e. it's not part of the public API.
Furthermore, it's only used by http.server.CGIHTTPRequestHandler, and the
comment above it even says that it should be moved there.
There are three options now:
1)
New submission from STINNER Victor victor.stin...@haypocalc.com:
Error handling of PyUnicode_EncodeDecimal() is broken by design. The caller
cannot know the size of the output buffer because each error handler produce a
variable output, whereas the caller has to allocate
this buffer and it is
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Checked in as f1a21f2e3bec and dc52db0fa2e5.
Thanks.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13245
Eric V. Smith e...@trueblade.com added the comment:
I don't think the existing tests have any value. I might leave one of them, but
I think I'll just use your new tests instead.
akira: I'd like to add your name to the Misc/ACKS file, if it's not already
there. What's your full name?
Thanks
Ezio Melotti ezio.melo...@gmail.com added the comment:
Thanks for the patch!
The patch should also include tests for this case in Lib/test/test_re.py
--
components: +Regular Expressions
stage: needs patch - test needed
___
Python tracker
Stefan Krah stefan-use...@bytereef.org added the comment:
I'm only using the function with the NULL error handler. If I had
to use 'xmlcharrefreplace', presumably I'd overallocate 'output'
for the worst case scenario: sizeof(#4294967295) per encoded
character.
It's hard to tell if people are
New submission from STINNER Victor victor.stin...@haypocalc.com:
A lot of tests using the network are failing sometimes. They look like timeout
or network failure.
Example:
==
ERROR: test_storlines
Changes by Nadeem Vawda nadeem.va...@gmail.com:
--
nosy: +nadeem.vawda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13453
___
___
Éric Araujo mer...@netwok.org added the comment:
Patch to PEP 8 attached.
--
Added file: http://bugs.python.org/file23755/pep8-shebangs.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10318
Éric Araujo mer...@netwok.org added the comment:
Does your latest patch address my second review?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12424
___
Éric Araujo mer...@netwok.org added the comment:
+1
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13440
___
___
Éric Araujo mer...@netwok.org added the comment:
Broken links should obviously be fixed, either to their newer location if it
can be found or to Web Archive links.
I think that it’s a good thing to link to some outside articles and code from
the official docs; we acknowledge that the stdlib
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6135
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
Nothing to say; waiting for a doc update.
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13448
___
Éric Araujo mer...@netwok.org added the comment:
PEP 3155 is accepted and makes str(cls) and str(function) as well as repr(cls)
and repr(function) return the qualified name, which obsoletes part of this
request. I haven’t checked if it has the same problem with Python methods.
str(module)
Éric Araujo mer...@netwok.org added the comment:
+1 on refusing the temptation to guess and to be half-working for some cases by
accident.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3932
New submission from Pyry Pakkanen frostb...@suomi24.fi:
Running the following results in a Segmentation fault on Ubuntu 11.10 64-bit
with both python and python3.
from itertools import *
c = count()
a,b = tee(c)
for i in range(1000):
next(a)
del(b)
--
messages: 148124
nosy: PyryP
STINNER Victor victor.stin...@haypocalc.com added the comment:
tee() uses a linked-list of teedataobject. This list is destroyed by recursive
calls to teedataobject_dealloc().
Extract of the gdb trace:
#5 0x08171a8e in teedataobject_clear (tdo=0xad21b394) at
./Modules/itertoolsmodule.c:412
Ezio Melotti ezio.melo...@gmail.com added the comment:
Confirmed on py3k, it doesn't seem to happen with smaller values.
--
components: +Extension Modules
nosy: +ezio.melotti, rhettinger
stage: - test needed
versions: +Python 3.3
___
Python tracker
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Also, a check for NULL would not hurt in tee_next():
diff -r 1e0e821d2626 Modules/itertoolsmodule.c
--- a/Modules/itertoolsmodule.c Fri Nov 04 22:17:45 2011 +0100
+++ b/Modules/itertoolsmodule.c Tue Nov 22 17:24:42 2011 +0100
@@ -475,6
Changes by Jesús Cea Avión j...@jcea.es:
Added file: http://bugs.python.org/file23756/750ca6da48f3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13405
___
Changes by Jesús Cea Avión j...@jcea.es:
Removed file: http://bugs.python.org/file23749/c64a284f4309.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13405
___
Jesús Cea Avión j...@jcea.es added the comment:
- Line tracing is more efficient and corretly skip the last body line when the
loop is done.
- Trace new style classes deletion.
- When creating new style classes, ignore internal classes. Show only user
defined classes.
- Solve a possible
Guido van Rossum gu...@python.org added the comment:
Are you sure? The way I read the PEP, it just said that str(cls) and
str(func) should *use* qualname. That could mean returning 'function
f.g.h at 0x1234' or 'class '__main__.C.D'.
On Tue, Nov 22, 2011 at 7:27 AM, Éric Araujo
akira 4kir4...@gmail.com added the comment:
TypeError tests can check that an implementation raises a correct exception
type i.e., it doesn't raise ValueError prematurely on invalid format_string
without checking that there is mapping argument.
METH_O does it for CPython. I'm not sure how
New submission from Ezio Melotti ezio.melo...@gmail.com:
The documentation about the bug tracker is sparse in a few different places.
The devguide contains 4 pages:
1. http://docs.python.org/devguide/helptriage.html
2. http://docs.python.org/devguide/devrole.html
3.
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 52fecdc1c5d8 by Charles-François Natali in branch 'default':
Issue #13093: Perform a real merge.
http://hg.python.org/cpython/rev/52fecdc1c5d8
--
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset ed2d3680f489 by Charles-François Natali in branch '2.7':
Issue #12156: Skip test_multiprocessing on systems which don't support enough
http://hg.python.org/cpython/rev/ed2d3680f489
New changeset 311bb5e65b02 by
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset ba90839c4993 by Charles-François Natali in branch '3.2':
Issue #13156: _PyGILState_Reinit(): Re-associate the auto thread state with the
http://hg.python.org/cpython/rev/ba90839c4993
New changeset aa6ce09d2350 by
Charles-François Natali neolo...@free.fr added the comment:
Alright, should be fixed now.
Graham, thanks for the report!
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
I think the reason these docs are scattered is that the devguide is a guide,
not a reference manual. I don't think this patch makes sense: if the tracker
really needed so much text to explain how it works, then the tracker would have
a severe
New submission from R. David Murray rdmur...@bitdance.com:
The doc string for HTTPConnection.getresponse mentions (in broken English) that
the instance's response_class attribute determines what class gets instantiated
for a response. The docs do not mention this attribute, nor any other way
Petri Lehtinen pe...@digip.org added the comment:
It seems to me there's not that much text on how the tracker itself works. Only
sections Checking if a bug already exists and Reporting an issue have this
kind of information. The text in these sections seems to be mostly from
Petri Lehtinen pe...@digip.org added the comment:
4) Deprecate the function to be removed in 3.4 or 3.5 and fix it to always
return [].
This way we won't break any 3.0-3.2 code that is using the function, but the
users of such code will start to get DeprecationWarnings in 3.3.
There's no
New submission from Ram Rachum r...@rachum.com:
Recently I was confronted with a mysterious error:
ImportError: No module named datetime
Firther investigation revealed that the cause was a pickling problem that ran
`__import__('datetime\r')`.
If `ImportError` would have shown the module
Changes by Ram Rachum r...@rachum.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13457
___
___
Python-bugs-list mailing
Brian Curtin br...@python.org added the comment:
3.3 will be adding an attribute which would have datetime\r here. See
#1559549, which might make this a duplicate.
You shouldn't (have to) rely on parsing the exception string.
--
nosy: +brian.curtin
Changes by Brian Curtin br...@python.org:
--
assignee: - brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10854
___
___
Changes by Ram Rachum r...@rachum.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13457
___
___
Python-bugs-list
STINNER Victor victor.stin...@haypocalc.com added the comment:
I'm only using the function with the NULL error handler.
I don't think that anyone uses it without something else. The function is used
to prepare a string input for a function converting a string to an integer. I
don't see how
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset ffcdfc534942 by Amaury Forgeot d'Arc in branch '3.2':
Issue #13436: Fix a bogus error message when an AST object was passed
http://hg.python.org/cpython/rev/ffcdfc534942
New changeset 470f7d7c57ce by Amaury Forgeot
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
I fixed the bogus error message, but level=None is still not allowed, whereas
the docs promise that optional values can be None.
--
___
Python tracker rep...@bugs.python.org
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 3e892f428278 by Victor Stinner in branch '3.2':
Issue #13415: os.unsetenv() doesn't ignore errors anymore.
http://hg.python.org/cpython/rev/3e892f428278
New changeset aa55b7dc43f7 by Victor Stinner in branch
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 2e5506d9a079 by Victor Stinner in branch '3.2':
Issue #13436: Fix unsetenv() test on Windows
http://hg.python.org/cpython/rev/2e5506d9a079
New changeset 029ad97883ef by Victor Stinner in branch 'default':
(Merge
STINNER Victor victor.stin...@haypocalc.com added the comment:
test_urllib2net
test test_urllib2net failed -- Traceback (most recent call last):
File
/usr/home/buildbot/buildarea/2.7.krah-freebsd/build/Lib/test/test_urllib2net.py,
line 195, in test_sites_no_connection_close
req =
STINNER Victor victor.stin...@haypocalc.com added the comment:
http://www.python.org/dev/buildbot/all/builders/AMD64%20FreeBSD%208.2%202.7/builds/405/steps/test/logs/stdio
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13453
STINNER Victor victor.stin...@haypocalc.com added the comment:
http://www.python.org/dev/buildbot/all/builders/x86%20OpenIndiana%203.x/builds/2435/steps/test/logs/stdio
Re-running test 'test_poplib' in verbose mode
test_apop (test.test_poplib.TestPOP3Class) ... ok
test_dele
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10854
___
___
Python-bugs-list
STINNER Victor victor.stin...@haypocalc.com added the comment:
http://www.python.org/dev/buildbot/all/builders/AMD64%20OpenIndiana%202.7/builds/732/steps/test/logs/stdio
test test_telnetlib failed -- Traceback (most recent call last):
File
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13224
___
___
Python-bugs-list
STINNER Victor victor.stin...@haypocalc.com added the comment:
Oh, it looks like unsetenv() has no return value on Mac OS X Tiger:
http://www.python.org/dev/buildbot/all/builders/PPC%20Tiger%202.7/builds/100/steps/compile/logs/stdio
./Modules/posixmodule.c: In function 'posix_unsetenv':
Changes by Jesús Cea Avión j...@jcea.es:
Added file: http://bugs.python.org/file23758/a9f4ae43fd85.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13405
___
Changes by Jesús Cea Avión j...@jcea.es:
Removed file: http://bugs.python.org/file23756/750ca6da48f3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13405
___
Jesús Cea Avión j...@jcea.es added the comment:
- Added documentación.
- Change sys.trace_capabilities to an external dtrace extension module.
I don't care about Sun/Apple compatibility. The new probes are far more
extensive, and they should be the new standard.
The code is tested under
Changes by Chris Miles miles.ch...@gmail.com:
--
nosy: -chrismiles
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13405
___
___
Python-bugs-list
Zbyszek Szmek zbys...@in.waw.pl added the comment:
Updated doc patch 0001-2.diff: following ncoghlan's request, the bulk of yield
documentation is kept in expressions.rst, and simple_stmts.rst mostly refers to
the other one. (In previous version it was the other way around).
After doing this
New submission from Robert Xiao nneon...@gmail.com:
_ssl.c has a memory leak in _get_peer_alt_names.
The `names' object is initialized here:
Modules/_ssl.c:601:
if (method-it)
names = (GENERAL_NAMES*)
(ASN1_item_d2i(NULL,
p,
Antoine Pitrou pit...@free.fr added the comment:
I think closing stdout is a legitimate desire so, yes, I would consider it a
bug if we print an error in that case.
A patch could either first check the closed attribute, or silence the
ValueError.
--
stage: - needs patch
type: -
Robert Xiao nneon...@gmail.com added the comment:
Attaching patch.
--
keywords: +patch
Added file: http://bugs.python.org/file23760/ssl.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13458
Robert Xiao nneon...@gmail.com added the comment:
Also applies to Python 2.7.
--
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13458
___
Changes by Amaury Forgeot d'Arc amaur...@gmail.com:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13458
___
___
Python-bugs-list
Antoine Pitrou pit...@free.fr added the comment:
Here is an updated patch (pipe_poll_fix.patch) which should be applied
on top of sigint_event.patch.
It fixes the problems with PipeConnection.poll() and Queue.empty() and
makes PipeListener.accept() use overlapped I/O. This should make all
Nick Coghlan ncogh...@gmail.com added the comment:
Hmm, my initial reaction is that that specific wording is stronger than I had
in mind - there's nothing really wrong with having a shebang line and execute
bit set on a top level module and symlinking it from /usr/bin. The problem is
that
Nick Coghlan ncogh...@gmail.com added the comment:
Documenting the tracker UI itself isn't the big issue - what is useful (and
what I think Ezio is getting at) is having a single place where newcomers can
get a better idea of how we *use* the tracker.
If someone just wants to report a bug,
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 80d491aaeed2 by Antoine Pitrou in branch '3.2':
Issue #13458: Fix a memory leak in the ssl module when decoding a certificate
with a subjectAltName.
http://hg.python.org/cpython/rev/80d491aaeed2
New changeset
Antoine Pitrou pit...@free.fr added the comment:
Patch committed, thank you.
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13458
Nick Coghlan ncogh...@gmail.com added the comment:
*Any* expression can be used as a standalone statement and (since PEP 352 was
implemented) that now applies to 'yield' as well.
PEP 352 fundamentally changed the way yield was conceptualised within the
language - thinking of it as a statement
New submission from Mike Fogel m...@fogel.ca:
Hi, there's been a fair amount of confusion over the interaction between
logger.propagate and the ancestor logger's handlers and level.
http://bugs.python.org/issue7535
http://bugs.python.org/issue8327
http://bugs.python.org/issue9606
I think most
New submission from Tyler Starke prof.eb...@gmail.com:
It seems bad practice for urllib methods to demand a str instance and they
should demand a unicode instance. By demanding a str instance the default
behavior is too demanding, for the web space it is being used, for the English
language.
R. David Murray rdmur...@bitdance.com added the comment:
I suspect you want to be using Python3, then. Although it is nowhere near as
simple as that...even with Python3 you still sometimes have to deal with the
fact that the wire protocol is bytes.
--
nosy: +r.david.murray
Tyler Starke prof.eb...@gmail.com added the comment:
well that was closed fast. I noticed in the docs that Python 3 demands a str
type also.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13460
Tyler Starke prof.eb...@gmail.com added the comment:
Nevermind. I had to download the source to see that it encodes to 'utf-8', or a
passed encoding method, in the methods that are causing problems in 2.6.5.
--
___
Python tracker
Changes by Petri Lehtinen pe...@digip.org:
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13439
___
___
Python-bugs-list
Petri Lehtinen pe...@digip.org added the comment:
onkey and onkeyrelease are the same function, so you still get exactly the same
behavior with the example in the docstring. This also makes it hard to have
different docstrings for them.
Closing as wontfix.
--
assignee: - docs@python
Sterling Windmill sterl...@ampx.net added the comment:
I would also like to see this functionality as I'm currently using more memory
than I'd like when using multiprocessing.Pool
--
nosy: +swindmill
___
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/issue6407
___
___
Python-bugs-list
79 matches
Mail list logo