# Static variables and methods in Python

DevFeed: [Static variables and methods in Python](<https://devfeed.tech/articles/static-variables-and-methods-in-python-40743.md>)

Original publisher: [Read original article](<https://radek.io/posts/static-variables-and-methods-in-python/>)

Published: 2011-07-21T00:00:00Z

Content type: tutorial

Language: en

Sources: [Radek Pazdera](<https://devfeed.tech/sources/radek-pazdera.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [class](<https://devfeed.tech/topics/class.md>), [Inheritance](<https://devfeed.tech/topics/inheritance.md>)

Tags: [class](<https://devfeed.tech/tags/class.md>), [code](<https://devfeed.tech/tags/code.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [inheritance](<https://devfeed.tech/tags/inheritance.md>), [python](<https://devfeed.tech/tags/python.md>), [static](<https://devfeed.tech/tags/static.md>), [variables](<https://devfeed.tech/tags/variables.md>)

## AI overview

A tutorial explaining how Python class variables, static methods, and class methods work. It compares the @staticmethod and @classmethod decorators, including their access to class variables and behavior with inheritance.

## Source excerpt

Bringing a bit of C++ into Python.