Hacker News new | ask | show | jobs
by plyp 754 days ago
That’s not the same though. Your unpacking allows for any non-empty iterable while OPs only allows for an iterable with exactly one item or else it throws an exception.