[issue12415] Missing: How to checkout the Doc sources

2011-06-25 Thread Philip Olson
New submission from Philip Olson : I was unable to determine how to download the Python documentation source files (for building via Sphinx) but did figure out the following: hg clone http://hg.python.org/cpython cd cpython/Doc make html Where to get the Doc sources deserves a mention

[issue12409] Moving "Documenting Python" to Devguide

2011-06-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: I agree with Fred. -- nosy: +rhettinger resolution: -> rejected status: open -> closed ___ Python tracker ___ _

[issue11682] PEP 380 reference implementation for 3.3

2011-06-25 Thread Nick Coghlan
Nick Coghlan added the comment: OK, this isn't going to be as simple as I thought it was. The big problem is that the test suite from [1] needs to be refactored into a format that is suitable for use in regrtest. That means porting them to either unittest or doctest, as "golden output" tests

[issue10020] docs for sqlite3 describe functions not available without recompiling

2011-06-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in branch 2.7. Thanks Kristan. Eric, the documentation patch does not apply to 3.1 because those functions are not present in 3.1. -- nosy: +orsenthil status: open -> closed ___ Python tracker

[issue12399] simplify cell var initialization by storing constant data on the code object

2011-06-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset c5b0585624ef by Benjamin Peterson in branch 'default': map cells to arg slots at code creation time (closes #12399) http://hg.python.org/cpython/rev/c5b0585624ef -- nosy: +python-dev resolution: -> fixed stage: patch review -> committed/re

[issue12414] getsizeof() on code objects is wrong

2011-06-25 Thread Benjamin Peterson
New submission from Benjamin Peterson : sys.getsizeof() on a code object returns on the size of the code struct, not the arrays and tuples which it references. -- components: Interpreter Core messages: 139142 nosy: benjamin.peterson priority: normal severity: normal status: open title:

[issue10020] docs for sqlite3 describe functions not available without recompiling

2011-06-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 804a60029091 by Senthil Kumaran in branch '2.7': Fix Issue10020 - Doc update to sqlite3 module in 2.7 branch. http://hg.python.org/cpython/rev/804a60029091 -- nosy: +python-dev ___ Python tracker

[issue11233] clarifying Availability: Unix

2011-06-25 Thread R. David Murray
R. David Murray added the comment: In another issue Georg came up with the idea of creating an availability directive that would auto link to the appropriate text. This would then apply to all our different availability types. -- ___ Python tracke

[issue10510] packaging upload/register should use CRLF in HTTP requests

2011-06-25 Thread R. David Murray
R. David Murray added the comment: I know this is closed so the comment may not be relevant, but the byte/string issues with email should be sorted out in the code that is in 3.2/3.3 at this point. That is, it is possible once again to work with binary data, using the correct (new) classes.

[issue11682] PEP 380 reference implementation for 3.3

2011-06-25 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue12376] unittest.TextTestResult.__init__ does not pass on its init arguments in super call

2011-06-25 Thread R. David Murray
Changes by R. David Murray : -- title: unittest.TextTestResult.__init__ breaks under complex __mro__ -> unittest.TextTestResult.__init__ does not pass on its init arguments in super call versions: +Python 3.2, Python 3.3 ___ Python tracker

[issue12376] unittest.TextTestResult.__init__ breaks under complex __mro__

2011-06-25 Thread R. David Murray
R. David Murray added the comment: I think we'll have to wait for Micheal to double check, but it looks to me like there is a bug in unittest.TextTestResult. TestResult's init expects the three arguments the OP is talking about, but defaults them to None. TextTestResult accepts those three

[issue12169] Factor out common code for d2 commands register, upload and upload_docs

2011-06-25 Thread John Edmonds
John Edmonds added the comment: Thanks for reviewing the patch. I don't believe I received an email for the review. I think I have addressed your comment about the usage of str(body) by removing the call to str() and changing the tests to use byte literals. As for the content-length changin

