skip to main | skip to sidebar

snim2

Tuesday, 28 February 2006

Tail Call Optimization as a Python Decorator

Until today the coolest uses I've seen for Python decorators were implementing design by contract and currying. However, Crutcher Dunnavant has implemented a decorator which performs tail call optimization by messing with the runtime stack. Even cooler, it's only 14LOC. Go check it out!
Bookmark and Share
Posted by Sarah Mount at 02:36 0 comments
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

About Me

My photo
Sarah Mount
I'm currently a Senior Lecturer in Computer Science at the University of Wolverhampton. My main website is http://www.snim2.org
View my complete profile

Blog Archive

  • ►  2012 (1)
    • ►  May (1)
  • ►  2011 (5)
    • ►  October (3)
    • ►  May (1)
    • ►  March (1)
  • ►  2010 (9)
    • ►  November (3)
    • ►  October (1)
    • ►  July (1)
    • ►  June (1)
    • ►  May (1)
    • ►  April (1)
    • ►  January (1)
  • ►  2009 (6)
    • ►  December (1)
    • ►  November (1)
    • ►  October (2)
    • ►  August (1)
    • ►  July (1)
  • ►  2008 (1)
    • ►  September (1)
  • ►  2007 (1)
    • ►  March (1)
  • ▼  2006 (16)
    • ►  December (1)
    • ►  October (2)
    • ►  September (1)
    • ►  July (3)
    • ►  April (2)
    • ►  March (1)
    • ▼  February (1)
      • Tail Call Optimization as a Python Decorator
    • ►  January (5)
  • ►  2005 (10)
    • ►  December (2)
    • ►  November (3)
    • ►  September (1)
    • ►  August (1)
    • ►  July (1)
    • ►  June (1)
    • ►  May (1)

Followers