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/2018-February/152145.html below:

[Python-Dev] A minimal Python interpreter written in Python for experimenting with language changes

[Python-Dev] A minimal Python interpreter written in Python for experimenting with language changesSteve Holden steve at holdenweb.com
Tue Feb 6 05:00:52 EST 2018
On Tue, Feb 6, 2018 at 3:40 AM, Steven D'Aprano <steve at pearwood.info> wrote:

> On Sat, Feb 03, 2018 at 11:45:15AM +0100, asrp wrote:
>
> ​[...]
>


> Here's a faked session showing the sort of thing I am referring to.
> (Note that this is just an example, not a proposal for a new language
> feature.)
>
> for x in [1, 2, 3]:
>     print(x)
> otherwise:
>     print("nothing there")
>
>
> prints 1, 2, 3.
>

​I think you meant

    for x in ([1, 2, 3], ):

​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20180206/03dc4881/attachment.html>
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