[issue11798] Test cases not garbage collected after run

2013-08-17 Thread Simon Charette
Changes by Simon Charette charett...@gmail.com: -- nosy: +charettes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11798 ___ ___ Python-bugs-list

[issue18606] Add statistics module to standard library

2013-08-17 Thread Steven D'Aprano
Steven D'Aprano added the comment: To anyone waiting for me to respond to rietveld reviews, I'm trying, I really am, but I keep getting a django traceback. This seems to have been reported before, three months ago: http://psf.upfronthosting.co.za/roundup/meta/issue517 --

[issue18756] os.urandom() fails under high load

2013-08-17 Thread STINNER Victor
STINNER Victor added the comment: Tarek: try to use ssl.RAND_bytes(), it is secure, fast and don't use a file descriptor. IMO if something can be improved, it is in the random.SystemRandom() class: it can keep the FD open. Does the class have a method to generate random bytes? --

[issue18712] Pure Python operator.index doesn't match the C version.

2013-08-17 Thread Armin Rigo
Armin Rigo added the comment: Just mentioning it here again, but type(a).__index__(a) is still not perfectly correct. Attached is a case where it differs. I think you get always the correct answer by evaluating range(a).stop. It's admittedly obscure... For example: class A:

[issue18767] csv documentation does not note default quote constant

2013-08-17 Thread R. David Murray
R. David Murray added the comment: Well, it does say that QUOTE_MINIMAL is the default for the dialect 'quoting' attribute. What it doesn't say is that the default dialect (excel) is exactly the documented default values for all the dialect parameters. (Although having said that, I'm not

[issue18756] os.urandom() fails under high load

2013-08-17 Thread Donald Stufft
Donald Stufft added the comment: haypo: It's been suggested by a number of security professionals that using the OpenSSL random (or really any random) instead of urandom is likely to be a smarter idea. The likelyhood that urandom is broken is far less than any other source of random. This can

[issue18712] Pure Python operator.index doesn't match the C version.

2013-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The difference doesn't look significant. In all cases the TypeError is raised. But there was other differences between C and Python versions -- when __index__() returns non-integer. Updated patch fixes this. -- Added file:

[issue18702] Report skipped tests as skipped

