<p dir="auto"><strong>Migrated issue, originally created by Maik Riechert (<a href="https://github.com/letmaik">@letmaik</a>)</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mybool = Column(Boolean, nullable=False, default=False)"><pre class="notranslate"><code class="notranslate">mybool = Column(Boolean, nullable=False, default=False)
</code></pre></div>
<p dir="auto">I use PostgreSQL which has a native boolean type. If I then also use naming convention:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;ck&quot;: &quot;ck_%(table_name)s_%(constraint_name)s&quot;,"><pre class="notranslate"><code class="notranslate">"ck": "ck_%(table_name)s_%(constraint_name)s",
</code></pre></div>
<p dir="auto">Then sqlalchemy complains:</p>
<p dir="auto">sqlalchemy.exc.InvalidRequestError: Naming convention including %(constraint_name)s token requires that constraint is explicitly named.</p>
<p dir="auto">If I define the column as</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="isPublic = Column(Boolean(create_constraint=False), nullable=False, default=False)"><pre class="notranslate"><code class="notranslate">isPublic = Column(Boolean(create_constraint=False), nullable=False, default=False)
</code></pre></div>
<p dir="auto">it works, so I think this is a bug in which sqlalchemy doesn't connect the fact that there is a native Boolean and no constraint exists actually.</p>
<hr>
<p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/3067/3067.1.patch">3067.1.patch</a> | <a href="../wiki/imported_issue_attachments/3067/3067.patch">3067.patch</a> | <a href="../wiki/imported_issue_attachments/3067/3067.2.patch">3067.2.patch</a></p>
<p dir="auto">When performing a <code class="notranslate">deepcopy</code> on some serialized data, I found that anything that's of the type <code class="notranslate">MutableList</code> gets its elements duplicated. I'm using <code class="notranslate">1.3.2</code></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; foo = MutableList(['bar'])
&gt;&gt;&gt; print(foo)
['bar']
&gt;&gt;&gt; print(deepcopy(foo))
['bar', 'bar']"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">foo</span> <span class="pl-c1">=</span> <span class="pl-v">MutableList</span>([<span class="pl-s">'bar'</span>])
<span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-en">print</span>(<span class="pl-s1">foo</span>)
[<span class="pl-s">'bar'</span>]
<span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-en">print</span>(<span class="pl-en">deepcopy</span>(<span class="pl-s1">foo</span>))
[<span class="pl-s">'bar'</span>, <span class="pl-s">'bar'</span>]</pre></div>