You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The collections module already has a defaultdict implementation, but no defaultlist. It's sometimes useful to have a list with a default factory, so that it never throws an IndexError
- Adding #58 defaultlist (Thanks to Dogeek)
- Adding LoggerIOWrapper (Thanks to Dogeek)
- Adding log_it (Thanks to Dogeek)
- Adding #57 singleton implementation (Thanks to Dogeek)
- Changing line length to 120 and using `black` standard formatter
Co-authored-by: Dogeek <dogeek@users.noreply.github.com>
The collections module already has a defaultdict implementation, but no defaultlist. It's sometimes useful to have a list with a default factory, so that it never throws an IndexError
Here's such an implementation :
With the accompanying test :
The text was updated successfully, but these errors were encountered: