<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python on Daniel's Blog</title><link>https://blog.rozario.xyz/tags/python/</link><description>Recent content in Python on Daniel's Blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>daniel</managingEditor><webMaster>daniel</webMaster><lastBuildDate>Fri, 24 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://blog.rozario.xyz/tags/python/index.xml" rel="self" type="application/rss+xml"/><item><title>TIL: Python Print Buffer</title><link>https://blog.rozario.xyz/posts/til-python-buffer/</link><pubDate>Fri, 24 Apr 2026 00:00:00 +0000</pubDate><author>Daniel</author><guid>https://blog.rozario.xyz/posts/til-python-buffer/</guid><description>&lt;p&gt;I was watching &lt;a href="https://github.com/miguelgrinberg"&gt;Miguel Grinberg&lt;/a&gt;&amp;rsquo;s talk on Pycon 2017 &lt;strong&gt;Asynchronous Python for the Complete Beginner&lt;/strong&gt; last night. And tried a code snippet on my computer which is not really connected to the talk or async programming.&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-python"&gt;from time import sleep
def hello() -&amp;gt; None:
print(&amp;quot;Hello&amp;quot;, end=&amp;quot; &amp;quot;)
sleep(3)
print(&amp;quot;World!&amp;quot;)
if __name__ == &amp;quot;__main__&amp;quot;:
hello()
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;What do you think will happen if we run the code? Terminal print&amp;rsquo;s &lt;strong&gt;Hello&lt;/strong&gt; first, then after three seconds we see &lt;strong&gt;World!&lt;/strong&gt; appear, right?
Actually, no.&lt;/p&gt;</description></item></channel></rss>