How Python syntax works beneath the surface

Use Python's magic methods to amplify your code.

By Aaron Maxwell
February 16, 2017
Underwater Underwater (source: Pexels via Pixabay)

In this excerpt from his Oriole online tutorial, Aaron Maxwell uses the Panda’s library to illustrate how Python’s syntax, which lets classes define how they behave when used with built-in binary operators like less-than (<), allows you to create custom, easy-to-use interfaces.


Register for Aaron Maxwell’s online trainings on Safari: Python: Beyond the Basics and Python: The Next Level. You’ll learn skills to amplify your code and master Python’s most powerful traits and features.

Learn faster. Dig deeper. See farther.

Join the O'Reilly online learning platform. Get a free trial today and find answers on the fly, or master something new and useful.

Learn more
Post topics: Software Engineering
Share: