subscripting Python 3 dicts/getting the only value in a Python 3 dict

Bernardo Sulzbach mafagafogigante at gmail.com
Tue Jan 12 14:12:32 EST 2016


I saw it in another answer. next(iter(d)) is still the winner.

This resembles a list just too much, making the coder's intent harder
to understand. This is **very** subjective, of course.



More information about the Python-list mailing list