Message279467
Actually, the __enter__ method is looked up on the class, so saying "the __enter__ method of the instance" could be a bit confusing. Also, many context managers return self, so 'trivially' isn't really necessary as a modifier.
What if we added a sentence to the first paragraph that said "ExitStack instances return themselves when used in a with statement." Since that is immediately followed by an example of doing that, it seems like the best place to put it. |
|
Date |
User |
Action |
Args |
2016-10-26 00:15:32 | r.david.murray | set | recipients:
+ r.david.murray, docs@python, martin.panter, walker.hale.iv |
2016-10-26 00:15:32 | r.david.murray | set | messageid: <1477440932.09.0.569235921712.issue28516@psf.upfronthosting.co.za> |
2016-10-26 00:15:31 | r.david.murray | link | issue28516 messages |
2016-10-26 00:15:31 | r.david.murray | create | |
|