Better ways for implementing two situations

Paulo da Silva p_s_d_a_s_i_l_v_a_ns at
Tue Apr 23 12:38:58 EDT 2019

Às 20:10 de 21/04/19, MRAB escreveu:
> On 2019-04-21 19:23, Paulo da Silva wrote:
>> Hi all.
> Have you compared the speed with an implementation that uses
> defaultdict? Your code always creates an empty list for each item, even
> though it might not be needed.

I never used defaultdict. I'll take a look at it.

More information about the Python-list mailing list