<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Python __slots__ and object layout explained</title>
        <link>https://peertube.lagbag.com/videos/watch/ad7c5f14-b145-492c-adc9-d0d9501d5bc9</link>
        <description>Save memory using Python slots. Python slots are useful for saving memory when you have a large number of small objects whose attributes are known ahead of time. In this video we learn about slots, what slots actually are and how they work. ― mCoding with James Murphy (https://mcoding.io) Source code: https://github.com/mCodingLLC/VideosSampleCode Slots docs: https://docs.python.org/3/reference/datamodel.html#slots Descriptor docs: https://docs.python.org/3/reference/datamodel.html#descriptors SUPPORT ME ⭐Patreon: https://patreon.com/mCoding Paypal: https://www.paypal.com/donate/?hosted_button_id=VJY5SLZ8BJHEE Other donations: https://mcoding.io/donate Top patrons and donors: Jameson, Laura M, Dragos C, Vahnekie, John Martin, Casey G, Pieter G, Krisztian M,  Sigmanificient BE ACTIVE IN MY COMMUNITY 😄Discord: https://discord.gg/Ye9yJtZQuN Github: https://github.com/mCodingLLC/ Reddit: https://www.reddit.com/r/mCoding/ Facebook: https://www.facebook.com/james.mcoding CHAPTERS0:00 Intro 0:43 Normal class 1:53 Slots class 2:44 Why use slots 4:21 Slots are descriptors 5:45 What are slots 8:32 Inheritance 9:14 No metaclass slots 9:24 Using a dict slot</description>
        <lastBuildDate>Wed, 15 Apr 2026 21:16:46 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>PeerTube - https://peertube.lagbag.com</generator>
        <image>
            <title>Python __slots__ and object layout explained</title>
            <url>https://peertube.lagbag.com/client/assets/images/icons/icon-512x512.png</url>
            <link>https://peertube.lagbag.com/videos/watch/ad7c5f14-b145-492c-adc9-d0d9501d5bc9</link>
        </image>
        <copyright>All rights reserved, unless otherwise specified in the terms specified at https://peertube.lagbag.com/about and potential licenses granted by each content's rightholder.</copyright>
        <atom:link href="https://peertube.lagbag.com/feeds/video-comments.xml?videoId=ad7c5f14-b145-492c-adc9-d0d9501d5bc9" rel="self" type="application/rss+xml"/>
    </channel>
</rss>