Charles-François Natali neolo...@free.fr added the comment:
Oops, for liunxthreads, you should of course read different PIDs, not same
PID.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6721
patrick vrijlandt patrick.vrijla...@gmail.com added the comment:
I agree. Please close the ticket.
Thanks,
Patrick
2011/5/3 Raymond Hettinger rep...@bugs.python.org
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
This line should be protected by acquiring the
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11987
___
New submission from Stefan Krah stefan-use...@bytereef.org:
I can reproduce this only with gcc-4.4.3, so it could also be
a compiler bug. Also, the segfault only occurs when python is
compiled with optimizations and run under valgrind.
hg up 2.7
make distclean
./configure
make
valgrind
STINNER Victor victor.stin...@haypocalc.com added the comment:
I can reproduce this only with gcc-4.4.3, so it could also be a compiler bug.
You should try to disable compiler optimization: pass -O0 to gcc. E.g. use
./configure --with-pydebug CFLAGS=-O0.
--
nosy: +haypo
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6721
___
___
New submission from STINNER Victor victor.stin...@haypocalc.com:
PydocUrlHandlerTest.test_url_requests() of test_doc checks search?key=pydoc
URL. This operation has to load all Python modules to get their documentation.
The problem is that loading all modules can have border effects with other
STINNER Victor victor.stin...@haypocalc.com added the comment:
By the way, it is NOT POSSIBLE TO UNLOAD modules implemented in C, even if
there is no more Python reference to the module.
--
___
Python tracker rep...@bugs.python.org
New submission from STINNER Victor victor.stin...@haypocalc.com:
py-bt is too much verbose, I'm unable to read it.
Example:
$ gdb -args ./python -c 'import time, threading;
threading.Thread(target=lambda:time.sleep(3)).start()'
...
[New Thread 0x769d9700 (LWP 17193)]
STINNER Victor victor.stin...@haypocalc.com added the comment:
I would also like a less verbose output for where, especially be able to hidden
the value of the globals argument of PyEval_EvalCodeEx.
Example of where output:
---
(gdb) where
#0 sem_wait () at
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Do you have a test scipt for us to reproduce the issues?
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11990
Daniel Evers derm...@googlemail.com added the comment:
Thanks for the tip. I added the unit test and uploaded my final patch (which
includes all changes).
Is it ok to remove the files I uploaded previously?
--
Added file: http://bugs.python.org/file21879/backlog0_complete.patch
Miquel Torres tob...@gmail.com added the comment:
I can confirm this but with Python 2.7.1 on Ubuntu 11.04 64bit
My code was working with a queue that was being fed a two-string tuple.
When i changed it to contain my custom Objects, it still worked correctly, but
the main program doesn't end
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com:
Yes, i really found a typo.
I'll send two patches, one with the typo fixed,
and one with the typo fixed and one for which
i've :setlocal tw=80:{gq}
--
assignee: docs@python
components: Documentation
messages: 135107
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
11997.1.diff only corrects the typo, 11997.2.diff does also
reformat. (Note that all of init.rst is hard to read on a 80
column terminal.)
--
keywords: +patch
Added file: http://bugs.python.org/file21880/11997.1.diff
New submission from STINNER Victor victor.stin...@haypocalc.com:
I'm working on signals, especially on pthread_sigmask(), and I'm trying to
understand test_signal failures.
test_signal fails if the _tkinter module is loaded, because _tkinter loads the
Tcl library which create a thread waiting
STINNER Victor victor.stin...@haypocalc.com added the comment:
See also #11998 for test_signal and _tkinter issue (test_pydoc + test_signal).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11995
Roundup Robot devnull@devnull added the comment:
New changeset 88dca05ed468 by Victor Stinner in branch 'default':
Issue #11998, issue #8407: workaround _tkinter issue in test_signal
http://hg.python.org/cpython/rev/88dca05ed468
--
nosy: +python-dev
STINNER Victor victor.stin...@haypocalc.com added the comment:
c) Skip the test if the _tkinter thread is present (...)
I opened issue #11998 for the problem with test_signal and the _tkinter module.
To get back green buildbots, I commited a workaround:
New changeset 88dca05ed468 by Victor
STINNER Victor victor.stin...@haypocalc.com added the comment:
As suggested by Antoine, here is a patch to call Tcl_Finalize() in test_signal.
You can call create a Tcl/Tk window, destroy it, call _tkinter._finalize(), and
then create a new Tcl/Tk window. But call _tkinter._finalize() crashes
Nick Coghlan ncogh...@gmail.com added the comment:
A quick eyeball of the test doesn't reveal anything obvious:
- if the subprocess is failing, it is doing so in such a way that it is still
returning a 0 error code and isn't writing anything to stdout (as those
assertions are before the check
anatoly techtonik techto...@gmail.com added the comment:
It's always a pleasure. ;)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11834
___
___
Nick Coghlan ncogh...@gmail.com added the comment:
Hmm, I probably should have revised the first half of my comment after I had
the thought about simple regex + random directory name being potentially
problematic. I don't think that theory really counts as obvious, though...
--
New submission from STINNER Victor victor.stin...@haypocalc.com:
test_mailbox fails sometimes on FreeBSD. Recent example on AMD FreeBSD 8.2 3.x:
---
[200/354] test_mailbox
test test_mailbox failed -- Traceback (most recent call last):
File
Roundup Robot devnull@devnull added the comment:
New changeset a5890ff5e3d5 by Victor Stinner in branch 'default':
Issue #8407: signal.pthread_sigmask() returns a set instead of a list
http://hg.python.org/cpython/rev/a5890ff5e3d5
--
___
Python
New submission from Nicolas Bareil n...@chdir.org:
When connecting to a SSL server, the certificate verification failed if
it has a subjectAltName extension without any dNSName entry inside: it
should fallback to the Common Name.
Example:
cert = conn.getpeercert()
cert
Roundup Robot devnull@devnull added the comment:
New changeset 9d5a50e5d8a2 by Ezio Melotti in branch '2.7':
#11982: fix json.loads('') to return u'' rather than ''.
http://hg.python.org/cpython/rev/9d5a50e5d8a2
--
nosy: +python-dev
___
Python
Ezio Melotti ezio.melo...@gmail.com added the comment:
Fixed, thanks for the report!
--
resolution: accepted - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11982
STINNER Victor victor.stin...@haypocalc.com added the comment:
pending_signals.patch: add pthread_kill(), sigpending() and sigwait() functions
with doc and tests.
I added many See also in the doc, e.g. os.kill() gives a link to
signal.pthread_kill().
Note: the patch renames also
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
title: test_signal cannot test blocked signals if _tkinter is loaded -
test_signal cannot test blocked signals if _tkinter is loaded; Tcl_Finalize()
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
Reopen, test_zlib fails with Python 2.7 on Windows:
==
ERROR: test_big_buffer (test.test_zlib.ChecksumBigBufferTestCase)
Roundup Robot devnull@devnull added the comment:
New changeset 1ef2a7319849 by Victor Stinner in branch '2.7':
Issue #11277: fix issue number in a test_zlib comment
http://hg.python.org/cpython/rev/1ef2a7319849
--
___
Python tracker
STINNER Victor victor.stin...@haypocalc.com added the comment:
x86 debian parallel 2.7, x86 Ubuntu Shared 2.7 and x86 Tiger 2.7 fail
with mmap.error('[Errno 12] Cannot allocate memory').
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
I think this relates #6896.
Maybe a two second resolution should be tried?
--
keywords: +patch
nosy: +sdaoden
Added file: http://bugs.python.org/file21884/11999.1.diff
___
Python
Changes by Senthil Kumaran sent...@uthcode.com:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10946
___
___
Python-bugs-list
Roundup Robot devnull@devnull added the comment:
New changeset d3bd384df8ca by Ezio Melotti in branch '2.7':
#11982: remove now unused function.
http://hg.python.org/cpython/rev/d3bd384df8ca
--
___
Python tracker rep...@bugs.python.org
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11999
___
___
Changes by Brian Curtin br...@python.org:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11834
___
___
Python-bugs-list
Peter Le Bek pe...@hyperplex.net added the comment:
distutils reuses whatever flags Python was built with, covered here:
http://bugs.python.org/issue1222585 (and here http://bugs.python.org/issue9031).
--
nosy: +vokoda
___
Python tracker
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
error: [Errno 12] Cannot allocate memory
@haypo: Well i told you i have no idea. These bots are 32 bit?
I'll attach 11277-27.3.diff which does @skipUnless(not 32 bit).
Note i'll test against _4G - does this work (on 32 bit and
Sébastien Sablé sa...@users.sourceforge.net added the comment:
Another reason why you should not force dlmalloc for all applications linked
with libpython is because dlmalloc is (by default) not thread safe, while the
system malloc is (generally) thread-safe. It is possible to define a
New submission from Glenn Ammons glenn.amm...@gmail.com:
The string format used in N-triples is very similar to that used in JSON (see
http://www.w3.org/TR/rdf-testcases/#ntrip_strings). It would be handy if
json.dumps could (optionally) follow the N-triples format. The differences are
1)
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Tue, May 3, 2011 at 12:05 PM, Mark Dickinson rep...@bugs.python.org wrote:
..
I was thinking of something like the rAssertAlmostEqual method in test_cmath.
This one is good. I wonder if it would be appropriate to move
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
components: +Library (Lib)
nosy: +ezio.melotti
versions: +Python 3.3 -Python 2.7, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12001
Éric Araujo mer...@netwok.org added the comment:
Could you update the docstring as well?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11985
___
Roundup Robot devnull@devnull added the comment:
New changeset affec521b330 by Ezio Melotti in branch '2.7':
#11985: update docstring of platform.python_implementation.
http://hg.python.org/cpython/rev/affec521b330
New changeset 7bf9d7ae6c94 by Ezio Melotti in branch '3.1':
#11985: update
Éric Araujo mer...@netwok.org added the comment:
Thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11985
___
___
Python-bugs-list mailing
Éric Araujo mer...@netwok.org added the comment:
To quote the initial message:
If it were desired to determine which file was newer using sub-second
values, perhaps that would make a reasonable change in distutils2,
but files created with a few microseconds would have to be considered
Éric Araujo mer...@netwok.org added the comment:
Closing as duplicate. Please join the discussion at #11340 if you have
feedback or a patch :)
--
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - test_distutils fails because of borked compress
Éric Araujo mer...@netwok.org added the comment:
Are you sure? This looks like #10367 (unsolved yet), not #9199 (fixed).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11970
___
Chris Rose off...@offby1.net added the comment:
No, not 100% sure, but my read of the 2.7 branch code certainly seemed to
suggest that it was fixed.
in distutil/commands/upload.py:
Line 193 gets the response unconditionally as 'r' from the http object
Line 201 uses 'r' to show the response.
Chris Rose off...@offby1.net added the comment:
... oh, except I'm an idiot, and I think I'm reading tip code there.
Yep, I'm an idiot.
Okay, but this is still a dupe of #10367
--
resolution: invalid - duplicate
___
Python tracker
Changes by Éric Araujo mer...@netwok.org:
--
stage: - committed/rejected
superseder: - python setup.py sdist upload --show-response can fail with
UnboundLocalError: local variable 'result' referenced before assignment
___
Python tracker
James Hutchison jamesghutchi...@gmail.com added the comment:
Yes and no, I can give you a single process single child example that just
shows that python 3.2 uses binary output while python 3.1 used system default
when piping, but trying to reproduce the multiprocessing output inconsistencies
Changes by Daniel Stutzbach stutzb...@google.com:
--
nosy: +stutzbach
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11994
___
___
Python-bugs-list
Stefan Krah stefan-use...@bytereef.org added the comment:
STINNER Victor rep...@bugs.python.org wrote:
You should try to disable compiler optimization: pass -O0 to gcc. E.g. use
./configure --with-pydebug CFLAGS=-O0.
I did, see only occurs when python is compiled with optimizations. :)
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11995
___
Antoine Pitrou pit...@free.fr added the comment:
- what's current_thread_id ? If it's thread_get_ident (pthread_self),
since TID is not guaranteed to be inherited across fork, this won't
work
Ouch, then the approach I'm proposing is probably doomed.
And it's true with every lock in the
Roundup Robot devnull@devnull added the comment:
New changeset 2a19d09b08f8 by Antoine Pitrou in branch '3.2':
Issue #1856: Avoid crashes and lockups when daemon threads run while the
http://hg.python.org/cpython/rev/2a19d09b08f8
New changeset c892b0321d23 by Antoine Pitrou in branch 'default':
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Eric, any further comments about the patch?
Can we go on and commit it?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11072
___
Antoine Pitrou pit...@free.fr added the comment:
Should be fixed in 3.2 and 3.3 now. I don't really want to bother with 2.7 and
3.1 (the GIL implementation is different), but someone can backport the patch
if they want to :)
--
resolution: - fixed
stage: patch review -
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:
It might be possible to use a part of patch for issue #1674555.
A newer version of that patch can be found in:
Charles-François Natali neolo...@free.fr added the comment:
Also that addresses the issue of two threads inside different malloc
implementations at the same time: it is currently not allowed with
PyMem_Malloc.
That's not true.
You can perfectly have one thread inside PyMem_Malloc while
Stefan Krah stefan-use...@bytereef.org added the comment:
I just ran into this with test_httpserver/Python2.7, which fails if run
as root. If I understand correctly this is the main problem here. Jason,
do you agree to change the issue title to reflect this?
--
nosy: +skrah
versions:
Changes by Sandro Tosi sandro.t...@gmail.com:
--
nosy: +sandro.tosi
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11049
___
___
Python-bugs-list
Changes by Sandro Tosi sandro.t...@gmail.com:
--
nosy: +sandro.tosi
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11015
___
___
Python-bugs-list
Roundup Robot devnull@devnull added the comment:
New changeset 7f3cab59ef3e by Victor Stinner in branch '2.7':
Issue #11277: test_zlib tests a buffer of 1 GB on 32 bits
http://hg.python.org/cpython/rev/7f3cab59ef3e
--
___
Python tracker
Roundup Robot devnull@devnull added the comment:
New changeset e6a4deb84e47 by Victor Stinner in branch '2.7':
Issue #11277: oops, fix checksum values of test_zlib on 32 bits
http://hg.python.org/cpython/rev/e6a4deb84e47
--
___
Python tracker
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
@haypo: Oh. Not:
if sys.maxsize _4G:
# (64 bits system) crc32() and adler32() stores the buffer size into an
# int, the maximum filesize is INT_MAX (0x7FFF)
filesize = 0x7FFF
crc_res =
Oren Held o...@held.org.il added the comment:
ajaksu2: the ticket you referred to fixed it for Darwin only, afaik. HP-UX,
regardless of versions, still use the old dynload_hpux.c.
--
nosy: +Oren_Held
___
Python tracker rep...@bugs.python.org
Changes by Oren Held o...@held.org.il:
--
nosy: +Oren_Held
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1487481
___
___
Python-bugs-list mailing
R. David Murray rdmur...@bitdance.com added the comment:
Here is a patch that adds datetime support to email.utils.formatdate.
Ultimately the email package will give programs access to datetime+timezone
representations of the dates in various headers, so this provides the output
end of the
Roundup Robot devnull@devnull added the comment:
New changeset 52fb7dc721ed by Daniel Stutzbach in branch '3.2':
#11335: Fix memory leak after key function failure in sort
http://hg.python.org/cpython/rev/52fb7dc721ed
New changeset 18e43c6acfff by Daniel Stutzbach in branch 'default':
#11335:
Changes by Daniel Stutzbach stutzb...@google.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11335
STINNER Victor victor.stin...@haypocalc.com added the comment:
GCC 4.4.3 is not the last stable version of the 4.4 branch: try maybe GCC
4.4.6...
Changes of GCC 4.4.4, 4.4.5 and 4.4.6:
http://gcc.gnu.org/gcc-4.4/changes.html#4.4.6
Or try maybe another major version.
--
Charles-François Natali neolo...@free.fr added the comment:
- what's current_thread_id ? If it's thread_get_ident (pthread_self),
since TID is not guaranteed to be inherited across fork, this won't
work
Ouch, then the approach I'm proposing is probably doomed.
Well, it works on Linux with
New submission from Robert Xiao nneon...@gmail.com:
On Python 3.2, calling abort() on an ftplib.FTP object will cause an exception:
ftp = ftplib.FTP('localhost')
ftp.abort()
Traceback (most recent call last):
File stdin, line 1, in module
File /usr/lib/python3.2/ftplib.py, line 246, in
New submission from alejandro david weil ten...@gmail.com:
Python's documentation includes 2 source codes for alternate xrange
implementations, which, at least in my tests, give unexpected results.
# from file:///usr/share/doc/python2.6-doc/html/library/functions.html#xrange
takewhile(lambda
Sandro Tosi sandro.t...@gmail.com added the comment:
Hi all,
IIUIC we are left with issue11015.py3k.testdoc.1.patch) since
issue11015.py3k.remove_fcmp.{1,2}.patch has been already applied on default.
I just gave a look to the doc patch and it seems fine (it also applies without
any warning on
John O'Connor tehj...@gmail.com added the comment:
I am new to the community but hoping to start contributing or at least
following issues and learning :)
I'm looking at bufferediobase_readinto(). What I haven't yet figured out is why
.readinto() is (currently) implemented at this layer of
Benjamin Peterson benja...@python.org added the comment:
2011/5/4 John O'Connor rep...@bugs.python.org:
John O'Connor tehj...@gmail.com added the comment:
I am new to the community but hoping to start contributing or at least
following issues and learning :)
I'm looking at
Bryce Verdier bryceverd...@gmail.com added the comment:
Applied patch cleanly. Also the description reads clearly and makes sense.
--
nosy: +louiscipher
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8158
Quinn Slack s...@cs.stanford.edu added the comment:
I have updated the patch in hg to address the sections marked TODO (after I
submitted a patch to OpenSSL that they depended on). I'll resubmit a patch here
in a ~week addressing that issue and those below, to continue pushing this
issue
Terry J. Reedy tjre...@udel.edu added the comment:
This is an improvement that I think should be committed before 3.2.1.
Some comments:
+.. function:: run_doctest(module, verbosity=None)
+ Run :mod:`doctest` on the given *module*.
should be, I believe,
+ Run :func:`doctest.testmod` on the
Daniel Stutzbach stutzb...@google.com added the comment:
Looking at this again, I agree with John. For BufferedIOBase, read() is
abstract while readinto() is concrete. That seems backward, and, indeed, it's
the opposite of RawIOBase, where readinto() is abstract and read() is concrete.
Roundup Robot devnull@devnull added the comment:
New changeset c13d2552eb51 by R David Murray in branch '2.7':
#8158: add missing 'description' description to optparse docstring.
http://hg.python.org/cpython/rev/c13d2552eb51
New changeset f559b88bcaa0 by R David Murray in branch '3.1':
#8158:
R. David Murray rdmur...@bitdance.com added the comment:
Thanks everyone.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
Not all system mail spools are mode 1777. Mutt needs to be setgid mail on
systems that aren't, if I understand correctly. Making a python program setgid
mail is a bit more of security issue than making a well-tested C program
setgid,
New submission from Ben Morgan benpmor...@gmail.com:
PyZipFile.writepy gives internal error on syntax errors in files it processes.
For example, in the attached test case:
Traceback (most recent call last):
File C:\tfs\SDKS\python\Python32\lib\py_compile.py, line 119, in compile
Changes by Ben Morgan benpmor...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file21889/pyzipfile-error.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12004
___
Eli Bendersky eli...@gmail.com added the comment:
Eli, do you want to expand this patch further (and how :) or do you think
it's still the version you want to commit? Can a core devel, then, give this
patch a deeper look?
I will review this again in a couple of days and will commit.
Changes by Terry J. Reedy tjre...@udel.edu:
Removed file: http://bugs.python.org/file21890/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11015
___
Benjamin Peterson benja...@python.org added the comment:
I don't see the problem. You're free to override readinto() and read() in
subclasses. readinto() is just implemented in BufferedIOBase as a convenience.
--
___
Python tracker
Charles-François Natali neolo...@free.fr added the comment:
Please disregard my comment on PyEval_ReInitThreads and _after_fork:
it will of course still be necessary, because it does much more than
just reinitializing locks (e.g. stop threads).
Also, note that both approaches don't handle
94 matches
Mail list logo