What behaviour is preferred? (Embedding Python)
<p>I'm embedding Python into an application. <code>MyClass.name</code> is a property of <code>str</code> type:</p>

<pre><code>&gt;&gt;&gt; foo = MyClass()
&gt;&gt;&gt; foo.name
'Default Name'
</code></pre>

<p>Should I allow users to do this:</p>

<pre><code>&gt;&gt;&gt; foo.name = 123
&gt;&gt;&gt; foo.name
'123'
</code></pre>

<p>or not?</p>

<pre><code>&gt;&gt;&gt; foo.name = 123
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
TypeError: name must be a string
</code></pre>
