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 pitrou
Recipients Arfrever, brett.cannon, eric.snow, ncoghlan, pitrou
Date 2013-02-19.18:17:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361297657.3423.2.camel@localhost.localdomain>
In-reply-to <1361295096.9.0.822082428648.issue17222@psf.upfronthosting.co.za>
Content
> Use the mode how exactly? I mean isn't the problem the os.replace()
> call and not os.open() on the source file?

If you want to reproduce the original file's access rights, you have to
pass the right mode flags to os.open().
Of course, this won't recreate symlinks and the like. But I don't think
we can do something for that anyway, since we want to replace to happen
automatically. People who like to have symlinks for their pyc files
probably have their own custom scripts to create pyc files, so they
should just re-use them.
History
Date User Action Args
2013-02-19 18:17:39pitrousetrecipients: + pitrou, brett.cannon, ncoghlan, Arfrever, eric.snow
2013-02-19 18:17:39pitroulinkissue17222 messages
2013-02-19 18:17:39pitroucreate