Python import and module scoping (specifically sys.ps1)
<p>Why does the following not work:</p>

<pre><code>from sys import ps1
ps1 = 'something else '
</code></pre>

<p>but this does?</p>

<pre><code>import sys
sys.ps1 = 'something else '
</code></pre>

<p>If I run the simple test</p>

<pre><code>import sys
from sys import ps1
ps1 = 'something else'
sys.ps1 = 'something else'
</code></pre>

<p>the first assignment doesn't work, but the second does. the id() for both ps1 and sys.ps1 are the same, so they should refer to the same thing, right?</p>