2013-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm not sure I understand you Rietveld comment right Terry. We can get rid of _have_ssl (this is implementation detail and shouldn't be required) and just try import ssl. try: import ssl except ImportError: ssl = None If ssl is not None but

[issue18652] Add itertools.first_true (return first true item in iterable)

2013-08-17 Thread Hynek Schlawack
Hynek Schlawack added the comment: Well that's the point: it's extremely handy but simple. I wish Raymond would pronounce on this. I can keep using the PyPI version for all I care, so I'm not going fight for it. But with one exception there seems to be an agreement that it would be a very

[issue18712] Pure Python operator.index doesn't match the C version.

2013-08-17 Thread Mark Dickinson
Mark Dickinson added the comment: Just mentioning it here again, but type(a).__index__(a) is still not perfectly correct. Hmm. type(a).__dict__['__index__'](a) ? (With suitable error checks, as in Serhiy's patch.) -- ___ Python tracker

[issue18712] Pure Python operator.index doesn't match the C version.

2013-08-17 Thread Armin Rigo
Armin Rigo added the comment: The difference doesn't look significant. In all cases the TypeError is raised. Ok, so here is another case. (I won't go to great lengths trying to convince you that there is a problem, because the discussion already occurred several times; google for example

[issue18702] Report skipped tests as skipped

2013-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: You changed NNTP_CLASS = nntplib.NNTP_SSL, which could potentially fail, to NNTP_CLASS = getattr(nntplib, 'NNTP_SSL', None), which cannot fail. Since that was the only thing that previously could fail, the change leaves nothing that can fail, so the test is

[issue18705] Fix typos/spelling mistakes in Lib/*.py files

2013-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset d234dd21374a by Ezio Melotti in branch '2.7': #18705: fix a number of typos. Patch by Févry Thibault. http://hg.python.org/cpython/rev/d234dd21374a New changeset e07f104133d5 by Ezio Melotti in branch '3.3': #18705: fix a number of typos. Patch

[issue18705] Fix typos/spelling mistakes in Lib/*.py files

2013-08-17 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: docs@python - ezio.melotti resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: +Python 2.7 ___ Python tracker

[issue18178] Redefinition of malloc(3) family of functions at build time

2013-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset f09ca52747a6 by Christian Heimes in branch '3.3': Issue #18178: Fix ctypes on BSD. dlmalloc.c was compiled twice which broke malloc weak symbols. http://hg.python.org/cpython/rev/f09ca52747a6 New changeset bea2f12e899e by Christian Heimes in

[issue18741] Fix typos/spelling mistakes in Lib/*/*/.py files

2013-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5295ed192ffd by Ezio Melotti in branch '2.7': #18741: fix more typos. Patch by Févry Thibault. http://hg.python.org/cpython/rev/5295ed192ffd New changeset 9e4685d703d4 by Ezio Melotti in branch '3.3': #18741: fix more typos. Patch by Févry

[issue18741] Fix typos/spelling mistakes in Lib/*/*/.py files

2013-08-17 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: docs@python - ezio.melotti resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: +Python 2.7, Python 3.3 ___ Python tracker

[issue18466] Spelling mistakes in various code comments.

2013-08-17 Thread Ezio Melotti
Ezio Melotti added the comment: Févry, do you want to make an updated patch that includes also everytime as suggested by Terry? I think some of the typos of the current patch have also been fixed by the other patches you submitted. -- ___ Python

[issue18764] The pdb print command prints repr instead of str in python3

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, georg.brandl type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18764 ___

[issue18759] Fix internal doc references for logging package

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18759

[issue18466] Spelling mistakes in various code comments.

2013-08-17 Thread Févry Thibault
Févry Thibault added the comment: Updated the patch. -- Added file: http://bugs.python.org/file31337/typos.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18466 ___

[issue18466] Spelling mistakes in various code comments.

2013-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset c75b8d5fa016 by Ezio Melotti in branch '2.7': #18466: fix more typos. Patch by Févry Thibault. http://hg.python.org/cpython/rev/c75b8d5fa016 New changeset 61227b4c169f by Ezio Melotti in branch '3.3': #18466: fix more typos. Patch by Févry

[issue18466] Spelling mistakes in various code comments.

2013-08-17 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: - ezio.melotti resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18466

[issue18730] suffix parameter in NamedTemporaryFile silently fails when not prepending with a period

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy nosy: +ezio.melotti stage: - test needed versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18730

[issue13107] Text width in optparse.py can become negative

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy stage: needs patch - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13107 ___

[issue9882] abspath from directory

2013-08-17 Thread Ezio Melotti
Ezio Melotti added the comment: Was this brought up on python-ideas? If so, what was the outcome? -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9882 ___

[issue15248] Better explain TypeError: 'tuple' object is not callable

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - docs@python components: +Documentation keywords: +easy nosy: +docs@python versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15248

[issue6916] Remove deprecated items from asynchat

2013-08-17 Thread Ezio Melotti
Ezio Melotti added the comment: What's the status of this? -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6916 ___ ___

[issue12866] Want to submit our Audioop.c patch for 24bit audio

2013-08-17 Thread Ezio Melotti
Ezio Melotti added the comment: What's the status of this? -- nosy: +ezio.melotti versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12866 ___

[issue9741] msgfmt.py generates invalid mo because msgfmt.make() does not clear dictionary

2013-08-17 Thread Ezio Melotti
Ezio Melotti added the comment: FWIW now we have Lib/test/test_tools.py. -- nosy: +ezio.melotti versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9741 ___

[issue10654] test_datetime sometimes fails on Python3.x windows binary

2013-08-17 Thread Ezio Melotti
Ezio Melotti added the comment: Is this still an issue? -- nosy: +ezio.melotti type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10654 ___

[issue18712] Pure Python operator.index doesn't match the C version.

2013-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Hmm. type(a).__dict__['__index__'](a) ? This variant fails on: class A(int): @staticmethod def __index__(): return 42 -- ___ Python tracker rep...@bugs.python.org

[issue12913] Add a debugging howto

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- type: - enhancement versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12913 ___

[issue17232] Improve -O docs

2013-08-17 Thread Ezio Melotti
Ezio Melotti added the comment: Terry, do you want to update your patch? -- versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17232 ___

[issue18712] Pure Python operator.index doesn't match the C version.

2013-08-17 Thread Mark Dickinson
Mark Dickinson added the comment: Serhiy: Yep, or even on bool. Thanks. Armin: I don't think either of us thinks there isn't a problem here. :-) The Google search you suggested didn't turn up a whole lot of useful information for me. Was there a discussion of this on python-dev at some

[issue5720] ctime: I don't think that word means what you think it means.

2013-08-17 Thread Ezio Melotti
Ezio Melotti added the comment: What was the outcome? -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5720 ___ ___

[issue16699] Mountain Lion buildbot lacks disk space

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - out of date stage: - committed/rejected status: open - closed type: - resource usage ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16699

[issue13924] Mercurial robots.txt should let robots crawl landing pages.

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13924 ___

[issue18626] Make python -m inspect name meaningful

2013-08-17 Thread Nick Coghlan
Nick Coghlan added the comment: I realised that with the module:qualname syntax, it's straightforward to expand this beyond module introspection to arbitrary objects. What I suggest we could output: - a header with key module info (names taken from PEP 451): Origin Cached

[issue13822] is(upper/lower/title) are not exactly correct

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13822 ___ ___

[issue12985] Check signed arithmetic overflow in ./configure

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- versions: +Python 3.4 -Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12985 ___

[issue18553] os.isatty() is not Unix only

2013-08-17 Thread Ezio Melotti
Ezio Melotti added the comment: Are there tests for this? -- components: +Tests keywords: +easy nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18553 ___

[issue5527] multiprocessing won't work with Tkinter (under Linux)

2013-08-17 Thread James Sanders
James Sanders added the comment: I did a bit more digging and I think I've worked out what is going on. The particular bit of tcl initialization code that triggers the problem if it is run before the fork is Tcl_InitNotifier in tclUnixNotify.c. It turns out there is a known problem with

[issue18762] error in test_multiprocessing_forkserver

2013-08-17 Thread koobs
koobs added the comment: 2 more cases seen here: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.0%203.x/builds/227/steps/test/logs/stdio Note: cc on FreeBSD 10.0-CURRENT is clang and here:

[issue18768] Wrong documentation of RAND_egd function in ssl module

2013-08-17 Thread Vajrasky Kok
New submission from Vajrasky Kok: import ssl ssl.RAND_egd.__doc__ RAND_egd(path) - bytes\n\nQueries the entropy gather daemon (EGD) on the socket named by 'path'.\nReturns number of bytes read. Raises SSLError if connection to EGD\nfails or if it does provide enough data to seed PRNG.

[issue15939] make *.rst files in Doc/ parseable by doctest

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- type: - enhancement versions: -Python 3.2 Added file: http://bugs.python.org/file31339/issue15939-ctypes-2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15939

[issue18768] Wrong documentation of RAND_egd function in ssl module

2013-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset b352a5cb60b6 by Christian Heimes in branch '3.3': Issue #18768: coding style nitpick. Thanks to Vajrasky Kok http://hg.python.org/cpython/rev/b352a5cb60b6 New changeset fe444f324756 by Christian Heimes in branch 'default': Issue #18768: coding

[issue18768] Wrong documentation of RAND_egd function in ssl module

2013-08-17 Thread Christian Heimes
Christian Heimes added the comment: Thanks, I have removed the extra space in gntype = name- type; -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18768 ___

[issue18768] Wrong documentation of RAND_egd function in ssl module

2013-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset ae91252943bf by Christian Heimes in branch '3.3': Issue 18768: Correct doc string of RAND_edg(). Patch by Vajrasky Kok. http://hg.python.org/cpython/rev/ae91252943bf New changeset 5c091acc799f by Christian Heimes in branch 'default': Issue 18768:

[issue18768] Wrong documentation of RAND_egd function in ssl module

2013-08-17 Thread Christian Heimes
Christian Heimes added the comment: Thanks :) -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18768 ___