[issue12413] make faulthandler dump traceback of child processes

2011-06-25 Thread STINNER Victor
STINNER Victor added the comment: > since all the processes receive the signal at the same time, > their outputs will be interleaved (we could maybe add a random > sleep before dumping the traceback?) If we have the pid list of the children, we can use an arbitrary sleep (e.g. 1 second) before

[issue12413] make faulthandler dump traceback of child processes

2011-06-25 Thread STINNER Victor
Changes by STINNER Victor : -- Removed message: http://bugs.python.org/msg139135 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue12413] make faulthandler dump traceback of child processes

2011-06-25 Thread STINNER Victor
STINNER Victor added the comment: > since all the processes receive the signal at the same time, > their outputs will be interleaved (we could maybe add a random > sleep before dumping the traceback?) And we have the pid list of the children, we can use an arbitrary sleep (e.g. 1 second) befor

[issue12352] multiprocessing.Value() hangs

2011-06-25 Thread STINNER Victor
STINNER Victor added the comment: > _pending_free uses a lock internally to make it thread-safe, so I > think this will have exactly the same problem You are probably right. Can't we use a lock-less list? list.append is atomic thanks to the GIL, isn't it? But I don't know how to implement the l

[issue12413] make faulthandler dump traceback of child processes

2011-06-25 Thread STINNER Victor
STINNER Victor added the comment: Oh oh. I already thaugh to this feature, but its implementation is not trivial. > As noted in issue #11870 ... You mean that the tracebacks of children should be dumped on a timeout of the parent? Or do you also want them on a segfault of the parent? In my ex

[issue12413] make faulthandler dump traceback of child processes

2011-06-25 Thread Charles-François Natali
New submission from Charles-François Natali : As noted in issue #11870, making faulthandler capable of dumping child processes' tracebacks could be a great aid in debugging tricky deadlocks involving for example multiprocessing and subprocess. Since there's no portable way to find out child pro

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on "x86 Ubuntu Shared 3.x"

2011-06-25 Thread Charles-François Natali
Charles-François Natali added the comment: > This skip gives very few information, and it is duplicated for each > function. I would prefer a constant of the "broken OSes" with your > following comment attached to the constant: Ok, I'll try to write something along those lines. > If the crea

[issue12352] multiprocessing.Value() hangs

2011-06-25 Thread Charles-François Natali
Charles-François Natali added the comment: [...] > def free(self, block): >  if self._lock.acquire(False): >     self._exec_pending_free() >     self._free(block) >  else: >     # malloc holds the lock >     self._pending_free.append(block) > _pending_free uses a lock internally to make it thre

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on "x86 Ubuntu Shared 3.x"

2011-06-25 Thread STINNER Victor
STINNER Victor added the comment: +@unittest.skipIf(sys.platform in ('freebsd4', 'freebsd5', 'freebsd6', + 'netbsd5', 'os2emx'), "due to known OS bug") This skip gives very few information, and it is duplicated for each function. I would prefer a constant of the "broken

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread STINNER Victor
STINNER Victor added the comment: >Don't Try to use any fancy way to check if the join will hang, > leave all the job to faulthandler. > Victor, do you agree with the simpler method, depending > on faulthandler to catch a hang in the test and fail it? > Or is the explicit timeout better? I

[issue12410] Create a new helper function that enable to test that an operation don't hang more than a given timeout.

