Archives week 10 of 2015

March 9, 2015 - March 15, 2015

Type Declarations for Python 2.7

So there's a big flamey thread over on python-list about the Python 3.x type-annotation. Thing is, I can't say the annotations seem all *that* important to the behaviour (static type checking): Consider this Python 2.7 decorator-set:

def _func_annotation_for(func):
    """Retrieve the function annotation for a given function or create it"""
    current = getattr(func,'func_annotation',None)
    if current is ...

Continue reading

Daily archives

Previous week

Week 2 of 2015

Next week

Week 17 of 2015

Archives