Skip to content

Commit

Permalink
Add sample6 file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Antukh committed Dec 25, 2013
1 parent 248c318 commit 54cff99
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions samples/sample6.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-

def debug(func):
def _decorator():
console.log("call....")
return func.apply(null, arguments)

return _decorator


@debug
def sum(a1, a2, a3):
return a1 + a2 + a3

console.log(sum(1,2,3))

0 comments on commit 54cff99

Please sign in to comment.