2011-06-25 Thread STINNER Victor
STINNER Victor added the comment: Oh, there is another possible implementation: use a subprocess. But if the timeout is implemented using a subprocess, the syntax cannot be: with timeout(5): do_something() It should be something like: timeout(5, """if 1: import os, sys ... do_so

[issue7365] grp and pwd should treat uid and gid as unsigned

2011-06-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue12352] multiprocessing.Value() hangs

2011-06-25 Thread STINNER Victor
STINNER Victor added the comment: Or you can combine your two ideas: > in free(), perform a trylock of the mutex > if the trylock fails, then create a new Finalizer to postpone the freeing of the same block to a later time,... > ... perform the freeing of pending blocks synchronously > when mal

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: The patch to the multiprocessing code is trivial: +del cache[self._job] The difference in tests is +with test.support.operation_timeout(5): +p.join() versus +p.join() Victor, do you agree with the simpler method, dependi

[issue11163] iter() documentation code doesn't work

2011-06-25 Thread Michael Grazebrook
Michael Grazebrook added the comment: Thank you. On 25/06/2011 13:38, Raymond Hettinger wrote: > Changes by Raymond Hettinger: > > > -- > resolution: -> fixed > status: open -> closed > > ___ > Python tracker > >

[issue12410] Create a new helper function that enable to test that an operation don't hang more than a given timeout.

2011-06-25 Thread STINNER Victor
STINNER Victor added the comment: alarm() is one possible implementation, but Charles-François listed some drawbacks. You can also use resource.setrlimit(RLIMIT_CPU), but the timeout is the CPU time (e.g. you cannot stop a sleep) and it is not portable (e.g. resource is not available on Wind

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-06-25 Thread Vinay Sajip
Vinay Sajip added the comment: > If the code is compatible with 2.6+ only, the “2.5” Trove classifier should > not be used. (Maybe I’m misunderstanding your point.) I was referring to your comment about the X in X.Y.Z. We also need to bear in mind that you sometimes just get trove classifier

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on "x86 Ubuntu Shared 3.x"

2011-06-25 Thread STINNER Victor
STINNER Victor added the comment: > Victor: to debug this kind of problem, it would be great > if faulthandler could also dump tracebacks of children processes. > Do you mind if I create a new issue? Please open a new issue. -- ___ Python tracker <

[issue12296] Minor clarification in devguide

2011-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: The parenthetical comment is a complete sentence, and no longer trivial. I would separate it and write it more simply as "... their code. (This obviously does not apply to new classes, functions, or optional arguments.)" -- nosy: +terry.reedy ___

[issue5572] packaging should respect the LIBS configure env var

2011-06-25 Thread Roumen Petrov
Roumen Petrov added the comment: Collin, I'm sure that you could use LDFLAGS instead LIBS to boost python. If I remember well this require set_executables to be commented in setup.py. -- ___ Python tracker ___

[issue12409] Moving "Documenting Python" to Devguide

2011-06-25 Thread Sandro Tosi
Sandro Tosi added the comment: Hi Fred, thanks for your input! Let's see what others think, but I think that at the very least, the "Building the documentation" section (that seams very specific to python) should be moved into the devguide. -- ___

[issue12255] A few changes to .*ignore

2011-06-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: Eric, sure go ahead. As I am not affected by remains of .rej and .orig (neither have I found their usefulness (yet)), so my concerns can be stepped over. Plus, I have found a way to ignore files via patterns in .hgrc. I already see you and RDM proposing the

[issue11898] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hi Sorin, On Sat, Jun 25, 2011 at 07:54:24PM +, sorin wrote: > type(message_body) is str ... even if I tried to manually force > Python for use bytes. It seams that in 2.7 bytes are alias to str. > Due to this the code will fail to run only on 2.7 because i

[issue5572] packaging should respect the LIBS configure env var

2011-06-25 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-06-25 Thread Éric Araujo
Éric Araujo added the comment: > Perhaps some mechanism needs to be provided to indicate additional > processing options per script line: Sure. Higery will have to examine existing usage and think about setuptools→packaging transition. We’ll start simple and easy (in other words, with somet

[issue11104] distutils sdist ignores MANIFEST

2011-06-25 Thread Éric Araujo
Éric Araujo added the comment: Thanks for your work. I will make a final test and review and commit it in the coming days. I’ll adapt the versionchanged text, since I won’t commit this in 3.1 (in security mode now, not bugfix mode). -- priority: normal -> high _

[issue10020] docs for sqlite3 describe functions not available without recompiling

2011-06-25 Thread Éric Araujo
Changes by Éric Araujo : -- versions: -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue12296] Minor clarification in devguide

2011-06-25 Thread Éric Araujo
Éric Araujo added the comment: Good idea. So, any -1 on this: (this obviously does not apply to new classes or functions, or new optional arguments) -- ___ Python tracker ___

[issue5572] packaging should respect the LIBS configure env var

2011-06-25 Thread Éric Araujo
Éric Araujo added the comment: The distutils feature freeze doesn’t let us accept this patch, but there is definite value for packaging, so I will port it. Thanks for the original patch! -- resolution: wont fix -> status: closed -> open title: distutils ignores the LIBS configure env

[issue12169] Factor out common code for d2 commands register, upload and upload_docs

2011-06-25 Thread Éric Araujo
Éric Araujo added the comment: I made some comments on the code review site; maybe you didn’t get the email, there is a known bug about that. You can follow the “review” link on the right of the patch file to see it. I have closed #10510, which asked that HTTP request use CRLF for maximum c

[issue11898] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-25 Thread sorin
sorin added the comment: I have to add some details here. First, this bug has nothing to do with the URL, it does reproduce for normal urls. Still the problem with the line: "msg += message_body" is quite complex when combined with Python 2.7: type(msg) is unicode type(message_body) is str

[issue10510] packaging upload/register should use CRLF in HTTP requests

2011-06-25 Thread Éric Araujo
Éric Araujo added the comment: > I'm having a look at this ticket now. It looks like this can be > rewritten to use common code Indeed! As such, I’m folding this feature request into #12169, which has a patch under review. -- resolution: -> duplicate stage: needs patch -> committed/

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 2.7, bytes is an alias for str to aid porting to 3.x. >>> bytes is str True >>> type(bytes()) I suspect the doc uses 'bytes' rather than 'str' because it was backported from 3.x. Perhaps it should be changed but I do not know the policy on using the alias

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-25 Thread R. David Murray
R. David Murray added the comment: No, that's correct. In python 2.x the 'bytes' stuff is just a portability aid. In 2.x, bytes and string are the same type. In Python 3 they aren't, so by using the 'fake' classes in python2 you can often make your code work correctly on both python2 and p

[issue10510] distutils upload/register should use CRLF in HTTP requests

2011-06-25 Thread Stephen Thorne
Stephen Thorne added the comment: Okay, I looked at this, then I ran into str/byte type problems with the email module. Will wait until 'email' is sorted out before I consider a ticket like this one again. -- ___ Python tracker

[issue12341] Some additions to .hgignore

2011-06-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset ee9eb4e05180 by Ezio Melotti in branch '2.7': #12341: add coverage files/dirs to .hgignore. Patch by Sandro Tosi. http://hg.python.org/cpython/rev/ee9eb4e05180 -- ___ Python tracker

[issue12352] multiprocessing.Value() hangs

2011-06-25 Thread Charles-François Natali
Changes by Charles-François Natali : Added file: http://bugs.python.org/file22477/heap_gc_deadlock.diff ___ Python tracker ___ ___ Python-bugs

[issue12352] multiprocessing.Value() hangs

2011-06-25 Thread Charles-François Natali
Changes by Charles-François Natali : Removed file: http://bugs.python.org/file22476/heap_gc_deadlock.diff ___ Python tracker ___ ___ Python-bu

[issue12409] Moving "Documenting Python" to Devguide

2011-06-25 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: -1 > Hi! We have the devguide now, and it should be the place where to look > for references and docs about contributing to Python, that means also > for the documentation. For information specific to the Python documentation itself, but not relevant to us

[issue12352] multiprocessing.Value() hangs

2011-06-25 Thread Charles-François Natali
Changes by Charles-François Natali : -- keywords: +patch Added file: http://bugs.python.org/file22476/heap_gc_deadlock.diff ___ Python tracker ___ ___

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-25 Thread sorin
sorin added the comment: You are right, I debugged the problem a little more and discovered at least one bug in PyAMF. Still, I was surprised to find out something very strange, it look that BytesIO.getvalue() does return `str` even if the documentation says it does return `bytes`. Should I

[issue12352] multiprocessing.Value() hangs

2011-06-25 Thread Charles-François Natali
Charles-François Natali added the comment: Patch (with test) attached. It disables the garbage collector inside critical sections. Of course, if another thread re-enables the gc while the current thread is inside a critical section, things can break (the probability is really low, but who knows)

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad
mouad added the comment: Here is a new patch that in the opposite of the first one, it don't try to check if the pool.join() will hang or no, after a discussion with neologix in issue #12410 . -- ___ Python tracker

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad
Changes by mouad : Added file: http://bugs.python.org/file22475/issue-12157.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue4608] urllib.request.urlopen does not return an iterable object

2011-06-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: flox -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue4608] urllib.request.urlopen does not return an iterable object

2011-06-25 Thread Stefan Schwarzer
Stefan Schwarzer added the comment: It turned out that although the addinfourl instance had the `__iter__` attribute in `addbase.__init__` correctly assigned, `__iter__` wasn't found by the `iter` builtin. It seems that `iter` always tries to use the `__iter__` method of the _class_ and doesn

[issue12410] Create a new helper function that enable to test that an operation don't hang more than a given timeout.

2011-06-25 Thread mouad
mouad added the comment: Thanks for the instructive feedback :) I totally agree i guess there is a lot of issues that i didn't think of :-(, my first thinking was to use "Pool.join" timeout argument but it was removed in 3.2 (by the way i didn't find the issue or the rational that lead to thi

[issue975330] Inconsistent newline handling in email module

2011-06-25 Thread Dave King
Dave King added the comment: Added some tests against the patch provided by R. David Murray. See attached patch. Tests pass against default. -- nosy: +davbo Added file: http://bugs.python.org/file22473/base_encode_tests.patch ___ Python tracker

[issue12403] Mention sys.displayhook in code module docs and the compile builtin docs

2011-06-25 Thread R. David Murray
R. David Murray added the comment: Well, sys.stdout and sys.stderr don't have to be real file objects. You could substitute a file-like object (one that implements the methods that get called during the interpretation loop) that does your multiplexing. That kind of trick is one of the thing

[issue12374] Execution model should explain compile vs definition vs execution time

2011-06-25 Thread R. David Murray
R. David Murray added the comment: You could try the mentors list or Doug Hellman's volunteer group, too. -- ___ Python tracker ___ _

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-25 Thread engelbert gruber
engelbert gruber added the comment: patch to test_marshal.py that obviously fails in current implementation. IMHO is file might not be seekable one can not cache so maybe do not do it. -- nosy: +grubert Added file: http://bugs.python.org/file22472/multiple_dump_load_test.patch ___

[issue12412] non defined representation for pwd.struct_passwd

2011-06-25 Thread R. David Murray
R. David Murray added the comment: Looks like the difference between a regular tuple and a named tuple. The correct test is to access the members using the names, and the test suite currently does this. The repr shouldn't, I think, be required to be identical. On the other hand, if pypy is

[issue11669] Clarify Lang Ref "Compound statements" footnote

2011-06-25 Thread Sandro Tosi
Changes by Sandro Tosi : -- keywords: -needs review Added file: http://bugs.python.org/file22471/issue11669-default.patch ___ Python tracker ___

[issue11669] Clarify Lang Ref "Compound statements" footnote

2011-06-25 Thread Sandro Tosi
Sandro Tosi added the comment: Ok, I send it too soon... attached is a patch to fix this bug (it applies on default, 3.2 and 2.7). -- ___ Python tracker ___ ___

[issue11669] Clarify Lang Ref "Compound statements" footnote

2011-06-25 Thread Sandro Tosi
Sandro Tosi added the comment: Just to make explicit what's happening: >>> try: ... try: ... raise TypeError() ... finally: ... raise ValueError() ... except TypeError as e: ... print('mmm') ... Traceback (most recent call last): File "", line 3, in TypeError D

[issue12410] Create a new helper function that enable to test that an operation don't hang more than a given timeout.

2011-06-25 Thread Charles-François Natali
Charles-François Natali added the comment: It's a little bit more complicated than that: - signals and threads don't mix well together - this will make syscalls fail with EINTR - the old SIGALRM handler is lost - etc In short, don't use signals. I'm not sure there's a reliable way to write such

[issue12412] non defined representation for pwd.struct_passwd

2011-06-25 Thread Francisco Garcia
New submission from Francisco Garcia : pwd.struct_passwd has different representations in cpython 2.7.2 and pypy 1.5 A unit test from cpython might enforce the same representation across interpreters: >>> print pwd.getpwuid(os.getuid()) Current cpython output: pwd.struct_passwd(pw_name='demo

[issue12341] Some additions to .hgignore

2011-06-25 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed during the EuroPython sprint, thanks for the patch! -- nosy: +ezio.melotti resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue12410] Create a new helper function that enable to test that an operation don't hang more than a given timeout.

2011-06-25 Thread R. David Murray
Changes by R. David Murray : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue12341] Some additions to .hgignore

2011-06-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset ef306bd1d122 by Ezio Melotti in branch 'default': #12341: add coverage files/dirs to .hgignore. Patch by Sandro Tosi. http://hg.python.org/cpython/rev/ef306bd1d122 -- ___ Python tracker

[issue12341] Some additions to .hgignore

2011-06-25 Thread Éric Araujo
Éric Araujo added the comment: Please backport. -- versions: +Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mail

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-06-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Made a simple fix to keep the cache from growing without bound. Leaving this open for 3.3 as a feature request to implement a more sophisticated strategy using file hashes or somesuch. -- ___ Python tracker

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-06-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2bacaf6a80c4 by Raymond Hettinger in branch '3.2': Issue 11802: filecmp cache was growing without bound. http://hg.python.org/cpython/rev/2bacaf6a80c4 New changeset 8f4466619e1c by Raymond Hettinger in branch 'default': Issue 11802: filecmp cache

[issue6721] Locks in python standard library should be sanitized on fork

2011-06-25 Thread Tomaž Šolc
Changes by Tomaž Šolc : -- nosy: +avian ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue12411] cgi.parse_multipart is broken on 3.x

2011-06-25 Thread R. David Murray
Changes by R. David Murray : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue6721] Locks in python standard library should be sanitized on fork

2011-06-25 Thread Giovanni Bajo
Giovanni Bajo added the comment: If there's agreement that the general problem is unsolvable (so fork and threads just don't get along with each other), what we could attempt is trying to limit the side effects in the standard library, so that fewest users as possible are affected by this pro

[issue11233] clarifying Availability: Unix

2011-06-25 Thread Sandro Tosi
Changes by Sandro Tosi : -- Removed message: http://bugs.python.org/msg130754 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-06-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 11568c59d9d4 by Raymond Hettinger in branch '2.7': Issue 11802: filecmp cache was growing without bound. http://hg.python.org/cpython/rev/11568c59d9d4 -- nosy: +python-dev ___ Python tracker

[issue12411] cgi.parse_multipart is broken on 3.x

2011-06-25 Thread Jonas Wagner
New submission from Jonas Wagner : While writing tests for the cgi module I came across what looks like a conversion bug. cgi.parse_multipart is comparing values it reads from a binary file like with a string literal: line = fp.readline() ... if line.startswith("--"): This patch adds fixes th

[issue11763] assertEqual memory issues with large text inputs

2011-06-25 Thread Michael Foord
Michael Foord added the comment: Sorry, ignore that. I see that the patch already passes maxDiff to truncate_str. -- ___ Python tracker ___ _

[issue11763] assertEqual memory issues with large text inputs

2011-06-25 Thread Michael Foord
Michael Foord added the comment: The basic idea of the patch is good, but instead of introducing _MAX_LENGTH, maxDiff should be reused. -- ___ Python tracker ___ __

[issue12296] Minor clarification in devguide

2011-06-25 Thread Sandro Tosi
Sandro Tosi added the comment: (this obviously does not apply to new classes, functions or *optional* arguments) ? -- nosy: +sandro.tosi ___ Python tracker ___

[issue12410] Create a new helper function that enable to test that an operation don't hang more than a given timeout.

2011-06-25 Thread mouad
Changes by mouad : Added file: http://bugs.python.org/file22469/operation_timeout.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue12410] Create a new helper function that enable to test that an operation don't hang more than a given timeout.

2011-06-25 Thread mouad
Changes by mouad : Removed file: http://bugs.python.org/file22467/operation_timeout.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad
mouad added the comment: The test case use a helper function in test/support.py that i have proposed in issue #12410. I'm dropping this comment here because i don't have the rights to edit the issue dependency. cheers; -- ___ Python tracker

[issue12403] Mention sys.displayhook in code module docs and the compile builtin docs

2011-06-25 Thread Miki Tebeka
Miki Tebeka added the comment: Yeah, I though about using dup2 from stdout/stderr to the socket. However this means I can connect only one client at a time. Which was an issue I was trying to avoid. Didn't think about print statements though ... Thanks. -- __

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on "x86 Ubuntu Shared 3.x"

2011-06-25 Thread Charles-François Natali
Charles-François Natali added the comment: test_2_join_in_forked_process fails on FreeBSD 6.4 buildbot. http://www.python.org/dev/buildbot/all/builders/x86 FreeBSD 6.4 3.x/builds/1606/steps/test/logs/stdio """ == FAIL: test_2_

[issue12410] Create a new helper function that enable to test that an operation don't hang more than a given timeout.

2011-06-25 Thread mouad
New submission from mouad : While working on issue #12157 [http://bugs.python.org/issue12157], I needed a function that make sure that an operation will not hang forever, for this reason i have create this helper function that support the context manager protocol and accept a timeout as an arg

[issue11869] Include information about the bug tracker Rietveld code review tool

2011-06-25 Thread Sandro Tosi
Changes by Sandro Tosi : -- nosy: +sandro.tosi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12403] Mention sys.displayhook in code module docs and the compile builtin docs

2011-06-25 Thread R. David Murray
R. David Murray added the comment: Well, the code is being executed by an exec call on a code object that was compiled with the 'single' flag, which is what causes non-None values to get "printed". The compile docs aren't clear on how "printed" is implemented, but the answer is that it calls

[issue12086] Tutorial doesn't discourage name mangling

2011-06-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Added an example of how to use double underscores correctly. I agree with Ezio that the rest of the documentation is clear on the subject. -- resolution: -> rejected status: open -> closed ___ Python tracker

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad
Changes by mouad : Added file: http://bugs.python.org/file22466/issue-12157.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad
Changes by mouad : Removed file: http://bugs.python.org/file22461/support.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad
Changes by mouad : Removed file: http://bugs.python.org/file22460/test_multiprocess.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad
Changes by mouad : Removed file: http://bugs.python.org/file22459/pool.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue12086] Tutorial doesn't discourage name mangling

2011-06-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 79f9698777b7 by Raymond Hettinger in branch '3.2': Issue 12086: add example showing how to use name mangling. http://hg.python.org/cpython/rev/79f9698777b7 New changeset fca745bc70be by Raymond Hettinger in branch 'default': Issue 12086: add exampl

  1   2   >