[Tutor] For-else... Any other handy constructs hiding in Python?

Michael Selik michael.selik at gmail.com
Fri Jun 24 20:10:38 EDT 2016


On Fri, Jun 24, 2016 at 11:58 AM Alex Hall <ahall at autodist.com> wrote:

> I know loops, comprehensions, ifs, and the like,
> but I never knew for-else was available. Are there other constructs that I
> may have missed?
>

Are you familiar with context managers?
https://www.python.org/dev/peps/pep-0343/


More information about the Tutor mailing list