https://github.com/codeskyblue/pydefer
golang defer implements in python
https://github.com/codeskyblue/pydefer
Last synced: about 1 month ago
JSON representation
golang defer implements in python
- Host: GitHub
- URL: https://github.com/codeskyblue/pydefer
- Owner: codeskyblue
- License: bsd-3-clause
- Created: 2013-11-04T15:36:29.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-04T15:47:22.000Z (over 12 years ago)
- Last Synced: 2025-08-07T16:34:42.143Z (11 months ago)
- Language: Python
- Size: 105 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## pydefer
en: golang defer implements in python.
zh: golang的defer在python中的实现
## 使用举例
@pydefer.wrapper
def hi(name = 'mei zi'):
pydefer.defer(printf, 'what is your tel number, %s', name)
print 'hi', name
hi()
# output order
# hi mei zi
# what is your tel number, meizi