[issue18592] IDLE: Unit test for SearchDialogBase.py

2013-08-31 Thread Phil Webster
Phil Webster added the comment: Added tests for labels, a mock function for widget creation, a back option for radiobuttontests, and the docstring fixes that Terry mentioned. -- Added file: http://bugs.python.org/file31542/18592_test_searchdialog2.diff _

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2013-08-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Attaching a patch for what I would like to do with the alignment functions and macros. -- keywords: +patch Added file: http://bugs.python.org/file31543/align.diff ___ Python tracker

[issue11798] Test cases not garbage collected after run

2013-08-31 Thread Tim Peters
Tim Peters added the comment: All the buildbots are failing due to changeset 868ad6fa8e68 - I'm going to back it out. -- nosy: +tim.peters ___ Python tracker ___ ___

[issue11798] Test cases not garbage collected after run

2013-08-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7035b5d8fc0f by Tim Peters in branch 'default': Back out 868ad6fa8e68 - it left all the buildbots failing. http://hg.python.org/cpython/rev/7035b5d8fc0f -- ___ Python tracker

[issue11798] Test cases not garbage collected after run

2013-08-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 39781c3737f8 by Andrew Svetlov in branch 'default': Issue #11798: fix tests for regrtest -R : http://hg.python.org/cpython/rev/39781c3737f8 -- ___ Python tracker _

[issue18896] Remove namedtuple 255 arguments restriction

2013-08-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would like to see the limitation removed. IIRC, Guido has said the same. That said, the limitation isn't due to anything in the namedtuple code. Instead, it is due to a CPython bytecode implementation detail that limits all function/method definitions t

[issue11798] Test cases not garbage collected after run

2013-08-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: Now 'regrtest.py -j4 -R : ' passes. Do we need to add parameter for disabling tests cleanup to TestSuite, TestLoader and TestProgrm constructors? -- ___ Python tracker ___

[issue18898] Apply the setobject optimizations to dictionaries

2013-08-31 Thread Raymond Hettinger
New submission from Raymond Hettinger: Once http://bugs.python.org/issue18835 is resolved, I would like to see the various set optimizations applied to dictionaries as well: * Move the key before the hash in the dict struct (the key is accessed more frequently in the code and being in the firs

[issue18882] Add threading.main_thread() function

2013-08-31 Thread Andrew Svetlov
Andrew Svetlov added the comment: Uploaded new patch. > - the doc addition needs a "versionadded" tag Fixed. > - "The main thread is the thread that the OS creates to run application.": I > would rephrase this "In normal conditions, the main thread is the thread from > which the Python interp

[issue18826] reversed() requires a sequence - Could work on any iterator?

2013-08-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry, Guido rejected this idea a long time ago. We do have the __reversed__ hook so you can add reverse iteration to your own classes where it makes sense. Doing it in the general case is more problematic. Some data sources such as generators can't be ru

[issue18844] allow weights in random.choice

2013-08-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for the overall idea. I'll take a detailed look at the patch when I get a chance. -- assignee: -> rhettinger ___ Python tracker ___ ___

[issue18898] Apply the setobject optimizations to dictionaries

2013-08-31 Thread Eric Snow
Eric Snow added the comment: +1 This is worth trying. -- nosy: +Mark.Shannon, eric.snow ___ Python tracker ___ ___ Python-bugs-list ma

[issue18844] allow weights in random.choice

2013-08-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: The sticking point is going to be that we don't want to recompute the cumulative weights for every call to weighted_choice. So there should probably be two functions: cw = make_cumulate_weights(weight_list) x = choice(choice_list, cw) This is similar

[issue18844] allow weights in random.choice

2013-08-31 Thread Westley Martínez
Changes by Westley Martínez : -- nosy: +anikom15 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue18821] Add .lastitem attribute to takewhile instances

2013-08-31 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue18752] Make chain.from_iterable an alias for a new chain_iterable.

2013-08-31 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue18313] In itertools recipes repeatfunc() defines a non-keyword argument as keyword

2013-08-31 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue18726] json functions have too many positional parameters

2013-08-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: -1 Once the positional arguments are in the wild, you can't take them away without breaking a lot of code. This code was available as a third-party module prior to inclusion in Python and had many happy users. If the positional arguments had been a sticki

<    1   2