anatoly techtonik techto...@gmail.com added the comment:
Nevermind about #6040 - I just used the same technique to provide a workaround
and then remembered I've seen this recipe on StackOverflow.
To me types is the right place, because that's exactly where are you sent from
the docs of new
anatoly techtonik techto...@gmail.com added the comment:
What for? IIUC, it won't be fixed in distutils anyway.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6040
___
Changes by Lars Gustäbel l...@gustaebel.de:
--
assignee: - lars.gustaebel
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11787
___
___
Georg Brandl ge...@python.org added the comment:
When we do document types, their constructors and methods should also be
documented. This is a valid request.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
New submission from Boštjan Mejak bostjan.me...@gmail.com:
Please see http://docs.python.org/py3k/library/argparse.html#module-argparse
and read the first sentence which goes...
The argparse module makes it easy to write user friendly command line
interfaces.
Please fix this to...
The
Menno Smits me...@freshfoo.com added the comment:
Thanks to everyone for the explanations.
I was hoping for behaviour along the lines of Python 2 (certainly not
artificially blocking more cases in the name of consistency) but it doesn't
look like that's going to happen. I think this is one
New submission from Filip Gruszczyński grusz...@gmail.com:
In argparse documentation parametres of add_subparsers are not listed. And yet
there are some really useful parametres like parser_class. It would be useful,
it they were described there well and one wouldn't have to look into the code
Changes by Filip Gruszczyński grusz...@gmail.com:
--
nosy: +bethard
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11807
___
___
Python-bugs-list
Nick Coghlan ncogh...@gmail.com added the comment:
+1 for clarifying the comments. Adding comments for the apparently unused
fields (as per my last tracker comment) would be good, too.
--
___
Python tracker rep...@bugs.python.org
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
On Fri, Apr 08, 2011 at 09:03:51PM +, Torsten Becker wrote:
I was about to look into this over the weekend, but of course I don't
want to steal your fun, Steffen. :)
Toll, toll, toll!!
Still cherry blossom, thanks to the
Michael Foord mich...@voidspace.org.uk added the comment:
Thanks for the patch Andreas. On a quick read through it looks good. I'll do a
proper review shortly.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11770
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
On Fri, Apr 08, 2011 at 11:39:36PM +, Terry J. Reedy wrote:
1. What is a minimal msgdata that gives the same error; post it.
Stepping a bit.. Remove 'Content-Type' header field and this does
not crash. Thus the real
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
Ping!
Note that whatever reason caused jesstess, to name a few,
to drop that loop (and the continue), Charles-Francois posted
a correctly working patch!
I have no idea why such a severe bug could sleep in code which is
executed for
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
..
So here is the rewritten .yeah-2.diff.
..
I added more tests (i'm absolutely convinced that the tests i've
found in test_mailbox.py really find all the cutting edges ;).
On my box this is clean.
Haha, now this is *very*
Changes by Éric Araujo mer...@netwok.org:
Removed file: http://bugs.python.org/file21585/filecmp-lru-cache-2.7.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11802
___
Éric Araujo mer...@netwok.org added the comment:
Why use an ordered dict instead of functools.lru_cache?
--
versions: +Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11802
___
Éric Araujo mer...@netwok.org added the comment:
Well, this is the bug tracker for the stdlib. We have first to define clearly
what the bug is, then find how to fix it in packaging (the name of distutils2
merged into 3.3), then decide whether to backport it to distutils. Half-tested
recipes
Éric Araujo mer...@netwok.org added the comment:
What’s the syntax described in the docs?
package_data =
mypackage = templates/*.html static/css/*.css
or
package_data =
mypackage = templates/*.html
mypackage = static/css/*.css
?
On a related subject, I think the new
Roundup Robot devnull@devnull added the comment:
New changeset f343ac51 by Victor Stinner in branch '3.1':
Issue #11650: PyOS_StdioReadline() retries fgets() if it was interrupted
http://hg.python.org/cpython/rev/f343ac51
New changeset fc2f251e660a by Victor Stinner in branch '3.2':
Roundup Robot devnull@devnull added the comment:
New changeset 7febd5ef7619 by Victor Stinner in branch '2.7':
(Merge 3.1) Issue #11650: PyOS_StdioReadline() retries fgets() if it was
http://hg.python.org/cpython/rev/7febd5ef7619
--
___
Python
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
Merci, STINNER Victor!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11650
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
I emulated Mac OS X behaviour on Linux by hacking my_fgets(): do { p=NULL;
errno = EINTR; }, only after the first call to fgets(). Without the patch,
Python does exit immediatly. With the patch, Python doesn't exit.
I applied
Davide Rizzo sor...@gmail.com added the comment:
Victor, I have neither OS X nor Linux available right now, but if I remember
correctly the same happens on both systems when programs call input() (but not
from the REPL). See also my previous message with python -c tests and my
second remark.
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Because the lru_cache decorator doesn't provide any way to invalidate
stale cache entries.
Perhaps I should factor out the duplicated code into a separate class
that can then also be exposed to users of the stdlib. But that would only
apply
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com:
Hello Mac OS X gurus, if i
else
DEBUG='--with-pydebug'
echo Using --with-pydebug
fi
./configure --prefix=$HOME/usr/opt/$PREFIX $DEBUG
make -j2 all
i get this
/usr/bin/gcc -c -fno-strict-aliasing -g -O0 -Wall
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
P.S.: this does not happen if i use
./configure --prefix=$HOME/usr/opt/$PREFIX $DEBUG
MACOSX_DEPLOYMENT_TARGET=10.6
--
___
Python tracker rep...@bugs.python.org
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
The problem goes away if i comment out all
the Mercurial queries in Makefile:
HGVERSION= #hg id -i $(srcdir)
HGTAG= #hg id -t $(srcdir)
HGBRANCH= #hg id -b $(srcdir)
--
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
I question whether this should be backported. Please discuss with the RM.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11802
Ned Deily n...@acm.org added the comment:
Thanks for the report. This is another case of the problem described in
Issue9516, in particular msg130666 except now it is hg invoking another Python
during the build process. The sysconfig part of the patch for Issue9516
applied to the build
anatoly techtonik techto...@gmail.com added the comment:
Feel free to copy this report for a clear user story -
http://twistedmatrix.com/trac/ticket/5024
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6040
Nadeem Vawda nadeem.va...@gmail.com added the comment:
I question whether this should be backported. Please discuss with the RM.
Will do. Are you referring specifically to 2.7, or to 3.1 and 3.2 as well?
--
___
Python tracker
Ross Lagerwall rosslagerw...@gmail.com added the comment:
OS X filesystem does not support seeking ahead to create sparse files.
The test is supposed to skip the LargeMmapTests on OS X and Windows with (line
679 of test_mmap.py):
if sys.platform[:3] == 'win' or sys.platform == 'darwin':
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
Georg, would you opine on whether this should to into 3.2.1?
--
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11707
Antoine Pitrou pit...@free.fr added the comment:
Well, buildbots run tests with -uall, so the largefile resource gets
enabled.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11779
Erik Bray erik.m.b...@gmail.com added the comment:
As far as I've been able to tell there is no proposed syntax in the docs
specifically for package_data. The docs for the resources option seems to
suggest separating globs with spaces, which would be fine by me (wouldn't allow
paths that
Charles-Francois Natali neolo...@free.fr added the comment:
Oh, I didn't know. In this case, is my commit 3664fc29e867 correct? I
think that it is, because without the patch, subprocess may call poll()
with a negative timeout, and so it is no more a timeout at all.
Yes, it looks correct.
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
On Sat, Apr 09, 2011 at 02:18:01PM +, STINNER Victor wrote:
I noticied a strange behaviour:
So forget all this girlie s...!
Here is a real man's patch!!
You'll notice mysterious function calls with a Py prefix -
they're
Roundup Robot devnull@devnull added the comment:
New changeset d4730f14b6c0 by Ross Lagerwall in branch '3.1':
Issue #11719: Fix message about unexpected test_msilib skip.
http://hg.python.org/cpython/rev/d4730f14b6c0
New changeset 8b146103d29e by Ross Lagerwall in branch '2.7':
Issue #11719:
Ross Lagerwall rosslagerw...@gmail.com added the comment:
Thanks for the patch.
--
assignee: - rosslagerwall
nosy: +rosslagerwall
resolution: - fixed
stage: - committed/rejected
status: open - closed
versions: +Python 2.7, Python 3.1, Python 3.2
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
On Sat, Apr 09, 2011 at 11:56:16AM +, Steffen Daode Nurpmeso wrote:
I'll try to instrument the path a bit ..
Sorry, no time today. All the stuff next week.
Nice weekend.
--
___
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com:
The file http://bugs.python.org/file21593/11650.termios.diff
cannot be parsed, i guess it's due to ^D, ^Z, ^\ and ^C being
embedded as ASCII control characters.
Maybe this is a feature, though.
Then someone should close this.
Georg Brandl ge...@python.org added the comment:
This should go to the meta-tracker,
http://psf.upfronthosting.co.za/roundup/meta/.
--
nosy: +georg.brandl
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
Georg Brandl ge...@python.org added the comment:
I would have to say that this looks hardly a trivial speed patch, and chances
are we cannot guarantee 100% behavior compatibility with the pure-Python
version.
If you disagree with these two points, then I'm okay with it going in.
--
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
I agree (and was going back and forth between +0 and -0).
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11707
Roundup Robot devnull@devnull added the comment:
New changeset b0d2b696da19 by Ned Deily in branch '2.7':
Issue #9670: Increase the default stack size for secondary threads on
http://hg.python.org/cpython/rev/b0d2b696da19
New changeset 378b40d71175 by Ned Deily in branch '3.1':
Issue #9670:
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
[Uncle Timmy]
Would have to look at the history to see who added it, and ask them.
That would be me :-)
At the time, the goals were to:
1) make an easy-to-use, readable output format for file comparisons,
2) use the
Ned Deily n...@acm.org added the comment:
Applied in 2.7 (for release in 2.7.2), 3.1 (for 3.1.4). 3.2 (for 3.2.1), and
default (for 3.3).
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker
Ned Deily n...@acm.org added the comment:
Looks like the patch breaks the OpenIndiana buildbots:
http://www.python.org/dev/buildbot/all/builders/x86%20OpenIndiana%203.2/builds/168
--
resolution: fixed -
status: closed - open
___
Python tracker
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
priority: normal - low
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11747
___
Terry J. Reedy tjre...@udel.edu added the comment:
Thanks, Raymond. That file says (in the -u section) If a range is empty, its
beginning line number shall be the number of the line just before the range, or
0 if the empty range starts the file. The last clause says to me that gnu diff
is
New submission from Emile Heitor i...@netbsd.org:
This issue http://bugs.python.org/issue8852 seems to happen again since python
2.6.6. Same cause, same consequences. Patching Modules/socketmodule.h with the
following fixes it:
--- Modules/socketmodule.h.orig 2010-05-09 15:15:40.0
Torsten Becker torsten.bec...@gmail.com added the comment:
Have a nice weekend!
Thank you for the wishes, I hope yours is going well, too!
I added IDNA awareness to formataddr() and parseaddr(), updated the docs and
wrote 2 tests for it.
I wasn't sure if the IDNA awareness should be
New submission from Paul Wouters p...@xelerance.com:
ssl.get_server_certificate() does not work for IPv6 addresses:
ssl.get_server_certificate( (2001:888:2003:1004:c2ff:eeff:fe00:133,443))
Traceback (most recent call last):
File stdin, line 1, in module
File /usr/lib64/python2.7/ssl.py,
Antoine Pitrou pit...@free.fr added the comment:
It has been fixed in 2.7.x, not 2.6.x (which is in security fixes-only mode).
Can you try with 2.7.1?
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11810
Antoine Pitrou pit...@free.fr added the comment:
Confirmed. In the meantime, you can connect manually using
socket.create_connection():
import ssl, socket
conn = socket.create_connection((2001:888:2003:1004:c2ff:eeff:fe00:133,
443))
sock = ssl.wrap_socket(conn)
Emile Heitor i...@netbsd.org added the comment:
Actually, python 2.6 is the default version in pkgsrc
(http://www.netbsd.org/docs/software/packages.html), and the reason why i'm
pulling up this bug is that python 2.6 failure on SunOS brings down more than
3000 packages :/ Nevertheless, i'll
Changes by Antoine Pitrou pit...@free.fr:
--
components: +Library (Lib)
keywords: +easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11811
___
Antoine Pitrou pit...@free.fr added the comment:
Actually, python 2.6 is the default version in pkgsrc
(http://www.netbsd.org/docs/software/packages.html), and the reason
why i'm pulling up this bug is that python 2.6 failure on SunOS brings
down more than 3000 packages :/ Nevertheless, i'll
Roundup Robot devnull@devnull added the comment:
New changeset 3982be773b54 by Antoine Pitrou in branch 'default':
Issue #11757: select.select() now raises ValueError when a negative timeout
http://hg.python.org/cpython/rev/3982be773b54
--
___
Python
Emile Heitor i...@netbsd.org added the comment:
Well, pkgsrc is an independent, portable sources-based packaging system which
provides a complete set of packages for many architectures. Python is provided
as a package per-se, and we do not yet have the ability to fallback to native
python
New submission from Antoine Pitrou pit...@free.fr:
http://www.python.org/dev/buildbot/all/builders/x86%20Windows7%203.x/builds/2920/steps/test/logs/stdio
test test_telnetlib failed -- Traceback (most recent call last):
File
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11810
___
Roundup Robot devnull@devnull added the comment:
New changeset 42d5001e5845 by Ned Deily in branch '3.1':
Issue9670: Back out changeset 378b40d71175; test fails on other platforms
http://hg.python.org/cpython/rev/42d5001e5845
New changeset 54edabf2846d by Ned Deily in branch '3.2':
Issue9670:
Ned Deily n...@acm.org added the comment:
Reverting the patch since it caused failures on failure on some other platform
buildbots (for instance, Gentoo and OpenIndiana). It also fails on OS X
buildbots with pydebug enabled, something I hadn't tested:
New submission from Andreas Stührk andy-pyt...@hammerhartes.de:
My patch for issue #11133 introduced a regression: it is no longer possible to
get attributes of modules. That is because modules use tp_dictoffset (at C
level). The instance __dict__ is exposed to Python code using a
New submission from Antoine Pitrou pit...@free.fr:
There's the following code in pool.py, line 494 and following:
debug('joining task handler')
task_handler.join()
debug('joining result handler')
task_handler.join()
It seems the last line should read
Andreas Stührk andy-pyt...@hammerhartes.de added the comment:
See issue #11813 for the module problem.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11770
___
Changes by Jack Diederich jackd...@gmail.com:
--
nosy: +jackdied
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11812
___
___
Python-bugs-list
New submission from Antoine Pitrou pit...@free.fr:
Queue.get(block=True) cannot raise EmptyError, meaning there's some dead code
that we can remove.
--
components: Library (Lib)
files: cfsimplify.patch
keywords: patch
messages: 133435
nosy: bquinlan, pitrou
priority: normal
severity:
Antoine Pitrou pit...@free.fr added the comment:
A further optimization would be to use a SimpleQueue (from
multiprocessing.queues) for the result_queue in the ProcessPoolExecutor. A
SimpleQueue is much more light-weight than a normal Queue, which has a bunch of
additional locks and a
Changes by Michael Foord mich...@voidspace.org.uk:
--
nosy: +michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11796
___
___
New submission from Eugene Toder elto...@gmail.com:
As discussed in Issue11549 a couple of tests need to inspect disassembly of
some code. Currently they have to override sys.stdout, run dis and restore
stdout back. It would be much nicer if dis module provided functions that
return
Changes by Eugene Toder elto...@gmail.com:
Removed file: http://bugs.python.org/file21598/dis.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
Changes by Eugene Toder elto...@gmail.com:
Added file: http://bugs.python.org/file21599/dis.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
Changes by Eugene Toder elto...@gmail.com:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
___
Python-bugs-list mailing
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
Inspecting the text disassembly is a bit fragile for testing. It would be
better to scan a list of (opcode, oparg) pairs for given pattern (i.e.
(LOAD_CONST, 3) where consts[3] -- some target value).
--
nosy:
Eugene Toder elto...@gmail.com added the comment:
Agreed, but that would require rewriting of all tests in test_peepholer.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
Eugene Toder elto...@gmail.com added the comment:
This patch fixes the problem by moving the check from object_new to
PyType_GenericAlloc. The check is very cheap, so this should not be an issue.
--
keywords: +patch
nosy: +eltoder
Added file: http://bugs.python.org/file21600/abc.patch
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
Yep!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11816
___
___
New submission from Per Øyvind Karlsen peroyv...@mandriva.org:
This patch adds support for berkeley db = 5.1.
--
components: Extension Modules
files: Python-2.7.1-berkeley-db-5.1.patch
keywords: patch
messages: 133442
nosy: proyvind
priority: normal
severity: normal
status: open
title:
Per Øyvind Karlsen peroyv...@mandriva.org added the comment:
forgot some additional config checks in setup.py in previous patch..
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11817
___
Per Øyvind Karlsen peroyv...@mandriva.org added the comment:
sloppysloppy...
fix previous patch
--
Added file: http://bugs.python.org/file21602/Python-2.7.1-berkeley-db-5.1.patch
___
Python tracker rep...@bugs.python.org
Changes by Eli Bendersky eli...@gmail.com:
--
stage: - needs patch
versions: +Python 3.3 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9904
___
Roundup Robot devnull@devnull added the comment:
New changeset b6fe63c914e4 by Eli Bendersky in branch 'default':
Issue #9904: fix and clarify some comments + fix indentation in symtable code
http://hg.python.org/cpython/rev/b6fe63c914e4
--
nosy: +python-dev
Eli Bendersky eli...@gmail.com added the comment:
I committed the fixes to 3.3 (see no reason to backport these). So unless there
are objections I will close the issue in a few days.
--
stage: needs patch - commit review
status: open - pending
___
Changes by Ned Deily n...@acm.org:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11817
___
___
Python-bugs-list mailing list
86 matches
Mail list logo