<?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>Lists on Allanderek&#39;s blog</title>
    <link>http://localhost:8080/tags/lists/</link>
    <description>Recent content in Lists on Allanderek&#39;s blog</description>
    <language>en-us</language>
    <lastBuildDate>Sat, 28 Jan 2017 11:36:23 +0000</lastBuildDate>
    <atom:link href="http://localhost:8080/tags/lists/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>List arguments and isinstance</title>
      <link>http://localhost:8080/posts/list-arguments-and-isinstance/</link>
      <pubDate>Sat, 28 Jan 2017 11:36:23 +0000</pubDate>
      <guid>http://localhost:8080/posts/list-arguments-and-isinstance/</guid>
      <description>&lt;p&gt;More than a decade and a half ago, &lt;a href=&#34;http://canonical.org/~kragen/&#34;&gt;Kragen Javier Sitaker&lt;/a&gt; wrote a blog post &lt;a href=&#34;http://canonical.org/~kragen/isinstance/&#34;&gt;isinstance() considered harmful&lt;/a&gt;, a lot of which I believe holds up pretty well today. It&amp;rsquo;s well worth reading it in its entirety but the gist is that rather than testing a value against a specific type, you generally wish to check that a value confirms to a particular interface. Or if you prefer, using &lt;code&gt;isinstance&lt;/code&gt; is imparting &lt;a href=&#34;https://wiki.c2.com/?NominativeAndStructuralTyping&#34;&gt;nominative typing&lt;/a&gt; in a language where duck typing is the convention.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
