<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Internals on DailyPyTips</title><link>https://dailypytips.com/tags/internals/</link><description>Recent content in Internals on DailyPyTips</description><generator>Hugo -- 0.160.1</generator><language>en-us</language><lastBuildDate>Thu, 23 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://dailypytips.com/tags/internals/index.xml" rel="self" type="application/rss+xml"/><item><title>Day 1: Python Is Not Running Your Code (Execution Model Deep Dive)</title><link>https://dailypytips.com/posts/day1/</link><pubDate>Thu, 23 Apr 2026 00:00:00 +0000</pubDate><guid>https://dailypytips.com/posts/day1/</guid><description>&lt;blockquote&gt;
&lt;p&gt;You write Python.&lt;br&gt;
But Python is not executing your code the way you think.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Today, you stop treating Python as magic.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="todays-goal"&gt;Today’s Goal&lt;/h2&gt;
&lt;p&gt;By the end of today, you will:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Understand how Python executes your code&lt;/li&gt;
&lt;li&gt;Learn what happens between &lt;code&gt;.py&lt;/code&gt; to execution&lt;/li&gt;
&lt;li&gt;Build a mental model of the &lt;strong&gt;Python interpreter&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id="the-illusion"&gt;The Illusion&lt;/h2&gt;
&lt;p&gt;You write:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You assume:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Python reads this line by line and runs it&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;That assumption is wrong.&lt;/p&gt;</description></item></channel></rss>