[issue2516] Instance methods are misreporting the number of arguments

2013-08-17 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2516 ___

[issue2506] Add mechanism to disable optimizations

2013-08-17 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2506 ___

[issue11671] Security hole in wsgiref.headers.Headers

2013-08-17 Thread Christian Heimes
Christian Heimes added the comment: What do the RFCs for RFC-822 and HTTP 1.1 say about \r and \n in header names? -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11671

[issue18747] Re-seed OpenSSL's PRNG after fork

2013-08-17 Thread Christian Heimes
Christian Heimes added the comment: Here is a patch that is based on Apache's mod_ssl code. mod_ssl perturbs the PRNG state more often but I think that's overkill for Python. The new patch only affects the PRNG state of the child process. In my opinion it is the better way to solve this

[issue18712] Pure Python operator.index doesn't match the C version.

2013-08-17 Thread Armin Rigo
Armin Rigo added the comment: This may have been the most recent discussion of this idea (as far as I can tell): http://mail.python.org/pipermail//python-ideas/2012-August/016036.html Basically, it seems to be still unresolved in the trunk Python; sorry, I thought by now it would have been

[issue18712] Pure Python operator.index doesn't match the C version.

2013-08-17 Thread Armin Rigo
Armin Rigo added the comment: Sorry, realized that my pure Python algorithm isn't equivalent to _PyType_Lookup() --- it fails the staticmethod example of Serhiy. A closer one would be: for t in type(a).__mro__: if '__index__' in t.__dict__: return

