[issue968063] Add fileinput.islastline()
Dj Gilcrease added the comment: Updated the patch and tests for py3.3 -- keywords: +patch nosy: +Digitalxero Added file: http://bugs.python.org/file20928/cpython_rev68060.patch ___ Python tracker <http://bugs.python.org/issue968063> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10880] do_mkvalue and 'boolean'
Dj Gilcrease added the comment: Add a boolean format option to Py_BuildValue and Py_VaBuildValue Also added some tests to test_capi that verifies Py_BuildValue is building the right type. I did not add tests for every possible type as it has lived this long without, but I did want to test my new code. -- keywords: +patch nosy: +Digitalxero Added file: http://bugs.python.org/file20929/issue10880_rev68064.patch ___ Python tracker <http://bugs.python.org/issue10880> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10880] do_mkvalue and 'boolean'
Dj Gilcrease added the comment: Correct the tests. They passed before but had a logic flaw that caused them to never test that the correct boolean value was being returned. -- Added file: http://bugs.python.org/file20938/issue10880_68064.patch ___ Python tracker <http://bugs.python.org/issue10880> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10880] do_mkvalue and 'boolean'
Changes by Dj Gilcrease : Removed file: http://bugs.python.org/file20929/issue10880_rev68064.patch ___ Python tracker <http://bugs.python.org/issue10880> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6655] etree iterative find[text]
New submission from Dj Gilcrease : I recently converted a project from using a custom implementation of xml.dom.minidom to using EelemntTree that comes with python2.5+ and found myself wishing for a find(tag_or_path) method that would do so iteratively instead of just on the current elements direct children. This is possible with the code as written; looking_for = None for el in etree.getiterator(tag_or_path): looking_for = el break I have to do this type of action so often in my code that I just decided to grab the python implementation of etree that came with py2.6 and include it with my app and patch in an iter_find method as the instant break for loop is just asking for maintenance issues down the road what I forget why I was breaking on the first loop no matter what. -- components: XML files: ElementTree.py.patch keywords: patch messages: 91348 nosy: Digitalxero severity: normal status: open title: etree iterative find[text] type: feature request versions: Python 2.7, Python 3.2 Added file: http://bugs.python.org/file14663/ElementTree.py.patch ___ Python tracker <http://bugs.python.org/issue6655> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6655] etree iterative find[text]
Dj Gilcrease added the comment: second patch file -- Added file: http://bugs.python.org/file14664/ElementPath.py.patch ___ Python tracker <http://bugs.python.org/issue6655> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com