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. -- https://mail.python.org/mailman/listinfo/python-list
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. -- https://mail.python.org/mailman/listinfo/python-list