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 belopolsky
Recipients belopolsky, igs
Date 2008-05-14.14:48:22
SpamBayes Score 0.040765397
Marked as misclassified No
Message-id <1210776546.63.0.0122692897129.issue2845@psf.upfronthosting.co.za>
In-reply-to
Content
This seems to be a documentation issue.

"""
shutil.copy2(src, dst)
Similar to copy(), but last access time and last modification time are 
copied as well. This is similar to the Unix command cp -p.
""" -- http://docs.python.org/dev/library/shutil.html#shutil.copy2

Does not mention permissions while

"""
$ pydoc shutil.copy2
shutil.copy2 = copy2(src, dst)
    Copy data and all stat info ("cp -p src dst").
"""

implies that the permissions should be copied.

Maybe the documentation should simply recite the implementation: copy2 
is copyfile follwed by copystat.
History
Date User Action Args
2008-05-14 14:49:21belopolskysetspambayes_score: 0.0407654 -> 0.040765397
recipients: + belopolsky, igs
2008-05-14 14:49:07belopolskysetspambayes_score: 0.0407654 -> 0.0407654
messageid: <1210776546.63.0.0122692897129.issue2845@psf.upfronthosting.co.za>
2008-05-14 14:48:57belopolskylinkissue2845 messages
2008-05-14 14:48:50belopolskycreate