Guillaume P.
unread,Apr 10, 2012, 4:49:14 PM4/10/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Genshi
Hello,
I have seen this in genshi/output.py, and thought it could be
appropriate to report an enhancement to the code.
In this function:
{{{
def encode(iterator, method='xml', encoding=None, out=None):
[...]
if out is None:
return _encode(''.join(list(iterator)))
}}}
Should not this line be instead:
{{{
if out is None:
return _encode(''.join(iterator))
}}}
in order to save some memory and CPU cycles?
What do you think?
Thanks,
PS: I have been trying to submit a ticket in the trac system, but it
gets rejected because of spam suspicion...