Fred L. Drake, Jr. wrote: > On Wednesday 06 July 2005 19:47, Raymond Hettinger wrote: > > These names should be changed to __beginwith__ and __endwith__. The > > current names are too vague, not obviously paired with each other, not > > obviously tied to the with-statement, and provide no hint about what > > calls them. Remember, the methods will appear among a slew of other > > methods that have nothing to do with with-statements. There will be no > > surrounding contextual clue as to what these methods are for. > > I don't really like this; what's to say there won't be some other client of > the context protocol? Should __iter__ have been __iterfor__? (I don't think > so.) Then what about __begincontext__ and __endcontext__? Raymond's points about __enter__ and __exit__ are still good. Regards, Nicolas
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