toejough / dictmerge

merge python dictionaries
MIT License
0 stars 1 forks source link

generator will cause merge to hang #7

Closed toejough closed 9 years ago

toejough commented 9 years ago

A generator will be converted to a tuple right now. If it's an infinite generator, it will cause the merge to hang forever. Generators should be caught and treated as scalars when doing a default merge, because it's not possible to know the correct behavior and account for it generically in the default library.