News for hackers. Stuff that matters.
Re:Python has brought computer programming to a vast new aud... by aidos on Thursday July 19, 2018 @06:26PM (#17570886)
I’m the same, I would never use that side effect in production code but I do miss having it in ipython though my use is slight different.

I often did:

    >>> [d for d in drawings]
    >>> [d.<tab> ...]
Because I’m lazy and I want the autocomplete to be there for me. It’s actually the only thing I miss from python 2 and I will admit that a couple of times the sideffects have caught me out in production code so I’m happy with the change.

It’s worth noting that the latest python pep is going to give you a way to assign the variables in the outer scope again:

https://www.python.org/dev/peps/pep-0572/#simplifying-list-c...

There are no comments on this comment yet.