Skip to content

Conversation

@barneygale
Copy link
Contributor

@barneygale barneygale commented Jan 13, 2024

Clarify that target_is_directory only matters if the target doesn't exist.


📚 Documentation preview 📚: https://cpython-previews--114035.org.readthedocs.build/

…)` docs

Clarify that *target_is_directory* only matters if the target doesn't
exist.
Copy link
Member

@AA-Turner AA-Turner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On reading this, I was confused by the word 'type', and it took me a second to realise this was file/directory. I've proposed an alternative wording that avoids this, but if I'm overblowing the issue then the current wording seems good.

A

@barneygale
Copy link
Contributor Author

Thanks Adam :)

@barneygale barneygale merged commit b822b85 into python:main Jan 23, 2024
@miss-islington-app
Copy link

Thanks @barneygale for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 23, 2024
…)` docs (pythonGH-114035)

Clarify that *target_is_directory* only matters if the target doesn't
exist.
(cherry picked from commit b822b85)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 23, 2024
…)` docs (pythonGH-114035)

Clarify that *target_is_directory* only matters if the target doesn't
exist.
(cherry picked from commit b822b85)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Jan 23, 2024

GH-114464 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Jan 23, 2024
@bedevere-app
Copy link

bedevere-app bot commented Jan 23, 2024

GH-114465 is a backport of this pull request to the 3.11 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.11 only security fixes label Jan 23, 2024
barneygale added a commit that referenced this pull request Jan 23, 2024
….)` docs (GH-114035) (#114464)

Clarify that *target_is_directory* only matters if the target doesn't
exist.
(cherry picked from commit b822b85)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
barneygale added a commit that referenced this pull request Jan 23, 2024
….)` docs (GH-114035) (#114465)

Clarify that *target_is_directory* only matters if the target doesn't
exist.
(cherry picked from commit b822b85)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…)` docs (python#114035)

Clarify that *target_is_directory* only matters if the target doesn't
exist.
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
…)` docs (python#114035)

Clarify that *target_is_directory* only matters if the target doesn't
exist.
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 skip news topic-pathlib

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants