Sessions at PyCon AU 2011 about Python and meta-programming

Your current filters are…


Sunday 21st August 2011

  • Say What You Mean: Meta-Programming a Declarative API

    by Ryan Kelly

    This talk will explore the use of python's meta-programming facilities to create a simple declarative API so that you can *say what you mean* - write code that focuses on the what and the why without being cluttered by the how. If you've ever wondered how the Django ORM or SQLObject work their magic, this is the talk for you.

    As motivating example and case study, I will build from scratch a basic clone of the "dexml" module, which lets you work with XML documents in a declarative, object-oriented manner. Through judicious use of decorators, descriptors and metaclasses, it packs a lot of logic and functionality into a very thin API.

    At 11:00am to 11:30am, Sunday 21st August

    Coverage video

  • Meta-matters: using decorators for better Python programming

    by Dr. Graeme Cross

    The inbuilt decorators are commonly used by Python programmers to define static methods, class methods and properties, but many Python programmers don't know how to create their own custom decorators that can simplify their code, making it more readable, easier to extend and also easier to maintain.

    This tutorial will teach you the fundamental concepts of decorators, how to write your own decorators and also how to ensure your decorators play nice with functions, methods, docstrings and debuggers.

    At 3:10pm to 3:40pm, Sunday 21st August

Schedule incomplete?

Add a new session

Filter by Day

Filter by coverage

Filter by Topic