W5vbbdyoqz5radq2efrr
2 DAY COURSE

Advanced Python

Topics covered at PYTHON-ADV-01-02
View Schedule & Book More dates available

Next up:

Are you a keen Python developer ready to learn even more? Interested in diving into the complex world of advanced flow classes and abstract base classes? Then this course is for you!

This two day course is designed for developers who already have significant knowledge of Python. This course will delve into fascinating corners of Python, introducing students to details of Python's internals as well as deepening their understanding of familiar territory. The class will focus on Python 3, unless Python 2 is specifically requested.

Rather than working bottom-up, this course starts with analyzing and understanding working examples. This way developers will understand the various interdependent techniques in situ rather than in isolation.

Learn how to:

  • Advanced flow control
  • Byte-oriented programming
  • Object internals and custom attributes
  • Descriptors and slots
  • Metaclasses and class decorators
  • Abstract base classes
  • The numeric tower and conversions
  • Numeric operators in depth
  • Advanced collections
  • Coroutines and advanced generators
  • The import system
  • Going from source code to execution
  • Publishing to the Python Package Index

About the Author

Robert Smallshire

Robert Smallshire is a founding director of Sixty North, a software product and consulting business in Norway . Robert has worked in senior architecture and technical management roles for several software companies providing tools in the energy sector

Day 1 Low Level Python

  • Using else with for, while, and try
  • Dispatching call on argument type
  • Emulating switch statements in Python
  • bytearray, and bytes revisited
  • The memoryview and strucct modules
  • Understanding object internals
  • Ipmlementing custom attributes
  • Fine-trained attribute controls with descriptors
  • Memory optimization with slots
  • Customizing instance creation
  • Controlling class creation with metaclasses
  • Augmenting classes with class decorators

Day 2 High Level Python

  • Abstract base classes
  • Relating numeric types with the numeric tower
  • Implementing new numeric types
  • The collections module, array, frozenset, and namedtuple
  • slice objects and extended slicing syntax
  • Nesting generators with yeild from
  • yield as an expression,k and the send()method
  • Coroutines, event pipelines, and reactive programming
  • Controlling the import process with importlib and import()
  • Code-as-data with eval(), compile(), and exec()
  • Using the ast module to work with python's abstract syntax trees
  • Uploading and publishing to the Python Package Index (PyPI)