The Python Oracle

Efficient way to remove keys with empty strings from a dict

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Dreamlands

--

Chapters
00:00 Question
00:25 Accepted answer (Score 263)
01:05 Answer 2 (Score 83)
01:24 Answer 3 (Score 23)
01:57 Answer 4 (Score 19)
02:59 Thank you

--

Full question
https://stackoverflow.com/questions/1211...

Answer 1 links:
[BrenBarn's solution]: https://stackoverflow.com/a/12118700/164...

Answer 3 links:
[the remap utility from the boltons utility package]: http://boltons.readthedocs.org/en/latest...
[iterutils.py]: https://github.com/mahmoud/boltons/blob/...
[This page]: http://sedimental.org/remap.html
[right here]: https://github.com/mahmoud/boltons/issue...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #dictionary

#avk47