Skip to content

Change string concatenation to use pathlib#118

Open
dennisbrookner wants to merge 1 commit intomainfrom
patch-pathlib-concat-bug
Open

Change string concatenation to use pathlib#118
dennisbrookner wants to merge 1 commit intomainfrom
patch-pathlib-concat-bug

Conversation

@dennisbrookner
Copy link
Member

pathlib objects cleverly override the / operator to mean "concatentate these file paths"; however, this means that pathlib objects cannot be concatenated by a + like you would with a string.

This bug persisted because it lived in a rarely-used else block.

pathlib objects cleverly override the `/` operator to mean "concatentate these file paths"; however, this means that pathlib objects *cannot* be concatenated by a `+` like you would with a string.

This bug persisted because it lived in a rarely-used `else` block.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant