<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Descriptors on Nalar</title>
    <link>https://nalar.dev/tags/descriptors/</link>
    <description>Recent content in Descriptors on Nalar</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 02 Sep 2026 00:00:00 +0700</lastBuildDate>
    <atom:link href="https://nalar.dev/tags/descriptors/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Python Descriptors: Reusable Attribute Behavior Without Magic</title>
      <link>https://nalar.dev/python-descriptors-reusable-attribute-behavior-without-magic/</link>
      <pubDate>Wed, 02 Sep 2026 00:00:00 +0700</pubDate>
      <guid>https://nalar.dev/python-descriptors-reusable-attribute-behavior-without-magic/</guid>
      <description>&lt;p&gt;Python properties are useful when one class needs a managed attribute. When the same attribute behavior must be reused across many fields or classes, repeating nearly identical properties becomes harder to maintain.&lt;/p&gt;&#xA;&lt;p&gt;Descriptors provide the protocol underneath properties, bound methods, &lt;code&gt;classmethod&lt;/code&gt;, &lt;code&gt;staticmethod&lt;/code&gt;, and other familiar Python features. A descriptor is an object stored on a class that can participate in reading, writing, or deleting an attribute.&lt;/p&gt;&#xA;&lt;p&gt;Descriptors are powerful because they integrate with normal dotted access such as &lt;code&gt;obj.width&lt;/code&gt;. They are also easy to misuse if you do not understand where descriptor instances live, how values should be stored, and which lookup rules Python applies.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