[issue11671] Security hole in wsgiref.headers.Headers

2013-08-17 Thread Devin Cook
Devin Cook added the comment: It looks like it's allowed for header line continuation. http://www.ietf.org/rfc/rfc2616.txt HTTP/1.1 header field values can be folded onto multiple lines if the continuation line begins with a space or horizontal tab. All linear white space, including folding,

[issue18746] test_threading.test_finalize_with_trace() fails on FreeBSD buildbot

2013-08-17 Thread koobs
koobs added the comment: I'm not sure if this issue is/was related, but it seems the commit addressing #18178 has taken care of the test_finalize_runnning_thread failure. I note that your description specifies test_finalize_with_trace, perhaps suggesting your reproduction case may be

[issue18178] Redefinition of malloc(3) family of functions at build time

2013-08-17 Thread koobs
koobs added the comment: Commit looks good, confirming test suite passing for 3.x, 3.3 and 2.7.on http://buildbot.python.org/all/buildslaves/koobs-freebsd10 Thank you for picking this up and finishing it off Christian. -- ___ Python tracker

[issue18769] argparse remove subparser

2013-08-17 Thread Michael Bikovitsky
New submission from Michael Bikovitsky: It might be useful in some circumstances to be able to remove a subparser, however the module does not provide such functionality. The proposed method takes the same arguments as the add_parser method and removes the matching subparser from the map

[issue12866] Want to submit our Audioop.c patch for 24bit audio

2013-08-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12866 ___

[issue18730] suffix parameter in NamedTemporaryFile silently fails when not prepending with a period

2013-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: import tempfile f = tempfile.NamedTemporaryFile(suffix='$') f.name '/tmp/tmpumyks8ju$' I see an effect. -- nosy: +serhiy.storchaka status: open - pending ___ Python tracker rep...@bugs.python.org

[issue18730] suffix parameter in NamedTemporaryFile silently fails when not prepending with a period

2013-08-17 Thread Ezio Melotti
Ezio Melotti added the comment: Works for me on Linux too (all branches, with different types of suffix). Maybe it's a Windows issue? -- nosy: +terry.reedy status: pending - open ___ Python tracker rep...@bugs.python.org

[issue18730] suffix parameter in NamedTemporaryFile silently fails when not prepending with a period

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18730 ___ ___

[issue18770] Python insert operation on list

2013-08-17 Thread Vivek Ratnaparkhi
New submission from Vivek Ratnaparkhi: Example 1: mylist = ['a','b','c','d','e'] mylist.insert(len(mylist),'f') print(mylist) Output: ['a', 'b', 'c', 'd', 'e', 'f'] Example 2: mylist = ['a','b','c','d','e'] mylist.insert(10,'f') print(mylist) Output: ['a', 'b', 'c', 'd', 'e', 'f'] Why

[issue18770] Python insert operation on list

2013-08-17 Thread Ezio Melotti
Ezio Melotti added the comment: The docs say that: l.insert(pos, val) is equivalent to: l[pos:pos] = [val] The docstring also says that the value is inserted before pos, so .insert is working as documented. -- nosy: +ezio.melotti ___ Python

[issue17810] Implement PEP 3154 (pickle protocol 4)

2013-08-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Alexandre, Stefan, is any of you working on this? If not, could you please expose what the status of the patch is, whose work is the most advanced (Alexandre's or Stefan's) and what should be the plan to move this forward? Thanks! --

[issue18747] Re-seed OpenSSL's PRNG after fork

2013-08-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch looks fine on the principle, but you should add a test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18747 ___

