Skip to content

Instantly share code, notes, and snippets.

@robotlolita
Created January 25, 2011 12:38
Show Gist options
  • Save robotlolita/794859 to your computer and use it in GitHub Desktop.
Save robotlolita/794859 to your computer and use it in GitHub Desktop.
def lowercased(fn):
fn.__name__ = fn.__name__.lower()
return fn
class Stuff(object):
@lowercased
def CamelCasedMethod():
pass
print dir(Stuff)
# ['__class__', ..., 'CamelCasedMethod', ... ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment