Title: Python Class Attributes: Shared Values on a Class
Open Graph Title: Python Class Attributes: Shared Values on a Class
X Title: Python Class Attributes: Shared Values on a Class
Description: A class attribute is shared by every object made from that class. See the difference with an instance attribute and when a shared value causes trouble.
Open Graph Description: A class attribute is shared by every object made from that class. See the difference with an instance attribute and when a shared value causes trouble.
X Description: A class attribute is shared by every object made from that class. See the difference with an instance attribute and when a shared value causes trouble.
Opengraph URL: https://pythonprogramminglanguage.com/class-attributes/
Domain: pythonprogramminglanguage.com
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "WebSite",
"@id": "https://pythonprogramminglanguage.com/#website",
"url": "https://pythonprogramminglanguage.com/",
"name": "Python Programming Language",
"description": "Free Python tutorials with clear explanations and code you can run.",
"inLanguage": "en",
"publisher": {
"@id": "https://pythonprogramminglanguage.com/#org"
}
},
{
"@type": "Organization",
"@id": "https://pythonprogramminglanguage.com/#org",
"name": "pythonprogramminglanguage.com",
"url": "https://pythonprogramminglanguage.com/",
"logo": {
"@type": "ImageObject",
"url": "https://pythonprogramminglanguage.com/images/og-default.png",
"width": 1200,
"height": 630
}
},
{
"@type": "BreadcrumbList",
"@id": "https://pythonprogramminglanguage.com/class-attributes/#breadcrumb",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "https://pythonprogramminglanguage.com/"
},
{
"@type": "ListItem",
"position": 2,
"name": "Python OOP programming tutorial",
"item": "https://pythonprogramminglanguage.com/oop/"
},
{
"@type": "ListItem",
"position": 3,
"name": "Class attributes for Python classes",
"item": "https://pythonprogramminglanguage.com/class-attributes/"
}
]
},
{
"@type": "TechArticle",
"@id": "https://pythonprogramminglanguage.com/class-attributes/#article",
"isPartOf": {
"@id": "https://pythonprogramminglanguage.com/#website"
},
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://pythonprogramminglanguage.com/class-attributes/"
},
"headline": "Python Class Attributes: Shared Values on a Class",
"name": "Class attributes for Python classes",
"description": "A class attribute is shared by every object made from that class. See the difference with an instance attribute and when a shared value causes trouble.",
"inLanguage": "en",
"image": [
"https://pythonprogramminglanguage.com/images/og-default.png"
],
"datePublished": "2017-03-25",
"dateModified": "2026-10-01",
"wordCount": 356,
"proficiencyLevel": "Beginner",
"articleSection": "Object oriented programming",
"author": {
"@id": "https://pythonprogramminglanguage.com/#org"
},
"publisher": {
"@id": "https://pythonprogramminglanguage.com/#org"
}
},
{
"@type": "WebPage",
"@id": "https://pythonprogramminglanguage.com/class-attributes/#webpage",
"url": "https://pythonprogramminglanguage.com/class-attributes/",
"name": "Python Class Attributes: Shared Values on a Class",
"description": "A class attribute is shared by every object made from that class. See the difference with an instance attribute and when a shared value causes trouble.",
"isPartOf": {
"@id": "https://pythonprogramminglanguage.com/#website"
},
"inLanguage": "en",
"breadcrumb": {
"@id": "https://pythonprogramminglanguage.com/class-attributes/#breadcrumb"
}
}
]
}
| theme-color | #4184f3 |
| og:type | article |
| og:site_name | Python Programming Language |
| og:locale | en_US |
| og:image | https://pythonprogramminglanguage.com/images/og-default.png |
| og:image:width | 1200 |
| og:image:height | 630 |
| og:image:alt | pythonprogramminglanguage.com, free Python tutorials with runnable code examples |
| article:published_time | 2017-03-25T00:00:00+00:00 |
| article:modified_time | 2026-10-01T00:00:00+00:00 |
| article:section | Object oriented programming |
| twitter:card | summary_large_image |
| twitter:image | https://pythonprogramminglanguage.com/images/og-default.png |
Links:
Viewport: width=device-width, initial-scale=1
Robots: index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1