Book Image

The Python Apprentice

By : Robert Smallshire, Austin Bingham
Book Image

The Python Apprentice

By: Robert Smallshire, Austin Bingham

Overview of this book

Experienced programmers want to know how to enhance their craft and we want to help them start as apprentices with Python. We know that before mastering Python you need to learn the culture and the tools to become a productive member of any Python project. Our goal with this book is to give you a practical and thorough introduction to Python programming, providing you with the insight and technical craftsmanship you need to be a productive member of any Python project. Python is a big language, and it’s not our intention with this book to cover everything there is to know. We just want to make sure that you, as the developer, know the tools, basic idioms and of course the ins and outs of the language, the standard library and other modules to be able to jump into most projects.
Table of Contents (21 chapters)
Title Page
Credits
About the Authors
www.PacktPub.com
Customer Feedback
Preface
12
Afterword – Just the Beginning

Chapter 4. Built-in types and the object model

One of the most fundamental design elements of the Python language is its use of objects. Objects are the central data structure not only of user-level constructs but also many of the inner workings of the language itself. In this chapter we'll start to to develop a sense of what this means, both in principle and in practice, and hopefully you'll start to appreciate just how pervasive objects are throughout Python.

We'll take a look at what objects are, how you use them, and how you manage references to them. We'll also start to explore the notion of types in Python, and we'll see how Python's types are both similar to and different from those in many other popular languages. As part this exploration we'll take a more in-depth look at some collection types we've met already, and introduce a few more collection types as well.