[Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore(). (original) (raw)
Ethan Furman ethan at stoneleaf.us
Thu Oct 17 18:05:48 CEST 2013
- Previous message: [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().
- Next message: [Python-Dev] On suppress()'s trail blazing (was Re: cpython: Rename contextlib.ignored() to contextlib.ignore())
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 10/17/2013 08:26 AM, Nick Coghlan wrote:
# Arbitrarily nested search loop with exitlabel() as found: for i in range(x): for j in range(y): if matches(i, j): found.exit((i, j)) if found: print(found.value)
+1 !
@property def exc(self): if self.exc is self.exc:
typo
Thanks for this, I like it! :)
--
Ethan
- Previous message: [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().
- Next message: [Python-Dev] On suppress()'s trail blazing (was Re: cpython: Rename contextlib.ignored() to contextlib.ignore())
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]