Skip to content

lushep/python-under-the-hood-pycon-2022

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Under the Hood

What's so special about Python objects?

Everything in Python is an object

Hearing that phrase is very common, but understanding it, really understanding it, is something else.

This tutorial goes through how to build classes to understand object-oriented programming and how it applies to the Python data model.


In particular the tutorial covers:

  • Introduction to OOP
  • Building a class for a Deck of cards
  • Class methods
  • Dunder methods
  • Better integration] using eading underscores
  • Parent and child classes

Extras:

  • Mutability
  • Using __getitem__ and __setitem__
  • Protected and "private" variables

This tutorial is inspired by the book

Fluent Python (second edition) by Luciano Ramalho (O'Reilly). Copyright 2022 Luciano Ramalho

Binder link

Binder

https://gdd.li/pyconus-binder

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published