Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shutil.copyfile documentation #48728

Closed
steve21 mannequin opened this issue Dec 1, 2008 · 2 comments
Closed

shutil.copyfile documentation #48728

steve21 mannequin opened this issue Dec 1, 2008 · 2 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@steve21
Copy link
Mannequin

steve21 mannequin commented Dec 1, 2008

BPO 4478
Nosy @birkenfeld

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/birkenfeld'
closed_at = <Date 2008-12-05.15:34:01.916>
created_at = <Date 2008-12-01.04:38:37.935>
labels = ['docs']
title = 'shutil.copyfile documentation'
updated_at = <Date 2008-12-05.15:34:01.915>
user = 'https://bugs.python.org/steve21'

bugs.python.org fields:

activity = <Date 2008-12-05.15:34:01.915>
actor = 'georg.brandl'
assignee = 'georg.brandl'
closed = True
closed_date = <Date 2008-12-05.15:34:01.916>
closer = 'georg.brandl'
components = ['Documentation']
creation = <Date 2008-12-01.04:38:37.935>
creator = 'steve21'
dependencies = []
files = []
hgrepos = []
issue_num = 4478
keywords = []
message_count = 2.0
messages = ['76673', '77032']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'steve21']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue4478'
versions = ['Python 3.0']

@steve21
Copy link
Mannequin Author

steve21 mannequin commented Dec 1, 2008

$ python3.0
Python 3.0rc3 (r30rc3:67312, Nov 22 2008, 21:38:46)
>>> import shutil
>>> shutil.copyfile('/tmp/f', '/tmp/f')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/a/lib/python3.0/shutil.py", line 47, in copyfile
    raise Error("`%s` and `%s` are the same file" % (src, dst))
shutil.Error: `/tmp/f` and `/tmp/f` are the same file

The Python 3 docs at
http://docs.python.org/dev/3.0/library/shutil.html#module-shutil
mention that copyfile can raise IOError, but they omit to mention that
copyfile can also raise shutil.Error.

Also, just out of interest, I notice that Sphinx now supports the
':raises:' field. Are there any plans for the Python documentation to
start using it?

@steve21 steve21 mannequin assigned birkenfeld Dec 1, 2008
@steve21 steve21 mannequin added the docs Documentation in the Doc dir label Dec 1, 2008
@birkenfeld
Copy link
Member

Fixed in r67580.

If we want to start using things like :raises:, it will have to be in
some coordinated fashion so that it doesn't occur in isolated places.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

1 participant