An open API service indexing awesome lists of open source software.

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

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