[issue18747] Re-seed OpenSSL's PRNG after fork

2013-08-17 Thread Charles-François Natali
Charles-François Natali added the comment: 2013/8/17 Christian Heimes rep...@bugs.python.org: Here is a patch that is based on Apache's mod_ssl code. mod_ssl perturbs the PRNG state more often but I think that's overkill for Python. The new patch only affects the PRNG state of the child

[issue16105] Pass read only FD to signal.set_wakeup_fd

2013-08-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset e2b234f5bf7d by Antoine Pitrou in branch 'default': Issue #16105: When a signal handler fails to write to the file descriptor registered with ``signal.set_wakeup_fd()``, report an exception instead of ignoring the error.

[issue10654] test_datetime sometimes fails on Python3.x windows binary

2013-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: test_datetime passes on current 3.3 and 3.4. datetimetest.py now gives the same answer for all 4 classes unsupported operand type(s) for +: 'SubPy' and 'int' unsupported operand type(s) for +: 'int' and 'SubPy' NotImplemented NotImplemented NotImplemented

[issue18763] subprocess: file descriptors should be closed after preexec_fn is called

2013-08-17 Thread Charles-François Natali
Charles-François Natali added the comment: With patch :) -- Added file: http://bugs.python.org/file31342/subprocess_close.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18763 ___diff -r

[issue18748] libgcc_s.so.1 must be installed for pthread_cancel to work

2013-08-17 Thread Maries Ionel Cristian
Maries Ionel Cristian added the comment: What is the version of your libc library? Try something like dpkg -l libc6. 2.15-0ubuntu10.4 I don't think it's that obscure ... uwsgi has this issue

[issue18771] Reduce the cost of hash collisions for set objects

2013-08-17 Thread Raymond Hettinger
New submission from Raymond Hettinger: I'm working on a patch for the lookkey() functions in Object/setobject.c. The core idea is to follow the probe sequence as usual but to also check an adjacent entry for each probe (i.e. check table[i mask] as usual and then check table[(i mask) ^ 1]

[issue18748] libgcc_s.so.1 must be installed for pthread_cancel to work

2013-08-17 Thread Maries Ionel Cristian
Maries Ionel Cristian added the comment: Correct link https://www.google.com/search?q=libgcc_s.so.1+must+be+installed+for+pthread_cancel+to+work+uwsgi+site:lists.unbit.it -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18748

[issue16105] Pass read only FD to signal.set_wakeup_fd

2013-08-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I pushed the patch to 3.4. Thanks for the report! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16105

[issue18771] Reduce the cost of hash collisions for set objects

2013-08-17 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18771 ___ ___

[issue18772] Fix test_gdb for new sets dummy object

2013-08-17 Thread Antoine Pitrou
New submission from Antoine Pitrou: Changeset 2c9a2b588a89 broke the pretty-printing of sets by the gdb plugin. Here is a temptative patch. It works, but I don't know enough to know whether that's the right coding style for a gdb plugin. Dave? -- components: Demos and Tools,

[issue18772] Fix test_gdb for new sets dummy object

2013-08-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +dmalcolm, rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18772 ___ ___

[issue18712] Pure Python operator.index doesn't match the C version.

2013-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is updated patch which uses Armin's algorithm for lookup special methods and adds special case for int subclasses in index(). I have no idea how the documentation should look. -- Added file:

[issue18772] Fix gdb plugin for new sets dummy object

2013-08-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- title: Fix test_gdb for new sets dummy object - Fix gdb plugin for new sets dummy object ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18772 ___

[issue18770] Python insert operation on list

2013-08-17 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18770 ___

[issue18771] Reduce the cost of hash collisions for set objects

2013-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: How it will affect a performance of set(range(n))? -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18771 ___

[issue5527] multiprocessing won't work with Tkinter (under Linux)

2013-08-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5527 ___ ___ Python-bugs-list mailing list

[issue18702] Report skipped tests as skipped

2013-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You changed NNTP_CLASS = nntplib.NNTP_SSL, which could potentially fail, to NNTP_CLASS = getattr(nntplib, 'NNTP_SSL', None), which cannot fail. Since that was the only thing that previously could fail, the change leaves nothing that can fail, so the

[issue18712] Pure Python operator.index doesn't match the C version.

