[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

Steve Thompson report at bugs.python.org
Fri Sep 3 22:38:50 CEST 2010


Steve Thompson <steve.f.thompson at gmail.com> added the comment:

Any idea if this will be fixed (at all) and/or back ported to 2.6.x or
2.7.x?

On Fri, Sep 3, 2010 at 3:36 PM, Amaury Forgeot d'Arc <report at bugs.python.org
> wrote:

>
> Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
>
> This is still the case: on Windows, if foo.py is readonly,
>    python -c "import foo"
> generates foo.pyc with the readonly attribute.
>
> Tested with 3.1 and current py3k (where the file is named
> __pycache__\foo.cpython-32.pyc)
>
> ----------
> nosy: +amaury.forgeotdarc
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue6074>
> _______________________________________
>

----------
Added file: http://bugs.python.org/file18739/unnamed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6074>
_______________________________________
-------------- next part --------------
Any idea if this will be fixed (at all) and/or back ported to 2.6.x or 2.7.x?<br><br><div class="gmail_quote">On Fri, Sep 3, 2010 at 3:36 PM, Amaury Forgeot d&#39;Arc <span dir="ltr">&lt;<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Amaury Forgeot d&#39;Arc &lt;<a href="mailto:amauryfa at gmail.com">amauryfa at gmail.com</a>&gt; added the comment:<br>
<br>
This is still the case: on Windows, if foo.py is readonly,<br>
    python -c &quot;import foo&quot;<br>
generates foo.pyc with the readonly attribute.<br>
<br>
Tested with 3.1 and current py3k (where the file is named __pycache__\foo.cpython-32.pyc)<br>
<br>
----------<br>
nosy: +amaury.forgeotdarc<br>
<div><div></div><div class="h5"><br>
_______________________________________<br>
Python tracker &lt;<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>&gt;<br>
&lt;<a href="http://bugs.python.org/issue6074" target="_blank">http://bugs.python.org/issue6074</a>&gt;<br>
_______________________________________<br>
</div></div></blockquote></div><br>


More information about the Python-bugs-list mailing list