diff options
author | Panos Mavrogiorgos <pmav99@gmail.com> | 2019-04-22 22:07:34 +0300 |
---|---|---|
committer | Panos Mavrogiorgos <pmav99@gmail.com> | 2019-04-22 22:07:34 +0300 |
commit | 8ddf992183ac605f49929b7781dbc2540c38eb13 (patch) | |
tree | a71b394ceda50bcd54c3a8449f418c7b930c472d /docs/documentation.md | |
parent | 61e53a4c905213a28d29fd6c2f0f467d23bf9702 (diff) | |
download | python-decorator-git-8ddf992183ac605f49929b7781dbc2540c38eb13.tar.gz |
docs: Create ba decorator
Diffstat (limited to 'docs/documentation.md')
-rw-r--r-- | docs/documentation.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/documentation.md b/docs/documentation.md index d72c6b3..82f642d 100644 --- a/docs/documentation.md +++ b/docs/documentation.md @@ -709,11 +709,13 @@ In Python 3.2, ``GeneratorContextManager`` objects were enhanced with a ``__call__`` method, so that they can be used as decorators, like so: ```python ->>> @ba +>>> ba = before_after('BEFORE', 'AFTER') +>>> +>>> @ba ... def hello(): ... print('hello') ... ->>> hello() +>>> hello() BEFORE hello AFTER |