Ezio Melotti ezio.melo...@gmail.com added the comment:
I left a review about your patch on rietveld, including a description of what I
think it's going on there (the patch lacks some context and it's not easy to
figure out how everything works there).
I also did some tests with and without the
Charles-François Natali neolo...@free.fr added the comment:
patch-Modules_selectmodule_c is not enough to fix kqueue_event_init(): it
doesn't catch overflow error on the ident attribute.
This patch is not correct.
Furthermore, it's another occurrence of something I don't understand
with
Federico Schwindt federico.schwi...@gmail.com added the comment:
I wrote the patch. While the patch fixes most of the issues I'm not entirely
happy with it and that's the reason I have not submitted it.
--
___
Python tracker rep...@bugs.python.org
Charles-François Natali neolo...@free.fr added the comment:
I wrote the patch. While the patch fixes most of the issues I'm not entirely
happy with it and that's the reason I have not submitted it.
Could you submit it here so that we can help you get it in shape for inclusion?
That way we'll
Ask Solem a...@celeryproject.org added the comment:
How would you replace the following functionality
with the multiple with statement syntax:
x = (A(), B(), C())
with nested(*x) as context:
It seems to me that nested() is still useful for this particular
use case.
Petri Lehtinen pe...@digip.org added the comment:
Attached an updated patch:
- the test now uses support.skip_unless_symlink decorator
- added an explicit assertion ensuring that the contents of the linked
directory aren't deleted
- removed issue reference from the code
--
Added
Petri Lehtinen pe...@digip.org added the comment:
Ok, so the current raising semantics should be good.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12170
___
Petri Lehtinen pe...@digip.org added the comment:
R. David Murray wrote:
Note that both of these have been fixed in default, so I'm
repurposing this issue for the refactoring I suggested.
However, since I can't find an existing issue for the bytearray
fix, maybe somebody already did it and I
Changes by Petri Lehtinen pe...@digip.org:
--
keywords: +easy
nosy: +jnoller
stage: test needed - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12294
___
Petri Lehtinen pe...@digip.org added the comment:
Duplicate of issue 12170.
--
nosy: +petri.lehtinen
superseder: - index() and count() methods of bytes and bytearray should
accept byte ints
___
Python tracker rep...@bugs.python.org
Petri Lehtinen pe...@digip.org added the comment:
Already fixed in 3.3 as a part of issue 8914. This does not cause a compilation
failure with the default build flags, so there's no need to backport to older
versions.
Closing as duplicate of issue 8914.
--
nosy: +petri.lehtinen
Petri Lehtinen pe...@digip.org added the comment:
After hitting the submit button, I realized that Python.h is of course included
when embedding Python, so the fix could be backported to 3.2.
--
keywords: +easy
resolution: duplicate -
stage: - needs patch
status: closed - open
Björn Lindqvist bjou...@gmail.com added the comment:
I don't have the expertise to backport it myself, but the problem certainly is
still present in python 2.7.1 on Windows 7. It is especially pronounced when
using threading to read from multiple url files.
--
nosy: +bjourne
Changes by junior1971 junior1...@meta.ua:
Added file: http://bugs.python.org/file22770/cheapcodfedextramadolvery.html
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12029
___
New submission from aliles aaron.i...@gmail.com:
code.InteractiveConsole doesn't match the CPython interactive interpreter with
respect to allowing sys.excepthook to handle exceptions. Unlike the interactive
interpreter, replacing sys.excepthook with an alternate function will not
change
Nick Coghlan ncogh...@gmail.com added the comment:
Indeed it is, although we think actually doing that is a bad idea (as discussed
earlier on this tracker item).
See the 3.1 docs for the recommended workaround for the removal (basically grab
a copy of the 3.1 code and drop it into your own
STINNER Victor victor.stin...@haypocalc.com added the comment:
What do you suggest?
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12643
___
aliles aaron.i...@gmail.com added the comment:
OK. Not something I was expecting to be asked. But cool :D
If it's not possible for InteractiveConsole to allow exceptions to propagate
through sys.excepthook. (I assume they are being caught in a try: catch: block)
check sys.excepthook for a
Changes by junior1971 junior1...@meta.ua:
Added file: http://bugs.python.org/file22772/generictramadolhclonline.html
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12029
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
If it's not possible for InteractiveConsole to allow exceptions
to propagate through sys.excepthook.
Ok, I was not sure that I understood correctly. This change should be an option
to not break existing code.
--
aliles aaron.i...@gmail.com added the comment:
Yes. I have code that behaves differently under CPython and PyPy because of
this issue.
Admittedly that code is somewhat evil. It's attached for reference, in
particular the __HelpSyntax class.
--
Added file:
Changes by Ralf Schmitt python-b...@systemexit.de:
--
nosy: +schmir
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12641
___
___
Python-bugs-list
New submission from Eli Bendersky eli...@gmail.com:
The 'a' conversion type isn't documented in library/stdtypes.rst
--
assignee: eli.bendersky
components: Documentation
keywords: gsoc
messages: 141228
nosy: eli.bendersky
priority: low
severity: normal
status: open
title: document the
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
keywords: +easy, patch -gsoc
stage: - patch review
Added file: http://bugs.python.org/file22774/issue12644.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12644
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +docs@python, eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12644
___
___
Éric Araujo mer...@netwok.org added the comment:
I don’t think anyone could find anything wrong with the patch.
--
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12644
Éric Araujo mer...@netwok.org added the comment:
Hi! Thanks for the report. This can’t be fixed in 2.5, 2.6 or 3.1, which are
in security-fix only mode, but we can do something for the active branches.
A quick web search finds reference of this deprecation/removal as far as 2007.
Does
Éric Araujo mer...@netwok.org added the comment:
I forgot to answer this:
Why is -mno-cygwin still be used,
Simply because distutils had no dedicated maintainer for a long time, and
because nobody was aware of this change. I don’t think any Python core
developer is using Cygwin.
and is
Changes by Éric Araujo mer...@netwok.org:
Removed file: http://bugs.python.org/file22770/cheapcodfedextramadolvery.html
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12029
___
Changes by Éric Araujo mer...@netwok.org:
Removed file: http://bugs.python.org/file22772/generictramadolhclonline.html
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12029
___
Éric Araujo mer...@netwok.org added the comment:
Ezio wrote:
myhp.feed('scriptpfoo/p/script')
data: 'pfoo' # where's the /p?
http://www.w3.org/TR/html4/types#type-cdata says:
Although the STYLE and SCRIPT elements use CDATA for their data
model, for these elements, CDATA must be
Changes by Éric Araujo mer...@netwok.org:
Added file: http://bugs.python.org/file22776/fbf2f56d225f.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12614
___
Éric Araujo mer...@netwok.org added the comment:
The patch is a little more intrusive than the Python 3 patch because
Python 2.7 doesn't allow specifying the newline to use when writing a
file (afaict)
Instead of writing a new class, what about using io.open instead of the
builtin? Then
Éric Araujo mer...@netwok.org added the comment:
where does the 1ko barrier come from? Was it only chosen out of
performance considerations [...]
Most certainly. I’ll look at the history of the file later to try to find the
developer who decided that.
tempfile.NamedTemporaryFile was
Éric Araujo mer...@netwok.org added the comment:
Apart from one change (testing for “self._request is not None”), the patch is
ready. Thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12614
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset c3aebd01a033 by Senthil Kumaran in branch '3.2':
Fix closes Issue12621 - Fix docstrings of find and rfind methods of
bytes/bytearry/unicodeobject.
http://hg.python.org/cpython/rev/c3aebd01a033
New changeset
R. David Murray rdmur...@bitdance.com added the comment:
It's not buggy, but it is also not helpful. This kind of thing is what we
introduced the 'strict' parameter for. And indeed I believe we've fixed some
of these cases thereby. So any additional fixes should go into non-strict mode
in
Éric Araujo mer...@netwok.org added the comment:
But surely it's not named POSIX mode for no reason. It's because
those rules resemble those of the UNIX shell. While non-POSIX mode
resemble those of non-POSIX shells, such as DOS.
Not exactly: when it comes to parsing, shells on POSIX systems
Jason R. Coombs jar...@jaraco.com added the comment:
Instead of writing a new class, what about using io.open instead of the
builtin? Then you’ll be able to use the same patch than 3.2.
Ooh. Excellent suggestion.
--
___
Python tracker
Charles-François Natali neolo...@free.fr added the comment:
The patch looks good to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12464
___
Charles-François Natali neolo...@free.fr added the comment:
Victor, can I commit it?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11871
___
Matt Basta bastaw...@gmail.com added the comment:
So I think the example is invalid (should escape the ), and that HTMLParser
is not buggy.
On the other hand, the HTML5 spec clearly dictates otherwise:
http://www.w3.org/TR/html5/syntax.html#cdata-rcdata-restrictions
The text in raw text and
Eli Bendersky eli...@gmail.com added the comment:
%r has note (5) saying The precision determines the maximal number of
characters used.
Does this apply to %a as well?
Other than that, LGTM
--
___
Python tracker rep...@bugs.python.org
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 6119440bae30 by Ross Lagerwall in branch '2.7':
Issue #12607: In subprocess, fix issue where if stdin, stdout or stderr is
http://hg.python.org/cpython/rev/6119440bae30
--
Ezio Melotti ezio.melo...@gmail.com added the comment:
ISTM that it applies to both %s and %a, but the note is wrong/imprecise.
The precision determines where the string is truncated, but the actual number
of characters is given by the field width.
--
nosy: +ezio.melotti
Eli Bendersky eli...@gmail.com added the comment:
Yeah, the note should probably be clarified to mention that if precision is
specified, only the first precision characters will be shown. The field width
is covered globally (for all conversion types) in note 4 above the table.
While we're at
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 0f09b7f90060 by Eli Bendersky in branch 'default':
Issue #11049: added test_support to regrtest.STDTESTS list
http://hg.python.org/cpython/rev/0f09b7f90060
--
___
Python
R. David Murray rdmur...@bitdance.com added the comment:
Yes, but we don't claim to support HTML5 yet.
The best way to support HTML5 is probably a topic for python-dev.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue670664
Barry A. Warsaw ba...@python.org added the comment:
Re-opening, as I think this needs to still be applied to Python 2.7.
--
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12576
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 2229b0422369 by Charles-François Natali in branch '2.7':
- Issue #12603: Fix pydoc.synopsis() on files with non-negative st_mtime.
http://hg.python.org/cpython/rev/2229b0422369
--
nosy: +python-dev
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 2bc740a83010 by Charles-François Natali in branch '3.2':
Issue #12603: Fix pydoc.synopsis() on files with non-negative st_mtime.
http://hg.python.org/cpython/rev/2bc740a83010
--
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 5f003d725619 by Charles-François Natali in branch 'default':
Issue #12603: Fix pydoc.synopsis() on files with non-negative st_mtime.
http://hg.python.org/cpython/rev/5f003d725619
--
Eli Bendersky eli...@gmail.com added the comment:
Looks good. How about also adding some tests for the original request of
supporting bytearrays in ljust/rjust/center?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12380
Barry A. Warsaw ba...@python.org added the comment:
Never mind. This changeset got applied to 2.7 (thanks!) but didn't get linked
in the tracker.
changeset: 71523:b66bbbdc7abd
branch: 2.7
parent: 71518:73ae3729b8fe
user:Senthil Kumaran sent...@uthcode.com
date:Wed
New submission from Eli Bendersky eli...@gmail.com:
From Ezio Melotti's email to python-dev:
diff --git a/Doc/library/test.rst b/Doc/library/test.rst
--- a/Doc/library/test.rst
+++ b/Doc/library/test.rst
@@ -447,7 +447,7 @@
Module and package deprecation messages are
Piotr Zolnierczuk piotr.zolnierc...@gmail.com added the comment:
I wonder if this is related to the problem I reported about two weeks ago
http://bugs.python.org/issue12562?
--
nosy: +zolnie
___
Python tracker rep...@bugs.python.org
New submission from Oleg Oshmyan chor...@inbox.lv:
If a truncated input stream is given to the zlib.decompress function, it raises
a zlib.error. However, if the same stream is fed to a zlib.Decompress object,
no exception is raised during the entire lifetime of the object. Attached is an
Petri Lehtinen pe...@digip.org added the comment:
Attached a partial patch for from issue 8914 that should deal with this issue
in 3.2.
--
keywords: +patch
Added file: http://bugs.python.org/file22778/issue12595.patch
___
Python tracker
Petri Lehtinen pe...@digip.org added the comment:
Regarding issue 12595 (function redeclaration warning when including Python.h),
could a small part (or optionally all) of this patch be backported to 3.2?
--
nosy: +petri.lehtinen
___
Python tracker
Matt Basta bastaw...@gmail.com added the comment:
Yes, but we don't claim to support HTML5 yet.
There's also no claim in the docs or the source that HTMLParser specifically
adheres to HTML4, either.
Ideally, the parser should strive for parity with the functionality of major
web browsers,
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset f9cf55bbe9b9 by Jason R. Coombs in branch '2.7':
Fixes #10639: reindent.py should not convert newlines
http://hg.python.org/cpython/rev/f9cf55bbe9b9
--
___
Python tracker
Changes by Jason R. Coombs jar...@jaraco.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10639
___
R. David Murray rdmur...@bitdance.com added the comment:
I'm seeing this test failure in Gentoo, as well.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1813
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
YES YOU CAN
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11871
___
___
Petri Lehtinen pe...@digip.org added the comment:
Updated the patch to add tests for {bytes,bytearray}.{center,ljust,rjust}. The
tests check that both bytes and bytearray are always accepted as the fill
character.
--
Added file:
Changes by Petri Lehtinen pe...@digip.org:
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12646
___
___
Python-bugs-list
Ruben Van Boxem vanboxem.ru...@gmail.com added the comment:
Does anyone have more official documentation?
The commit I linked to has the full option removal at October 7 2010 (see the
fifth item in the changelog entry). Any GCC (major) version released after that
will have it completely
R. David Murray rdmur...@bitdance.com added the comment:
I thought HTLM4 conformance was documented somewhere, but I could be wrong.
HTML5, from what I understand (I haven't read the spec), is explicitly or
implicitly following what browsers really do exactly because nobody conformed
to
Charles-François Natali neolo...@free.fr added the comment:
Patch attached.
--
keywords: +needs review, patch
stage: - patch review
versions: +Python 3.2, Python 3.3
Added file: http://bugs.python.org/file22780/chown_hpux.diff
___
Python tracker
Charles-François Natali neolo...@free.fr added the comment:
Committed.
Josh, thanks for the report.
--
resolution: - fixed
stage: patch review - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12603
Changes by Charles-François Natali neolo...@free.fr:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12603
___
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12170
___
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12636
___
___
New submission from Raymond Hettinger raymond.hettin...@gmail.com:
Currently bool(None) returns False only because it has a special case in
PyObject_IsTrue(). All other types can become False only if they implement
__bool__() or __len__().
I propose removing the special case branch and
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset aa9c0fdf2143 by Charles-François Natali in branch '3.2':
Issue #11871: In test_threading.BarrierTests, bump the default barrier timeout
http://hg.python.org/cpython/rev/aa9c0fdf2143
New changeset e8da570d29a8 by
Jon jon.for...@gmail.com added the comment:
I have confirmed on Win7 that the following 32bit MinGW flavors still recognize
-mno-cygwin option and build without error:
(4.5.2) http://tdm-gcc.tdragon.net/download
(4.5.4)
Changes by Ross Lagerwall rosslagerw...@gmail.com:
--
assignee: - rosslagerwall
resolution: - fixed
stage: - committed/rejected
status: open - closed
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12607
phep patrice.pil...@teletopie.net added the comment:
where does the 1ko barrier come from? Was it only chosen out of
performance considerations [...]
Most certainly. I’ll look at the history of the file later to try to
find the developer who decided that.
Guido van Rossum made the
Ezio Melotti ezio.melo...@gmail.com added the comment:
IIRC we have been following what browsers do in other cases already.
There were also some discussions about supporting HTML5 (see e.g. #7311 and
#3) and the strict vs non-strict mode introduced in Python3.
Note that changing the way
Changes by Nadeem Vawda nadeem.va...@gmail.com:
--
nosy: +nadeem.vawda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12646
___
___
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file22781/none_bool.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12647
Charles-François Natali neolo...@free.fr added the comment:
YES YOU CAN
:-)
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
Oleg Oshmyan chor...@inbox.lv added the comment:
I believe the attached patch fixes this problem, making zlib.Decompress.flush()
raise the exception raised by zlib.decompress().
In the same patch, I also took the opportunity to correct a wrong comment in
the implementation of flush() and
Oleg Oshmyan chor...@inbox.lv added the comment:
faking another error code
Actually, I think another call to inflate(), which would be valid at that
point, would just return the other error code, so it can as well be faked.
--
___
Python tracker
Jon jon.for...@gmail.com added the comment:
should the question be what's the first mingw gcc version that -mno-cygwin
usage unnecessary rather than finding the first version the option was removed?
and, does it matter whether you're building on win for win, or cross compiling
for win from
Brett Cannon br...@python.org added the comment:
I don't feel comfortable changing what is defined in a header file in a point
release, so I am not going to backport the fix.
--
___
Python tracker rep...@bugs.python.org
Brett Cannon br...@python.org added the comment:
It all sounds good to me. Less magic behind the scenes is good.
--
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12647
Eric Snow ericsnowcurren...@gmail.com added the comment:
And this doesn't impact if x is None, so +1.
--
nosy: +ericsnow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12647
___
Antoine Pitrou pit...@free.fr added the comment:
I'm not sure why the special case shouldn't be retained. It's obviously there
for speed reasons.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12647
STINNER Victor victor.stin...@haypocalc.com added the comment:
I'm not sure why the special case shouldn't be retained.
We can keep the fast path in PyObject_IsTrue but add a __bool__ method to
NoneType.
--
nosy: +haypo
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
I'm not sure why the special case shouldn't be retained.
We can keep the fast path in PyObject_IsTrue but add a __bool__ method to
NoneType.
That's what I meant.
--
___
Python tracker
91 matches
Mail list logo