Skip to content

Change string concatenation to use pathlib - #118

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

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

Conversation

@dennisbrookner

Copy link
Copy Markdown
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.
@kbonzon

kbonzon commented Jul 3, 2026

Copy link
Copy Markdown

Hi @dennisbrookner,

Rarely used indeed and yet it happened to me! Thanks for opening this branch. I had to modify my local version to get matchmaps to use my custom eff. Glad to see it is being addressed.

Best,
Tim.

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.

2 participants