Abstract
Metaclasses are classes or objects that define a type/class of other classes. Metaclasses can be classes, functions, or any object that supports calling an interface. There are notable differences in setting a metaclass in Python 2 and in Python 3. This chapter discusses the concepts for maintaining compatibility when setting metaclasses.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2017 Joannah Nanjekye
About this chapter
Cite this chapter
Nanjekye, J. (2017). Setting Metaclasses. In: Python 2 and 3 Compatibility. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2955-2_3
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2955-2_3
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2954-5
Online ISBN: 978-1-4842-2955-2
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)