>>>>> "Pierre" == Pierre Barbier de Reuille <pierre.barbier at cirad.fr> writes: Pierre> Tom Rothamel a écrit : >> I have a question/suggestion about PEP 340. >> >> As I read the PEP right now, the code: >> >> while True: >> block synchronized(v1): >> if v1.field: >> break >> time.sleep(1) >> >> Will never break out of the enclosing while loop. Pierre> Well, that's exactly what it is intended to do and what I would Pierre> expect it to do ! break/continue affect only the inner-most Pierre> loop. Yeah, but "block synchronized(v1)" doesn't look like a loop. I think this might be a common stumbling block for people using this construct. Skip
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