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/2003-October/039133.html below:

[Python-Dev] listcomps vs. for loops

[Python-Dev] listcomps vs. for loops [Python-Dev] listcomps vs. for loopsMichael Hudson mwh at python.net
Tue Oct 21 07:41:00 EDT 2003
Guido van Rossum <guido at python.org> writes:

> I don't recall what I said then.  Did I say it was a feature that
>
>   L = [x for x in R]
>   print x
>
> would print the last item of R?

A problem with such code irrespective of anything else is that it
fails when R is empty.

Cheers,
mwh

-- 
  Whaaat? That is the most retarded thing I have seen since, oh,
  yesterday                             -- Kaz Kylheku, comp.lang.lisp

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