Digging Deep into Python Internals
Python,
the open source scripting language, has grown tremendously popular in
the last five years. Python boasts a sophisticated object model that
wise developers can exploit in ways that Java, C++, and C# developers
can only dream of. These two tutorial articles describe and teach the
internals of coding in Python using some of its advances and
cutting-edge features.
Dig Deep into Python Internals - Part 1
This tutorial article is the first 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. This tutorial describes the object, model, and type system; explores various entities; explains the life cycle of an object; and introduces some of the ways to modify and customize almost everything you thought immutable at runtime.
Dig Deep into Python Internals - Part 2
In this tutorial article the author, Gigi Sayfan, contrasts meta-classes with decorators, explores the Python execution model and explains how to examine stack frames at runtime. Finally, he demonstrates how to augment the Python language itself using these techniques. A private access-checking feature that can be enforced at runtime is introduced to accomplish this.
Related Posts:
Free Linux Internals Course 28 Free Python Books 8 Free Python Programming Books 16 Programming eBooks for Python, Bash, Regex 28 Free Computer and Programming Books
Dig Deep into Python Internals - Part 1
This tutorial article is the first 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. This tutorial describes the object, model, and type system; explores various entities; explains the life cycle of an object; and introduces some of the ways to modify and customize almost everything you thought immutable at runtime.
Dig Deep into Python Internals - Part 2
In this tutorial article the author, Gigi Sayfan, contrasts meta-classes with decorators, explores the Python execution model and explains how to examine stack frames at runtime. Finally, he demonstrates how to augment the Python language itself using these techniques. A private access-checking feature that can be enforced at runtime is introduced to accomplish this.
Popularity: 12% [?]
Related Posts:
