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

2013-08-17 Thread Armin Rigo
Armin Rigo added the comment: For completeness, can you post one line saying why the much simpler solution "range(a).stop" is not accepted? -- ___ Python tracker ___ ___

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

2013-08-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Also, cachegrind shows a 3% improvement in the branch misprediction rate (from 9.9% to 9.6%). ==82814== Mispred rate: 9.9% ( 9.4% + 15.5% ==82812== Mispred rate: 9.6% ( 9.1% + 14.1% ) --

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

2013-08-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Attaching the detailed results of a CacheGrind analysis. Here are the high-points (all of which were expected): * The last level data cache miss-rate improved 12% (from 4.9% to 4.3%). * The first level data cache miss-rate improved 14% (from 5.5% to 4.7%).

[issue18774] There is still last bit of GNU Pth code in signalmodule.c

2013-08-17 Thread Vajrasky Kok
New submission from Vajrasky Kok: I read this commit: http://hg.python.org/cpython/rev/1d5f644b9241 But I noticed there is still GNU Pth code lingering around in Modules/signalmodule.c. Beside of that the WITH_PTH code (in the same file) is expired already. If you configure python with this o

[issue4709] Mingw-w64 and python on windows x64

2013-08-17 Thread John Pye
John Pye added the comment: This bug is still present in Python 2.7.5 on Windows 64-bit . I am currently providing the following instructions for MinGW-w64 users wanting to link to Python27.dll: http://ascend4.org/Setting_up_a_MinGW-w64_build_environment#Setup_Python_for_compilation_of_extensi

[issue18773] When a signal handler fails to write to the file descriptor registered with ``signal.set_wakeup_fd()``, an exception does not report the file descriptor

2013-08-17 Thread Vajrasky Kok
Vajrasky Kok added the comment: Sorry, When I read "... wakeup fd:\n" my subconsciousness mind automatically translated it to "... wakeup fd: %d\n". Then you made me realized there is another error message below it. I closed this ticket as invalid. -- resolution: -> invalid status:

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

2013-08-17 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file31350/insert_clean.s ___ Python tracker ___ ___ Python-bugs-list mailing

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

2013-08-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here's a simple benchmark to start with. On my machine (2.4Ghz Core2 Duo with 2MB L3 cache) and compiled with GCC-4.8, the benchmark shows a 6% speedup for sets that spill over L2 cache and 11% for sets that spill over the L3 cache. The theoretically expec

[issue18562] Regex howto: revision pass

2013-08-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, this is already too long IMO. Two sentences should suffice. If you are calling a regex very often in a loop, then it makes sense to compile it. Otherwise, don't bother. -- nosy: +pitrou ___ Python tracker

[issue18562] Regex howto: revision pass

2013-08-17 Thread A.M. Kuchling
A.M. Kuchling added the comment: Slightly revised version that modifies the discussion of when to pre-compile a regex and when to not bother. I don't think this is a very important issue, so I don't think it needs a long discussion. -- Added file: http://bugs.python.org/file31348/rege

[issue18773] When a signal handler fails to write to the file descriptor registered with ``signal.set_wakeup_fd()``, an exception does not report the file descriptor

2013-08-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: The errno is in the following line (the "[OSError]" one). -- ___ Python tracker ___ ___ Python-bugs-

[issue18773] When a signal handler fails to write to the file descriptor registered with ``signal.set_wakeup_fd()``, an exception does not report the file descriptor

2013-08-17 Thread Vajrasky Kok
Vajrasky Kok added the comment: Same patch, but more pep8 compliant. -- Added file: http://bugs.python.org/file31347/add_file_descriptor_to_exception_signal_set_wakeup_fd_v2.patch ___ Python tracker __

[issue18773] When a signal handler fails to write to the file descriptor registered with ``signal.set_wakeup_fd()``, an exception does not report the file descriptor

2013-08-17 Thread Vajrasky Kok
New submission from Vajrasky Kok: When a signal handler fails to write to the file descriptor registered with ``signal.set_wakeup_fd()``, an exception does not report which the file descriptor is the problematic one. Attached the patch to put the file descriptor in the aforementioned exception

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

2013-08-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: > With j=11, is the lookup at index 10 in the same cache line? It might or it might not. The cache lines are typically 64 bytes which holds 4 key/hash pairs. So, the odds are 75% in favor of an adjacent entry being in the same cache line. If malloc where

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

2013-08-17 Thread STINNER Victor
STINNER Victor added the comment: "+ Cache line benefit: improves the odds that the adjacent probe will be on the same cache line (...) + Reduced loop overhead: the second lookup doesn't require a new computation of the index *i* (we just do a XOR 1) (...)" With j=11, is the lookup at index 10

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

2013-08-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here's an excerpt from the patch that gives a pretty good idea of what is being changed (the three lines of new logic are marked): static void set_insert_clean(PySetObject *so, PyObject *key, Py_hash_t hash) { setentry *table = so->table; setentry *e

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

2013-08-17 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- Removed message: http://bugs.python.org/msg195530 ___ Python tracker ___ ___ Python-bugs-list mailin

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

2013-08-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here's an excerpt of the patch that gives a pretty good idea of that is being changed (there are essentially three lines of new logic): static void set_insert_clean(PySetObject *so, PyObject *key, Py_hash_t hash) { setentry *table = so->table; setent

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

2013-08-17 Thread STINNER Victor
STINNER Victor added the comment: > The theory is sound, but it is going to take a good deal of effort to isolate > the effects (either good or bad) in realistic benchmarks. Oh, it was just asking for a microbenchmark on set(). I don't care of a "real" benchmark (realistic use case) for such is

[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: Alright ... would it be a very big hack to preload libgcc in the thread module (at import time) ? There is platform specific code there anyway, it wouldn't be such a big deal would it? -- ___ Python tracker

[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/18 Maries Ionel Cristian : > Well anyway, is there any way to preload libgcc ? Because in python2.x it > wasn't loaded at runtime. On Linux, you can try to set the LD_PRELOAD environment variable as a workaround. LD_PRELOAD=libgcc_s.so.1 python bug.py

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

2013-08-17 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing

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

2013-08-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: I just made the patch a few minutes ago. Am just starting to work on benchmarks. I posted here so that you guys could help find the strengths and weaknesses of the approach. The theory is sound, but it is going to take a good deal of effort to isolate

[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 ___ __

[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

[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 : > 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 different but the point i

[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__

[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"

[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 g

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

2013-08-17 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- keywords: +patch Added file: http://bugs.python.org/file31345/so.diff ___ Python tracker ___ ___ Pyt

[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 rep

[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

[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 difference

[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 purp

[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 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 its

[issue18770] Python insert operation on list

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[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 c

[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

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

2013-08-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[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 ___ _

[issue18770] Python insert operation on list

2013-08-17 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue18772] Fix gdb plugin for new sets dummy object

2013-08-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- title: Fix test_gdb for new sets dummy object -> Fix gdb plugin for new sets dummy object ___ Python tracker ___ _

[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: http://bugs.python.org/file31344/operator_index_3.patc

[issue18772] Fix test_gdb for new sets dummy object

2013-08-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +dmalcolm, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

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

2013-08-17 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[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, Interpreter

[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 _

[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

[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: > 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 https://www.google.com/search?q=libgcc_s.so.1+must+be+installed+for+pthread_cancel+to+work+uwsg

[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 ___diff -r 5d4fe1da2c90 Lib/test

[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 NotImp

[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. http://hg.python.org/cpytho

[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 : > 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

[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 ___ ___ Pyth

[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! --

[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 track

[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 shoul

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

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[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 ___

[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

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

2013-08-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list ma

[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 (incl

[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

[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 somethi

[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, ha

[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 t.__dict__['__index__

[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 res

[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 issue.

[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 ___ _

[issue2506] Add mechanism to disable optimizations

2013-08-17 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mail

[issue2516] Instance methods are misreporting the number of arguments

2013-08-17 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mail

[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 ___ ___

[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: Co

[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 ___ ___ Pyth

[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 style

[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 : -- type: -> enhancement versions: -Python 3.2 Added file: http://bugs.python.org/file31339/issue15939-ctypes-2.diff ___ Python tracker ___ ___

[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: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.0%20dtrace%2Bclang%203.x/build

[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 this

[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 ___ ___

[issue12985] Check signed arithmetic overflow in ./configure

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.4 -Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

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

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18626] Make "python -m inspect " 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 Submodu

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

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16699] Mountain Lion buildbot lacks disk space

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> out of date stage: -> committed/rejected status: open -> closed type: -> resource usage ___ Python tracker ___

[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 ___ ___ Python-bugs-list mailing list U

[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 poin

[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 ___ ___ Python-b

[issue12913] Add a debugging howto

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- type: -> enhancement versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list maili

[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

[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 ___ ___ Python-bu

[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 ___ __

[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 ___ ___

[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 ___ ___ Python-bugs-list mailing l

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

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> docs@python components: +Documentation keywords: +easy nosy: +docs@python versions: +Python 2.7, Python 3.3 ___ Python tracker ___

[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 ___ __

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

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy stage: needs patch -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing lis

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

2013-08-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy nosy: +ezio.melotti stage: -> test needed versions: +Python 3.3, Python 3.4 ___ Python tracker ___ _

  1   2   >