Skip to content

codeskyblue/pydefer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

golang defer implements in python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages