[issue16853] add a Selector to the select module

2013-01-07 Thread Guido van Rossum
Guido van Rossum added the comment: There's a bug in the kqueue selector. The following code in your patch has 'fd' instead of 'key.fd', twice: if events & SELECT_IN: kev = kevent(key.fd, KQ_FILTER_READ, KQ_EV_ADD) self._kqueue.control([kev], 0, 0)

[issue16854] usage() is not defined in Lib/test/regrtest.py

2013-01-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset ce99559efa46 by Chris Jerdonek in branch 'default': Issue #16854: Fix regrtest.usage() regression introduced in 6e2e5adc0400. http://hg.python.org/cpython/rev/ce99559efa46 -- nosy: +python-dev ___ Python

[issue15302] Use argparse instead of getopt in test.regrtest

2013-01-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset ce99559efa46 by Chris Jerdonek in branch 'default': Issue #16854: Fix regrtest.usage() regression introduced in 6e2e5adc0400. http://hg.python.org/cpython/rev/ce99559efa46 -- ___ Python tracker

[issue16854] usage() is not defined in Lib/test/regrtest.py

2013-01-07 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue13229] Improve tools for iterating over filesystem directories

2013-01-07 Thread Nick Coghlan
Nick Coghlan added the comment: The problem with the current walkdir implementation is that without a rich path object you end up making a lot of redundant system calls. Combined with the inherent overhead of nested generators, it just *feels* bad (even in situations where worrying about the s

[issue16889] facilitate log output starting at beginning of line

2013-01-07 Thread Chris Jerdonek
New submission from Chris Jerdonek: In certain situations (e.g. when logging while using unittest), log messages can start in the middle of a line, for example: log: [INFO] foo .. It was trickier than I thought it needed t

[issue16748] Make CPython test package discoverable

2013-01-07 Thread Chris Jerdonek
Chris Jerdonek added the comment: > >>> import test.test_xxx as t; t.test_main() As long as the module has "import unittest", you could also do the following, which has just 5 more characters :) >>> import test.test_xxx as t; t.unittest.main(t) -- nosy: +chris.jerdonek __

[issue16799] start using argparse.Namespace in regrtest

2013-01-07 Thread Chris Jerdonek
Chris Jerdonek added the comment: FYI, the fix for issue 16854 committed most of this patch, so the patch should be updated before reviewing. -- ___ Python tracker ___ _

[issue16613] ChainMap.new_child could use improvement

2013-01-07 Thread R. David Murray
R. David Murray added the comment: I agree that this would be useful. -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-

[issue16748] Make CPython test package discoverable

2013-01-07 Thread Chris Jerdonek
Chris Jerdonek added the comment: One more. Since unittest imports strings, you can also do: >>> import unittest as u; u.main("test.test_xxx") -- ___ Python tracker ___ ___

[issue16890] minidom error

2013-01-07 Thread Javier Domingo
New submission from Javier Domingo: Hi I found something like a bug, I can't get this working: import xml.dom.minidom as minidom document=""" """ dom = minidom.parseString(document) dom.childNodes dom.childNodes[0].childNodes dom.childNodes[0].childNodes[1].childNod

[issue16890] minidom error

2013-01-07 Thread Ezio Melotti
Ezio Melotti added the comment: The problem is that you are mutating parent.childNodes while you are iterating on it. Iterating over a copy seems to solve the problem. -- nosy: +ezio.melotti resolution: -> invalid stage: -> committed/rejected status: open -> closed type: -> behavior

[issue16871] Cleanup a few minor things

2013-01-07 Thread Ezio Melotti
Ezio Melotti added the comment: I'm -1 on this, however parts of the patches could be extracted and applied on individual modules in the 'default' branch only. This could be done by the modules' maintainers if they think it's OK. Note that while it's generally not OK doing this kind of refact

[issue5066] IDLE documentation for Unix obsolete/incorrect

2013-01-07 Thread Todd Rovito
Todd Rovito added the comment: Zachary, Thanks for your excellent review Your feedback was very helpful for making the patch even better. -- Added file: http://bugs.python.org/file28626/5066IDLEocumentationforUnixObsoleteIncorrectVersion3.patch

[issue5066] IDLE documentation for Unix obsolete/incorrect

2013-01-07 Thread Todd Rovito
Todd Rovito added the comment: Based on Zachary's comments I have uploaded a new version of the patch which is version 3. -- ___ Python tracker ___ __

[issue14323] Normalize math precision in RGB/YIQ conversion

2013-01-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> patch review versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___

[issue16076] xml.etree.ElementTree.Element and xml.etree.ElementTree.TreeBuilder are no longer pickleable

2013-01-07 Thread Daniel Shahaf
Daniel Shahaf added the comment: In the meantime, unrelated question: should TreeBuilder be pickleable too, and interchangeably (pickle|unpickle)able between the Python and C implementations? Asking because the Python TreeBuilder has a _factory member which it initializes to 'Element', and I'

[issue16076] xml.etree.ElementTree.Element and xml.etree.ElementTree.TreeBuilder are no longer pickleable

2013-01-07 Thread Daniel Shahaf
Daniel Shahaf added the comment: New iteration. Open issues: - Share code with the init method. The issue with sharing code with either element_init() or create_new_element() would be malloc+realloc: unlike either of these methods, we know both the attributes and the number of children at a

[issue16748] Make CPython test package discoverable

2013-01-07 Thread Ezio Melotti
Ezio Melotti added the comment: I think that's the last nail in the coffin of test_main. Terry, do you agree? -- ___ Python tracker ___ __

[issue15438] document that math.pow is inappropriate for integers

2013-01-07 Thread Ezio Melotti
Ezio Melotti added the comment: > Well, the math.pow() doc could use a "seealso" pointing to the built-in > pow() function perhaps. Pointing to ``**`` is probably better. I think that a simple note that mentions the ** operator and when it's better to use it (and possibly the limitations of mat

[issue15442] Expand the list of default dirs filecmp.dircmp ignores

2013-01-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue15988] Inconsistency in overflow error messages of integer argument

2013-01-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue16854] usage() is not defined in Lib/test/regrtest.py

2013-01-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you, Chris. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

<    1   2