Sorry. I didn't read carefully enough. That's right -- the "if
converter: break" was replaced with "return converter".
You're right. This is fine.
Mike
John Hunter wrote:
> On Tue, Oct 7, 2008 at 11:26 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote:
>
>> This isn't quite what I was sugg
On Tue, Oct 7, 2008 at 11:26 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote:
> This isn't quite what I was suggesting (and seems to be equivalent to
> the code as before). In the common case where there are no units in the
> data, this will still traverse the entire list.
>
> I think replacing t
This isn't quite what I was suggesting (and seems to be equivalent to
the code as before). In the common case where there are no units in the
data, this will still traverse the entire list.
I think replacing the whole loop with:
converter = self.get_converter(iter(x).next())
would be even b