This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Arfrever
Recipients Arfrever, brett.cannon, eric.snow, ncoghlan
Date 2013-02-17.21:23:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361136224.16.0.490340842207.issue17222@psf.upfronthosting.co.za>
In-reply-to
Content
Since d4eb02b6aac9 py_compile.compile() replaces target files, breaking special files and symlinks. Any custom permissions set on target files are also lost. This is a major regression.

# cd /tmp
# touch test.py
# ls -l /dev/null
crw-rw-rw- 1 root root 1, 3 Feb 17 21:16 /dev/null
# python3.3 -c 'import py_compile; py_compile.compile("test.py", cfile="/dev/null")'
# ls -l /dev/null
crw-rw-rw- 1 root root 1, 3 Feb 17 21:16 /dev/null
# python3.4 -c 'import py_compile; py_compile.compile("test.py", cfile="/dev/null")'
# ls -l /dev/null
-rw-r----- 1 root root 102 Feb 17 21:53 /dev/null
History
Date User Action Args
2013-02-17 21:23:44Arfreversetrecipients: + Arfrever, brett.cannon, ncoghlan, eric.snow
2013-02-17 21:23:44Arfreversetmessageid: <1361136224.16.0.490340842207.issue17222@psf.upfronthosting.co.za>
2013-02-17 21:23:44Arfreverlinkissue17222 messages
2013-02-17 21:23:43Arfrevercreate