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
More information about the Python-list mailing list
Tue Jan 12 14:12:32 EST 2016
- Previous message (by thread): subscripting Python 3 dicts/getting the only value in a Python 3 dict
- Next message (by thread): subscripting Python 3 dicts/getting the only value in a Python 3 dict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message (by thread): subscripting Python 3 dicts/getting the only value in a Python 3 dict
- Next message (by thread): subscripting Python 3 dicts/getting the only value in a Python 3 dict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list