A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-May/079761.html below:

[Python-Dev] itertools additions: one(), single_valued()

[Python-Dev] itertools additions: one(), single_valued()Boris Borcic bborcic at gmail.com
Mon May 26 19:47:44 CEST 2008
> Opinions?
> 
> Andreas

my_target, = iterable
my_target, = set(iterable)

quite readably does it, imho, or else one can use

[my_target] = iterable
[my_target] = set(iterable)

the error messages seem also OK.

Cheers, BB






More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4