2013-08-17 Thread Eric Snow
Eric Snow added the comment: Couldn't you make use of inspect.getattr_static()? getattr_static(obj.__class__, '__index__').__get__(obj)() getattr_static() does some extra work to get do the right lookup. I haven't verified that it matches _PyType_Lookup() exactly, but it should be pretty

[issue18770] Python insert operation on list

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18770 ___ ___

[issue18730] suffix parameter in NamedTemporaryFile silently fails when not prepending with a period

2013-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'Filename extensions' are a proper subset of 'suffixes'. https://en.wikipedia.org/wiki/Filename_extension Dan 'solutions' indicates that he thinks that the two sets are or should be the same, which they are not. The only thing that is DOS/Windows specific is

[issue18702] Report skipped tests as skipped

2013-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: My original suggestion was to put the possibly failing assignment inside @classmethod def setUpClass: NNTP_CLASS = nntplib.NNTP_SSL so that failure of the assignment would be be reported, but not affect import. --

[issue18730] suffix parameter in NamedTemporaryFile silently fails when not prepending with a period

2013-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't think any explanation is needed. A docstring should be short, we can't duplicate a manual in it. The mentioning suffix default is redundant because it already exposed in the function signature. The mentioning prefix default adds duplication. The

[issue18702] Report skipped tests as skipped

2013-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually you should call parent's setUpClass at the and of declared setUpClass. Therefore you need 4 nontrivial lines instead of 1. The test will fail in setUpClass() in any case because parent's setUpClass() uses NNTP_CLASS. There are no behavior

[issue18730] suffix parameter in NamedTemporaryFile silently fails when not prepending with a period

2013-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: It would be fine with me to shorten the suggestion and not repeat the defaults. They are currently in both doc and docstring, but with *more* words than I used. The file name will begin with *prefix* and end with *suffix*. There is no automatic addition of a

[issue18765] unittest needs a way to launch pdb.post_mortem or other debug hooks

2013-08-17 Thread Michael Foord
Michael Foord added the comment: This is done in outcome.testPartExecutor. If you add it in the except clause then it is *only* called on test failure or error. If we call it unconditionally with the result (maybe a sys.exc_info tuple?) then it could have extended use cases (perhaps custom

[issue18771] Reduce the cost of hash collisions for set objects

2013-08-17 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file31345/so.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18771 ___

[issue18771] Reduce the cost of hash collisions for set objects

2013-08-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Serhiy, I've posted a patch so you can examine the effects in detail. For something like set(range(n)), I would expect no change because the dataset is collision free due to Tim's design where hash(someint)==someint. That said, I'm trying to optimize the

[issue18747] Re-seed OpenSSL's PRNG after fork

2013-08-17 Thread STINNER Victor
STINNER Victor added the comment: openssl_prng_atfork3.patch: Why not using seconds (only micro or nanoseconds) in the seed? Add a few more bits should not reduce the entropy. OpenSSL does hash all these bytes anyway. +#if 1 +fprintf(stderr, PySSL_RAND_atfork_child() seeds %i bytes in %i\n,

[issue17810] Implement PEP 3154 (pickle protocol 4)

2013-08-17 Thread Nick Coghlan
Nick Coghlan added the comment: Potentially relevant to this: we hope to have PEP 451 done for 3.4, which adds a __spec__ attribute to module objects, and will also tweak runpy to ensure -m registers __main__ under it's real name as well. If pickle uses __spec__.name in preference to __name__

[issue18748] libgcc_s.so.1 must be installed for pthread_cancel to work

2013-08-17 Thread STINNER Victor
STINNER Victor added the comment: 2013/8/17 Maries Ionel Cristian rep...@bugs.python.org: I don't think it's that obscure ... uwsgi has this issue https://www.google.com/search?q=libgcc_s.so.1+must+be+installed+for+pthread_cancel+to+work+uwsgi+site:lists.unbit.it- they cause it probably

[issue18771] Reduce the cost of hash collisions for set objects

2013-08-17 Thread STINNER Victor
STINNER Victor added the comment: Do you expect visible difference on a microbenchmark? Do you have benchmarks showing the speedup and showing that many collisions are no too much slower? -- ___ Python tracker rep...@bugs.python.org

[issue18748] libgcc_s.so.1 must be installed for pthread_cancel to work

2013-08-17 Thread Maries Ionel Cristian
Maries Ionel Cristian added the comment: Well anyway, is there any way to preload libgcc ? Because in python2.x it wasn't loaded at runtime. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18748

  1   2   >