On Tue, Feb 6, 2018 at 3:40 AM, Steven D'Aprano <[email protected]> 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], ):
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com