Thomas Holmes <tho...@devminded.com> added the comment:

The output in my initial message is the output of the tests with them enabled 
but pre database.py patch. Once the patch is applied all packaging tests that 
run on my system pass.

I was 50/50 on whether or not to use the internal function and I just sort of 
ended up with it. I had started out writing some more complex map/list 
comprehension stuff and the function made sense at the time.

Regarding the use of yield, at least one of the other functions that uses the 
_get_records function yields the result of _get_records. I figured those could 
be altered to just return the list directly but I decided to opt for the path 
of least modification prior to getting input.

If you think it is a good idea I will modify the patch to remove the 
unnecessary yields and insert the nested function code directly in _get_records 
instead.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12504>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to