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 Pitmaster
Recipients Pitmaster, docs@python
Date 2014-05-22.17:39:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1400780345.53.0.941799194043.issue21554@psf.upfronthosting.co.za>
In-reply-to
Content
In https://docs.python.org/3/tutorial/stdlib.html, there is an example:

>>> import shutil
>>> shutil.copyfile('data.db', 'archive.db')
>>> shutil.move('/build/executables', 'installdir')

Should it not be:

>>> import shutil
>>> shutil.copyfile('data.db', 'archive.db')
'archive.db'
>>> shutil.move('/build/executables', 'installdir')
'installdir'

?  I am run under Windows, so I don't know if the behavior is different than under Linux.  Under Windows the destination file and destination directory, respectively, are echoed to stdout.
History
Date User Action Args
2014-05-22 17:39:05Pitmastersetrecipients: + Pitmaster, docs@python
2014-05-22 17:39:05Pitmastersetmessageid: <1400780345.53.0.941799194043.issue21554@psf.upfronthosting.co.za>
2014-05-22 17:39:05Pitmasterlinkissue21554 messages
2014-05-22 17:39:04Pitmastercreate