"Baptiste Carvello" <baptiste13 at altern.org> wrote in message news:e2fr6f$q9c$1 at sea.gmane.org... >+1 for context maker. [me, Terry] >> I would call the decorator @contextmaker since that is what it turns the >> >> decorated function into. >I'm confused here. Do we agree that the object with __enter__ and > >__exit__ is a context manager, I believe so, either that or, for short, context >and the object with just __context__ is a context maker ? If that is what goes after 'with', yes. >If so , I would say the decorator still produces a context manager. If I misunderstood what the decorator produces, then @contextmaker would be wrong. Actually, I thought there were possibly two decorators under consideration, one for each. Terry Jan Reedy Baptiste _______________________________________________ Python-Dev mailing list Python-Dev at python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-python-dev%40m.gmane.org
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