© Sunil Kapil 2019
Sunil KapilClean Pythonhttps://doi.org/10.1007/978-1-4842-4878-2_4

4. Working with Modules and Metaclasses

Sunil Kapil1 
Sunnyvale, CA, USA

Modules and metaclasses are important features of Python. When working on large projects, having a good understanding of modules and metaprogramming will help you write cleaner code. Metaclasses in Python are a kind of hidden feature that you don’t need to care about until you have a specific need to use them. Modules help you to organize your code/project and help you to structure your code.

Modules and metaclasses are big concepts, so explaining them here in detail would be difficult. In this chapter, you will explore some good practices regarding modules and metaprogramming. ...

Get Clean Python: Elegant Coding in Python now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.