New submission from Nick Coghlan ncogh...@gmail.com:
A couple of issues have arisen where features were added to str.format without
similarly being added to string.Formatter.
This is only possible because the test cases for the two are currently almost
entirely separate.
A common set of
Nick Coghlan ncogh...@gmail.com added the comment:
Agreed that this is a bug in string.Formatter rather than a new feature.
There's already a separate bug for the autonumbering problem:
http://bugs.python.org/issue13598
And I created a new issue about unifying some of the tests:
Jan Kratochvil jan.kratoch...@redhat.com added the comment:
What more can be done to get it fixed? I do not mind Python but GDB linking is
broken due to it. And while I can workaround it in GDB I am not used for
workarounding one Free package in another Free package. Free software has the
Martin v. Löwis mar...@v.loewis.de added the comment:
Frankly, other short strings may give away even more, because you can
put several into the same dict.
Please don't make such claims without some reasonable security analysis:
how *exactly* would you derive the hash seed when you have the
Martin v. Löwis mar...@v.loewis.de added the comment:
As a security issue, it applies to 2.6 and 3.1 as well.
--
versions: +Python 2.6, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14001
Nick Coghlan ncogh...@gmail.com added the comment:
One potential problem with the simple approach to fixing this is that up until
now, string.Formatter has been thread safe. Because all the formatting state
was held in local variables and passed around as method arguments, there was no
state
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 11a31eb5da93 by Ezio Melotti in branch '2.7':
#13987: HTMLParser is now able to handle EOFs in the middle of a construct.
http://hg.python.org/cpython/rev/11a31eb5da93
--
nosy: +python-dev
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 3d7904e3f4b9 by Ezio Melotti in branch '2.7':
#13987: HTMLParser is now able to handle malformed start tags.
http://hg.python.org/cpython/rev/3d7904e3f4b9
--
___
Python
Changes by Eric V. Smith e...@trueblade.com:
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14019
___
___
Python-bugs-list
Ezio Melotti ezio.melo...@gmail.com added the comment:
This should be fixed now.
The first two chunks of the attached patch have been committed in the two
changesets linked in the previous messages. The third chunk about the end tag
has been fixed as part of #13933. The error previously
New submission from Ezio Melotti ezio.melo...@gmail.com:
Attached patch reworks a bit the HTMLParser doc:
- moved the basic example on the top and showed the output;
- added a more complete parser with other examples;
- fixed some factual errors;
- added additional information for some
Hynek Schlawack h...@ox.cx added the comment:
I have also added a test for NTTP.head(), enjoy.
--
keywords: +patch
Added file: http://bugs.python.org/file24524/nntp-file-test.diff
___
Python tracker rep...@bugs.python.org
Changes by Éric Araujo mer...@netwok.org:
--
versions: -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14015
___
___
Python-bugs-list
Jason R. Coombs jar...@jaraco.com added the comment:
It's not that I forgot to set DISTUTILS_DEBUG, I simply did not set it. If the
bug were still present, I would have seen a line indicating that
.hg/last-message.txt was being copied.
For completeness, here's the output with the DEBUG
Éric Araujo mer...@netwok.org added the comment:
So it looks like that even if the exclusion of .hg removes
.hg/last-message.txt, it should not have been added in the first place, as the
command was include and not recursive-include.
At first glance, Nadeem’s proposed fix is not right: paths
Éric Araujo mer...@netwok.org added the comment:
Thanks. I’ve also realized that the doc does not mention that any callable can
be used; I don’t know if we should say it explicitly (I think I did a change
like that recently in another file), or if we expect people to just know it
from
Éric Araujo mer...@netwok.org added the comment:
Didn’t review in detail but the plan LGTM.
In a subsequent commit, you could update the markup to use nested class/method
directives.
--
___
Python tracker rep...@bugs.python.org
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 55fc092dad72 by Éric Araujo in branch '3.2':
Improve doc for atexit.register and unregister (#12297)
http://hg.python.org/cpython/rev/55fc092dad72
New changeset f7163afecb97 by Éric Araujo in branch 'default':
Merge
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 53df93a9c002 by Éric Araujo in branch '3.2':
Fix parsing of build_ext --libraries option (#1326113)
http://hg.python.org/cpython/rev/53df93a9c002
New changeset f7163afecb97 by Éric Araujo in branch 'default':
Merge
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 96f5718bf005 by Éric Araujo in branch '2.7':
Fix parsing of build_ext --libraries option (#1326113)
http://hg.python.org/cpython/rev/96f5718bf005
--
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset a99632426af5 by Éric Araujo in branch '2.7':
Improve doc for atexit.register (#12297)
http://hg.python.org/cpython/rev/a99632426af5
--
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 4ba43318e56b by Éric Araujo in branch 'default':
Fix parsing of packaging’s build_ext --libraries option (#1326113)
http://hg.python.org/cpython/rev/4ba43318e56b
--
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 60dd0041c9bc by Éric Araujo in branch 'default':
Fix parsing of build_ext --libraries option (#1326113)
http://hg.python.org/distutils2/rev/60dd0041c9bc
New changeset 158697fd8fa1 by Éric Araujo in branch 'python3':
Éric Araujo mer...@netwok.org added the comment:
Here you are! Thanks for the testing.
--
resolution: - fixed
stage: test needed - committed/rejected
status: open - closed
versions: +Python 3.3 -Python 3.1
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Closing as fixed, but if you have any feedback on my function vs. callable
question, please share.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python
New submission from 勇刚 罗 luoyongg...@gmail.com:
D:\CI\bld\vcs\pygit2python setup.py install
Find C:\Python32\python.exe
Using C:\Python32\python.exe
running install
running bdist_egg
running egg_info
writing pygit2.egg-info\PKG-INFO
Traceback (most recent call last):
File setup.py, line 106,
Éric Araujo mer...@netwok.org added the comment:
Hi. This code was changed to use UTF-8 as you recommend. The next version of
Python 3.2 should have the fix. You can get this version from hg.python.org
(see instructions in the devguide) and see if your problem is gone. Thanks for
the
Éric Araujo mer...@netwok.org added the comment:
You need to update test_pep3120:
http://www.python.org/dev/buildbot/all/builders/AMD64%20Gentoo%20Wide%203.2/builds/910/steps/test/logs/stdio/text
--
nosy: +eric.araujo
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 77ac369fbbf1 by Éric Araujo in branch '3.2':
Fix test failure for shared builds caused by #1326113 fix
http://hg.python.org/cpython/rev/77ac369fbbf1
--
___
Python tracker
New submission from Don Caldwell dfw...@gmail.com:
in iter_modules there is a loop for fn in os.listdir(path): that can
fail on an OSError exception. here is a patch
try:
for fn in os.listdir(path):
subname = inspect.getmodulename(fn)
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 98fb1c0fc7a0 by Éric Araujo in branch 'default':
Fix for packaging test failure on shared builds (#1326113)
http://hg.python.org/cpython/rev/98fb1c0fc7a0
--
___
Python
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset db1c52aa4d2a by Éric Araujo in branch '2.7':
Fix test failure for shared builds caused by #1326113 fix
http://hg.python.org/cpython/rev/db1c52aa4d2a
--
___
Python tracker
New submission from Роман Донченко dxdra...@yandex.ru:
The language reference in section 5.2.2 states:
~
With the exception of bytes literals, these all correspond to immutable data
types, ...
~
But bytes objects are immutable as well.
--
assignee: docs@python
components:
Changes by Francisco Martín Brugué franci...@email.de:
--
nosy: +francismb
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14019
___
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset f1401d20bc6d by Antoine Pitrou in branch '3.2':
Issue #7644: Add tests for the file argument of NNTP.head() and NNTP.body().
http://hg.python.org/cpython/rev/f1401d20bc6d
New changeset 096b31e0f8ea by Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment:
Thank you! Closing now.
--
resolution: - fixed
stage: test needed - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7644
New submission from James Lekas le...@sonic.net:
logging.Formatter.format() creates a cache called exc_text with a copy of the
traceback text which it uses for all log handlers (I think). When this cache
is set, format() does not call formatException to format the
exception/traceback data.
Francisco Martín Brugué franci...@email.de added the comment:
I have updated the patch with the documentation changes proposed and also added
a news entry (does a new entry has to be added in some order?).
Thank for the review in advance.
--
Added file:
Ned Deily n...@acm.org added the comment:
This issue was recently fixed by the changes for Issue7367 and will be released
in Python 2.7.3 and 3.2.3. Python 2.6 no longer receives bug fixes, only
security fixes.
--
nosy: +ned.deily
resolution: - out of date
stage: -
Nadeem Vawda nadeem.va...@gmail.com added the comment:
At first glance, Nadeem’s proposed fix is not right: paths in MANIFEST.in use
'/', but then filelist produces paths using os.sep, so that the MANIFEST file
and other operations done by the sdist command use native paths. So even
Terry J. Reedy tjre...@udel.edu added the comment:
I just noticed two more minor errors that were and remain in It takes a format
string, and an arbitrary set of positional and keyword argument. Remove the
comma and make 'argument' plural.
As near as I can tell, the two change block beginning
Terry J. Reedy tjre...@udel.edu added the comment:
However, I have not actually applied and run test_string.py.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13579
___
Charles-François Natali neolo...@free.fr added the comment:
The test fails on 2.6 and 2.7, because of a EPIPE, which is normal in
this case (well, at least expected):
test_partial_post (test.test_xmlrpc.SimpleServerTestCase) ...
Exception happened during
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 9eb77d455be1 by Petri Lehtinen in branch '3.2':
Issue #13491: Fix many errors in sqlite3 documentation
http://hg.python.org/cpython/rev/9eb77d455be1
New changeset ba5b337ecc27 by Petri Lehtinen in branch 'default':
Petri Lehtinen pe...@digip.org added the comment:
Éric: You can make a patch for 2.7 if you want to, I left the issue open.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13491
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14019
___
___
Python-bugs-list
New submission from Jaap Karssenberg jaap.karssenb...@gmail.com:
When you compare two multiline strings with unittest.TestCase.assertEqual it is
supposed to dispatch to assertMultiLineEqual and show a diff when the strings
differ.
However this only works for two string of the same type (str
R. David Murray rdmur...@bitdance.com added the comment:
The latter is arguably a bug. The former is working as designed, as far as I
know. In Python3 bytes and string do not compare equal.
--
nosy: +michael.foord, r.david.murray
___
Python
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14025
___
___
STINNER Victor victor.stin...@gmail.com added the comment:
See also issue #13617.
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13849
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 5b8f146103fa by Victor Stinner in branch '3.2':
Issue #13913: Fix test_pep3120 for the UTF-8 codec name
http://hg.python.org/cpython/rev/5b8f146103fa
New changeset 170a224ce01e by Victor Stinner in branch 'default':
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset f3a4c2b34973 by Antoine Pitrou in branch '3.2':
Issue #13014: Fix a possible reference leak in SSLSocket.getpeercert().
http://hg.python.org/cpython/rev/f3a4c2b34973
New changeset 9ab501b3e22d by Antoine Pitrou in
Antoine Pitrou pit...@free.fr added the comment:
I've fixed the actual leak. Thanks!
--
nosy: +pitrou
resolution: - fixed
stage: - committed/rejected
status: open - closed
versions: +Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
In case it isn't clear, by arguably a bug I mean in a theoretical sense.
Even if Michael agrees with me we can't change the fact that 2.7 unittest
treats str and unicode with the same content as equal.
For the other it might have been
Changes by Doug Hellmann doug.hellm...@gmail.com:
--
nosy: +doughellmann
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13817
___
___
Stefan Krah stefan-use...@bytereef.org added the comment:
Yes, the leak does not seem to be in posix_read() itself. Sadly
enough, the number of leaks in test_multiprocessing has grown to
five in e9d01c5c92ed (the four additional ones were definitely not
present when I reported this).
==3047==
Stefan Krah stefan-use...@bytereef.org added the comment:
Stefan Krah rep...@bugs.python.org wrote:
enough, the number of leaks in test_multiprocessing has grown to
five in e9d01c5c92ed (the four additional ones were definitely not
To be sure, e9d01c5c92ed is completely innocent. I just
Antoine Pitrou pit...@free.fr added the comment:
The first one seems to be the import lock. Two others seem to be the internal
bootstate structure used to run thread objects (daemon threads?).
Perhaps you could try to find whether a single test is responsible.
--
nosy: +neologix
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 3b127a415643 by Sandro Tosi in branch '2.7':
Issue #11836: document multiprocessing.queues.SimpleQueue
http://hg.python.org/cpython/rev/3b127a415643
New changeset fe5eb6d35025 by Sandro Tosi in branch '3.2':
Issue
Sandro Tosi sandro.t...@gmail.com added the comment:
Thanks for all you inputs!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11836
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 824ddf6a30f2 by Victor Stinner in branch '3.2':
Issue #13913: Another fix test_pep3120 for the UTF-8 codec name
http://hg.python.org/cpython/rev/824ddf6a30f2
New changeset 2cfba214c243 by Victor Stinner in branch
STINNER Victor victor.stin...@gmail.com added the comment:
I tried my timestamp patch with _decimal: it fails because decimal and _decimal
API is not exactly the same.
decimal.Decimal.__truediv__() has an optional context argument, whereas
_decimal defines PyNumberMethods.
New submission from Nick Coghlan ncogh...@gmail.com:
Currently, test_cmd_line_script only checks sys.argv[0] is set correctly.
It should pass some extra values after the script name, then include an
appropriate check in the output of the launched script.
--
components: Tests
keywords:
Michael Foord mich...@voidspace.org.uk added the comment:
assertEqual uses Python equality semantics - so if a str instance and a unicode
instance compare equal then assertEqual passes. This is by design.
The type check in assertEqual, that delegates to the different comparison
methods, is
Nick Coghlan ncogh...@gmail.com added the comment:
I just remembered that many of the urllib.urlparse tests are guilty of only
reporting the first case that fails, instead of testing everything and
reporting all failures:
http://hg.python.org/cpython/file/default/Lib/test/test_urlparse.py
Martin v. Löwis mar...@v.loewis.de added the comment:
I'm opposed to adding atomic files to the standard library. This has nothing
to do with the original issue; anybody contributing to the issue is making up
user needs that have not been sufficiently demonstrated.
It would be best to release
Michael Foord mich...@voidspace.org.uk added the comment:
FWIW I think nose2 is going to have test load time parameterized tests rather
than run time parameterized tests, which is what I think we should do for
unit test. The API should be as simple as possible for basic cases, but
suitable
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
stage: - test needed
type: - enhancement
versions: +Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14026
Eli Bendersky eli...@gmail.com added the comment:
Emitting a deprecation warning on importing cElementTree has been rejected in
the pydev list. The other remaining tasks have new issues on them, so this
issue is done now.
--
___
Python tracker
Eli Bendersky eli...@gmail.com added the comment:
Éric, indeed it clarifies the usage, but my concern is that it also moves the
first mention of the module further down.
There's no real reason for someone using CPython 2.7 or 3.2 *not* to use cET.
So, some mention should appear in the opening
Eli Bendersky eli...@gmail.com added the comment:
Also, I must add that I absolutely hate the opening paragraph of the
documentation in this module. Once 14006 is implemented, parts of it should be
backported to 2.7 and 3.2
That would be an orthogonal change to what we're discussion here,
Changes by Eli Bendersky eli...@gmail.com:
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14023
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
+1. Barring other feedback, I will commit your patch.
Also, I must add that I absolutely hate the opening paragraph of the
documentation in this module.
This:
The :class:`Element` type is a flexible container object, designed to store
Eli Bendersky eli...@gmail.com added the comment:
If you want to collect additional feedback, you may want to add some other
people to the Nosy list :-) Alternatively, since it's a small doc change you
can just commit it and it can be fixed later if someone strongly objects.
This:
The
Meador Inge mead...@gmail.com added the comment:
Stefan, how did you reproduce this? I tried:
1. Uncommenting '#define Py_USING_MEMORY_DEBUGGER' in
'Objects/obmalloc.c'.
2. Configuring with './configure --without-pymalloc'.
3. Running 'valgrind --tool=memcheck --log-file=leaks.txt
Meador Inge mead...@gmail.com added the comment:
When I try to build with the attached patch on the 2.7 branch many (if not all)
of the modules fail to build:
Failed to build these modules:
_bisect_bsddb _codecs_cn
_codecs_hk _codecs_iso2022_codecs_jp
Changes by Meador Inge mead...@gmail.com:
--
nosy: +meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13959
___
___
Python-bugs-list
Changes by Meador Inge mead...@gmail.com:
--
nosy: +meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13977
___
___
Python-bugs-list
Changes by Meador Inge mead...@gmail.com:
--
nosy: +meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13970
___
___
Python-bugs-list
Changes by Meador Inge mead...@gmail.com:
--
nosy: +meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13938
___
___
Python-bugs-list
New submission from 勇刚 罗 luoyongg...@gmail.com:
Patch attaced.
--
assignee: tarek
components: Distutils2
files: pysetup.bat
messages: 153460
nosy: alexis, eric.araujo, tarek, 勇刚.罗
priority: normal
severity: normal
status: open
title: distutils2 lack of pysetup.bat
versions: Python 2.6,
Ethan Furman et...@stoneleaf.us added the comment:
Remaining problems:
- default sys.excepthook implementation currently does the wrong thing
Unable to duplicate on my system (Win XP SP3)
- needs a test for the pythonrun display logic (test_cmd_line_script
would be the appropriate place)
Petri Lehtinen pe...@digip.org added the comment:
Ok, closing because of lack of support for the idea.
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13972
Warren Turkal w...@penguintechs.org added the comment:
Using argparse.REMAINDER will not help for my problem in my real program as the
first arg needs to be handled by my program and mapped into the real binary
name.
If I recall correctly from memory, the following is what happened when I
New submission from Gregory P. Smith g...@krypto.org:
Using a 32-bit Python 2.6.5 on a Linux system at work we observed the following:
File /.../lib/python2.6/tempfile.py, line 349, in mktemp
name = names.next()
File /.../lib/python2.6/tempfile.py, line 134, in next
letters =
85 matches
Mail list logo