Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed function name to follow Python naming conventions #228

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions decorators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,14 @@ previous decorator and make a little bit more usable program:

def a_new_decorator(a_func):

def wrapTheFunction():
def wrap_the_function():
print("I am doing some boring work before executing a_func()")

a_func()

print("I am doing some boring work after executing a_func()")

return wrapTheFunction
return wrap_the_function

def a_function_requiring_decoration():
print("I am the function which needs some decoration to remove my foul smell")
Expand Down