---
title: "Discussion on \"Python descriptor\" | Hashnode"
description: "Discussion on \"Python descriptor\". Suppose you create a class 'Book' and an attribute 'name'. You create an object of that class. With object, you can directly get or set the name attribute. You could also set any value without any validation.\nclass Book:\n  def __init__(self):\n    pas..."
url: "https://hashnode.com/posts/python-descriptor/63351fd8d1b128ca739ada06"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Python descriptor](https://kapilg.hashnode.dev/python-descriptor?utm_source=hashnode&utm_medium=feed)

Suppose you create a class 'Book' and an attribute 'name'. You create an object of that class. With object, you can directly get or set the name attribute. You could also set any value without any validation. class Book: def \_\_init\_\_(self): pas...

Sep 29, 2022 · 3 min read · kapilg.hashnode.dev  
Updated Nov 2, 2022  
Read the article

-   [#descriptor](https://hashnode.com/tag/descriptor)
-   [#python3](https://hashnode.com/tag/python3)
-   [#oops](https://hashnode.com/tag/oops)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[kapil Garg](https://hashnode.com/@kapilgarg)

@kapilgarg · Bangalore

  
[View profile](https://hashnode.com/@kapilgarg)

Lead Developer | Architect

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
