patrick vrijlandt patrick.vrijla...@gmail.com added the comment:
Good solution. +1 for closing.
Patrick
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13779
___
Charles-François Natali neolo...@free.fr added the comment:
File
/var/tmpfs/martin.vonloewis/3.x.loewis-parallel2/build/Lib/test/test_zlib.py,
line 96 in test_big_buffer
The SIGBUS could be due to the buildbot running out of tmpfs.
--
nosy: +neologix
Giovanni Funchal gafunc...@gmail.com added the comment:
This bug affects me, found it when migrating from 2.7 to 3.2, in a function
calling traceback.print_exc() called while there were no active exception
being handled. Previous behavior was to print None.
--
nosy: +Giovanni.Funchal
Stefan Behnel sco...@users.sourceforge.net added the comment:
I wonder if these functions should have an error return value, i.e. return -1
on failure. They'd never fail in CPython, but other implementations may want
to report failures, in case their internal implementation is more involved.
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Éric Araujo mer...@netwok.org added the comment:
I did not fully get what you meant here, but the example you added to the doc
made it clear. Is this covered by tests?
Yes, I believe that testSyntaxSplitCustom covers this.
Overall great
New submission from Stepan Kasal ka...@ucw.cz:
When a file inside a zip is open, the underlying zip file is open again.
(Unless the file name is unknown, because the ZipFile object was created with
fp only.)
This design is incorrect, insecure, and ineffective:
- the reopen uses the same string
Changes by Matej Cepl mc...@redhat.com:
--
nosy: +mcepl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14099
___
___
Python-bugs-list mailing list
sbt shibt...@gmail.com added the comment:
I get a segfault with
Python 3.3.0a0 (default:31784350f849, Feb 23 2012, 11:07:41)
[GCC 4.5.2] on linux
Type help, copyright, credits or license for more information.
d = {'__qualname__':'XXX'}
T = type('foo', (), d)
d
Segmentation
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset f3f3bb45205b by Nadeem Vawda in branch 'default':
Issue #13873: Fix crash in test_zlib on bigmem buildbot.
http://hg.python.org/cpython/rev/f3f3bb45205b
--
nosy: +python-dev
Massimo Paladin massimo.pala...@gmail.com added the comment:
Will follow it.
Thanks,
-Massimo
--
resolution: - works for me
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14091
Nadeem Vawda nadeem.va...@gmail.com added the comment:
The SIGBUS could be due to the buildbot running out of tmpfs.
I haven't been able to reproduce the crash by running the test on a tmpfs
on my own machine (Ubuntu AMD64; 8GB RAM; Linux 3.0.0-15-generic; zlib
1:1.2.3.4.dfsg-3ubuntu3), but
sbt shibt...@gmail.com added the comment:
Patch which just copies the implementation from threading.
--
keywords: +patch
Added file: http://bugs.python.org/file24611/cond_wait_for.patch
___
Python tracker rep...@bugs.python.org
Dan Christian robo...@users.sourceforge.net added the comment:
I haven't been following this much. Sorry. My day job isn't in this area any
more (and I'm stuck using 2.4 :-().
Looking at the docs, I notice the old is different from what it used to be.
Notably: 'e;' gets split into two
New submission from Tshepang Lekhonkhobe tshep...@gmail.com:
I wonder if this note was hidden deliberately.
--
assignee: docs@python
components: Documentation
files: make-note-visible.patch
keywords: patch
messages: 154065
nosy: docs@python, tshepang
priority: normal
severity: normal
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +haypo, pitrou
stage: - patch review
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14100
___
Jesús Cea Avión j...@jcea.es added the comment:
Jürgen, would you consider writing a patch?
--
nosy: +jcea
versions: +Python 3.3 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2209
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
title: expose a note a hidden note - expose a hidden note
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14100
___
Stefan Behnel sco...@users.sourceforge.net added the comment:
Writing up a test case, I noticed that it makes sense to let PyErr_SetExcInfo()
steal the references. This matches the main use case of saving and restoring
the fields. For the getter, it's still best to return new references in
Antoine Pitrou pit...@free.fr added the comment:
Well, presumably the XXX tells you why it's hidden.
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14100
___
Changes by Stefan Behnel sco...@users.sourceforge.net:
--
keywords: +patch
Added file: http://bugs.python.org/file24613/exc_info_capi.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14098
Changes by Meador Inge mead...@gmail.com:
--
nosy: +meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14095
___
___
Python-bugs-list
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10848
___
___
Brett Cannon br...@python.org added the comment:
On Wed, Feb 22, 2012 at 19:35, Éric Araujo rep...@bugs.python.org wrote:
I have already done that and pushed the initial change. The ultimate goal
will be fetching from sys.modules when level == 0 and not bool(fromlist)
only touch C code. All
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Shall I commit the new file or first add more tests?
Might as well commit now; there's no sense in leaving the code sitting
around just because the file feels a bit short.
A couple of minor nits about your patch, though:
- The docstring
Brett Cannon br...@python.org added the comment:
That last comment from me looks odd because somewhere along the way my replies
to Éric's comment got stripped out.
First two paragraphs are in response to 1)
Third paragraph is for 2)
Fourth paragraph is for 3)
Rest makes sense since the inline
sbt shibt...@gmail.com added the comment:
Patch which subclasses threading.Barrier.
--
keywords: +patch
Added file: http://bugs.python.org/file24614/mp_barrier.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14059
Changes by Peter p.j.a.c...@googlemail.com:
--
nosy: +maubp
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11438
___
___
Python-bugs-list mailing
Changes by Stefan Krah stefan-use...@bytereef.org:
Added file: http://bugs.python.org/file24615/40917e4b51aa.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7652
___
Antoine Pitrou pit...@free.fr added the comment:
Here is a patch.
(I can't reproduce the crash, btw)
--
keywords: +patch
stage: - patch review
Added file: http://bugs.python.org/file24616/qualname_dict.patch
___
Python tracker rep...@bugs.python.org
Stefan Krah stefan-use...@bytereef.org added the comment:
Over the last two months I've done a full review of all files except
_decimal.c and mpdecimal.c.
I now have additional ACL2 proofs for a couple of functions in basearith.c
(some are partial proofs), a full proof for the special case (d =
Antoine Pitrou pit...@free.fr added the comment:
Agreed with Victor, this is not really doable currently.
Besides, you can't really have several interpreter instances simultaneously,
you can have several sub-interpreters, which isn't exactly the same thing
(sub-interpreters share some stuff, I
Stepan Kasal ka...@ucw.cz added the comment:
Attached please find a patch that fixes this issue by reusing the original fp
from ZipFile object.
Two of the test cases attempted to read a file from a zip as soon as write()
was called. I believe that this is not correct usage: zip file is not
sbt shibt...@gmail.com added the comment:
Forgot to mention, mp_barrier.patch needs to be applied on top of
cond_wait_for.patch for Issue14087.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14059
Senthil Kumaran sent...@uthcode.com added the comment:
A couple of points to help summarize and to help come to a conclusion.
In the initial message, Stephen pointed out, it would be desirable to merely
encode spaces using percent encoding.
It seems to me that only in cases where a custom
Charles-François Natali neolo...@free.fr added the comment:
but maybe it's due to something specific about the configuration of the
buildbot
machine?
Maybe you didn't try with a large enough file. Here's a trial on my box:
$ df -h /tmp/
Filesystem Size Used Avail Use% Mounted on
Nadeem Vawda nadeem.va...@gmail.com added the comment:
Well, it turns out that when I tested it on my own machine, I actually
wasn't using a tmpfs - I misread the output of df and used /tmp¹ instead
of /run. Doing the test in /run does in fact give a bus error. Mea culpa.
¹ Apparently on my
Stephen Day stevv...@gmail.com added the comment:
While it's likely that adding a `quote`/`quote_plus` function paramater to
urlencode is the right solution, I want to ensure that the key point is
communicated clearly: encoding a space as a '+' is pathological, in that in the
common case, an
Meador Inge mead...@gmail.com added the comment:
I can reproduce the segfault on F16:
Python 3.3.0a0 (default:3828d93fd330, Feb 23 2012, 13:49:57)
[GCC 4.4.6] on linux
Type help, copyright, credits or license for more information.
d = {'__qualname__':'XXX'}
[66934 refs]
T = type('foo', (),
New submission from Zbyszek Szmek zbys...@in.waw.pl:
Indentation is broken.
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c
--- a/Modules/itertoolsmodule.c
+++ b/Modules/itertoolsmodule.c
@@ -3221,10 +3221,10 @@
Return a count object whose .__next__() method returns
STINNER Victor victor.stin...@gmail.com added the comment:
Here is a patch.
Oh, I also wrote a patch :-) My patch fixes this issue but also many memory
leaks in error cases.
(I can't reproduce the crash, btw)
I can reproduce the crash, but only with Python compiled in release mode (not
Meador Inge mead...@gmail.com added the comment:
haypo, I can reproduce the segfault using the 'None' test case on your patch as
well.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14095
STINNER Victor victor.stin...@gmail.com added the comment:
I'm okay with leaving the tests as they are in 3.3. Any objections?
Nope, it's fine.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13873
STINNER Victor victor.stin...@gmail.com added the comment:
Will follow it.
If you report the issue to abrt, could you give me the url to your report
please? (as a comment to this issue)
--
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@gmail.com added the comment:
I merged the two patches (qualname_dict.patch and type_new.patch) and added a
fix for non-string __qualname__ = type_new-2.patch.
--
Added file: http://bugs.python.org/file24620/type_new-2.patch
New submission from Daniel Walsh rhat...@gmail.com:
I have developed a new tool virt-sandbox-service using argparse. Currently the
argparse has the ability to print help and usage. Being naturally lazy, I
think it should be able to print out a man page also. This would help with
New submission from Daniel Walsh rhat...@gmail.com:
I have developed a new tool virt-sandbox-service using argparse. Currently the
argparse has the ability to print help and usage. Being naturally lazy, I
think it should be able to generate a bash_completion script also.
--
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13866
___
___
Python-bugs-list
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
some of theses are great suggestions. I'll do an update shortly.
--
assignee: docs@python - rhettinger
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
Changes by Dave Malcolm dmalc...@redhat.com:
--
components: +Library (Lib)
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14103
___
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13703
___
___
Python-bugs-list
Charles-François Natali neolo...@free.fr added the comment:
In test/test_multiprocessing.py:
def test_waitfor(self):
[...]
with cond:
result = cond.wait_for(lambda : state.value==0)
self.assertTrue(result)
self.assertEqual(state.value, 0)
Martin v. Löwis mar...@v.loewis.de added the comment:
(This is just a report about PyPy's situation; I understand that the
situation in CPython is a bit more delicate if CPython is embedded in
a larger process.)
I think that would indeed be unacceptable for Python - there is a
long-standing
New submission from STINNER Victor victor.stin...@gmail.com:
time.monotonic() can use mach_absolute_time() on Mac OS X. mach_timebase_info()
may be used to convert the result to a number of seconds. Examples:
https://github.com/ThomasHabets/monotonic_clock/blob/master/src/monotonic_mach.c
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 50b1f2d07011 by Victor Stinner in branch 'default':
Issue #13846: Enhance time.monotonic() documentation
http://hg.python.org/cpython/rev/50b1f2d07011
--
___
Python
STINNER Victor victor.stin...@gmail.com added the comment:
Boost has a monotonic time implementation (steady_clock) for OS X
I opened a new issue for Mac OS X: #14104.
--
@Éric: I enhanced the doc. Feel free to complete or rewrite it if you have
better information about such clocks.
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +ned.deily, ronaldoussoren
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14104
___
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset f89e2f4cda88 by Victor Stinner in branch 'default':
Issue #13706: Fix format(int, n) for locale with non-ASCII thousands separator
http://hg.python.org/cpython/rev/f89e2f4cda88
--
Stefan Krah stefan-use...@bytereef.org added the comment:
The ps_AF locale fails with an assert after the latest commit:
Python 3.3.0a0 (default:f89e2f4cda88+, Feb 24 2012, 01:14:50)
[GCC 4.4.3] on linux
Type help, copyright, credits or license for more information.
import locale
[67103
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset a29d20fa85b4 by Victor Stinner in branch 'default':
Issue #13706: Fix format(float, n) for locale with non-ASCII decimal point
(e.g. ps_aF)
http://hg.python.org/cpython/rev/a29d20fa85b4
--
STINNER Victor victor.stin...@gmail.com added the comment:
The ps_AF locale fails with an assert after the latest commit:
...
format(13232434234.23423, n)
python: Python/formatter_unicode.c:606: fill_number:
Assertion `r == spec-n_grouped_digits' failed.
Aborted
Oh, you found a locale
Larry A. Taylor larry.tay...@bankofamerica.com added the comment:
I have had this happen to me many times with Windows XP, the standard OS here.
Using IDLE and Python 2.7.
Some of the time the following applies: I have more than one Python Shell open
at the same time. The first Python
Brett Cannon br...@python.org added the comment:
OK, so I have now streamlined the case so that only C is called when a module
is in sys.modules, level == 0 and not fromlist.
Using the normal_startup benchmark, bootstrapped importlib is 1.12x slower. A
fast run of startup_nosite puts it at
New submission from Larry A. Taylor larry.tay...@bankofamerica.com:
My environment is Windows XP, using IDLE and Python 2.7 distribution.
Open an IDLE Python shell. Open the file with three lines in it, 1,2 and 3.
In IDLE, Set Breakpoint on Line 2.
In Shell, set Debug.
In IDLE, select run.
Terry J. Reedy tjre...@udel.edu added the comment:
Some changes have been made to the subprocess connection code since my last
message here. I believe they occurred after the last releases. There should be
new 2.7.3 and 3.2.3 releases in about a month, after PyCon. Larry, if you can
Brett Cannon br...@python.org added the comment:
So I finished rewriting _return_module() so that if fromlist is not defined
then it's all in C (and subsequently naming the function _handle_fromlist()).
That leaves rewriting in C _calc___package__() and _resolve_name(). After that
I don't
Éric Araujo mer...@netwok.org added the comment:
All tests now use regrtest resources and/or unittest skips and/or
test.support.transient_internet. I ran the faulty tests mentioned in this
report while disconnected and got no failure, only skips. Closing as
duplicate/out of date.
Éric Araujo mer...@netwok.org added the comment:
I wonder if the doc for sys.executable should mention that .. segments may be
present.
--
nosy: +eric.araujo, petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14088
Éric Araujo mer...@netwok.org added the comment:
Agreed with Antoine. If you want, you can make a patch for the PEPs repo with
the info requested by the XXX note, then a patch to replace that note by a link
to the PEP, unless Martin wanted to do that himself.
--
nosy: +eric.araujo
Éric Araujo mer...@netwok.org added the comment:
Thanks for the report and patch. I’m afraid changing the constructor signature
is not an option, due to our backward compatibility policy. Do you think the
bug can be fixed without changing the signature, or with new arguments added
after the
Éric Araujo mer...@netwok.org added the comment:
Patch LGTM. Raymond, any objection?
--
components: +Extension Modules -Documentation, Library (Lib)
nosy: +eric.araujo, rhettinger
stage: - patch review
title: example function in tertools.count is misindented - example function in
Éric Araujo mer...@netwok.org added the comment:
Are you aware of help2man? It can transmogrify the output of
“your-program-that-uses-argparse --help” to a man page. Another solution is to
use docutils’ rst2man to convert some documentation file to the man format.
On the other hand, this
Éric Araujo mer...@netwok.org added the comment:
Forgot the link to the blog post:
https://andialbrecht.wordpress.com/2009/03/17/creating-a-man-page-with-distutils-and-optparse/
--
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
There is a module that implements this for optparse:
https://hg.furius.ca/public/optcomplete/; I contacted the author when
argparse was moved to the standard library and he told me that he would like to
support argparse but had to time to code
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14103
___
___
Éric Araujo mer...@netwok.org added the comment:
Here’s a patch by Georg for the unix install machinery:
http://mail.python.org/pipermail/python-dev/2006-July/067261.html
--
versions: +Python 3.3 -Python 3.2
___
Python tracker rep...@bugs.python.org
Adam Venturella aventure...@gmail.com added the comment:
I too just found the same issue, dunno if it was settled on as being a bug per
se.
class object(object): pass
Also worked for me. I don't feel great about doing that though. So I opted for
more verbose name as not to collide with
Ezio Melotti ezio.melo...@gmail.com added the comment:
The attached patch addresses 8) -- you might want to use it as a starting point
(that's what I was going to fix before deciding to do a full review of the
page).
--
assignee: rhettinger - docs@python
keywords: +patch
Added file:
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
Thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14097
___
___
Éric Araujo mer...@netwok.org added the comment:
Thanks for testing and confirming that this code never worked. I am now
confident that we’re about to fix once and for all this basket of bugs in the
correct way.
I updated the tests to make them hopefully pass on Windows, and while doing
Éric Araujo mer...@netwok.org added the comment:
Escalated to release blocker, as bugfix releases are about to go out of the
door and I’d prefer they weren’t published with the buggy fixes committed for
#13193.
--
nosy: +benjamin.peterson, georg.brandl
priority: normal - release
Éric Araujo mer...@netwok.org added the comment:
I intend to commit this simple fix for all branches:
-_UNPACK_FORMATS['bztar'] = (['.bz2'], _unpack_tarfile, [],
+_UNPACK_FORMATS['bztar'] = (['.tar.bz2'], _unpack_tarfile, [],
I could write a unit test, but it would be coupled to the
81 matches
Mail list logo