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

Nick Coghlan report at bugs.python.org
Mon Aug 20 03:27:54 CEST 2012


Nick Coghlan added the comment:

OK, I tracked down the original reason for the behavioural change: #2051

The important aspect in that patch is preserving the *read* permissions from the .py file so we don't accidentally expose data to other users.

Kevin's patch seems like a good approach for restoring compatibility in 2.7 and 3.2

In 3.3, it appears that #2051 has regressed, since no test was added to confirm the correct behaviour and importlib appears to behave more like 2.5.

----------
versions:  -Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6074>
_______________________________________


More information about the Python-bugs-list mailing list