DevX: Dig Deep into Python Internals, Part 2 | Linux Today

DevX: Dig Deep into Python Internals, Part 2

Written By
Web Webster
Web Webster
Jun 2, 2006

“This article is the second in a two-part series that digs deep
to explore the fascinating new-style Python object model, which was
introduced in Python 2.2 and improved in 2.3 and 2.4. The object
model and type system are very dynamic and allow quite a few
interesting tricks. In part one I described the object model and
type system, explored various entities, explained the life cycle of
an object, and introduced some of the countless ways to modify and
customize almost everything you thought immutable at runtime. In
this article I will contrast meta-classes with decorators, explore
the Python execution model and explain how to examine stack frames
at runtime. Finally, I will demonstrate how to augment the Python
language itself using these techniques. To do this I introduce a
private access-checking feature that can be enforced at
runtime…”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.