[Python-Dev] Proposed changes to PEP 343 (original) (raw)
Fredrik Lundh fredrik at pythonware.com
Fri Oct 7 12:26:34 CEST 2005
- Previous message: [Python-Dev] Proposed changes to PEP 343
- Next message: [Python-Dev] Proposed changes to PEP 343
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Nick Coghlan wrote:
9. Here's a proposed native context manager for decimal.Context:
# This would be a new decimal.Context method @contextmanager def with(self):
wouldn't it be better if the ContextWrapper class (or some variation thereof) could be used as a base class for the decimal.Context class? using decorators on methods to provide "is a" behaviour for the class doesn't really feel pythonic...
- Previous message: [Python-Dev] Proposed changes to PEP 343
- Next message: [Python-Dev] Proposed changes to PEP 343
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]