Skip to main content

Skip over site navigation to main content

developerWorks  >   Linux  >   Technical library  >  

Technical library view  RSS for Linux

developerWorks
 Related links:    Redbooks |  Forums

Filter your search and/or enter a keyword. If you don't filter your search or enter a keyword, the search results will default to all results.

 
 
 
  1 - 3 of 3 results    Hide Summaries
Title   Date  

Table that contains the results that meet the search criteria.

Metaclass programming in Python
Most readers are already familiar with the concepts of object-oriented programming: inheritance, encapsulation, polymorphism. But the creation of objects of a given class, with certain parents, is usually thought of as a "just so" operation. It turns out that a number of new programming constructs become either easier, or possible at all, when you can customize the process of object creation. Metaclasses enable certain types of "aspect-oriented programming," for example, you can enhance classes with features like tracing capabilities, object persistence, exception logging, and more.
26 Feb 2003  
 
Metaclass programming in Python, Part 2
Michele and David's initial developerWorks article on metaclass programming prompted quite a bit of feedback, some of it from perplexed readers still trying to grasp the subtleties of Python metaclasses. This article revisits the working of metaclasses and their relation to other OOP concepts. It contrasts class instantiation with inheritance, distinguishes classmethods and metamethods, and explains and solves metaclass conflicts.
28 Aug 2003  
 
Metaclass programming in Python, Part 3
Too much cleverness in programming makes designs more complicated, code more fragile, learning curves steeper, and worst of all, it makes debugging harder. Michele and David feel, in part, responsible for some excesses of cleverness that followed the enthusiastic reception of their earlier articles on Python metaclasses. In this article, they attempt to make amends, by helping programmers eschew cleverness.
25 Sep 2007  
 
  1 - 3 of 3 results    Hide Summaries
Not finding what you're looking for? Suggest Content