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

splitPath() behavior synchronized with splitFile() #12481

Merged
merged 2 commits into from
Oct 28, 2019
Merged

Conversation

luav
Copy link
Contributor

@luav luav commented Oct 22, 2019

Behavior of the paths processing routines is made uniform as expected in all languages (and matches the one in Python), splitPath() docstrings are updated, tests are added for both splitPath() and splitFile().

…d behavior in all languages

splitPath() docstrings update, tests added for both splitPath() and splitFile()
@Araq
Copy link
Member

Araq commented Oct 22, 2019

This is a breaking change, so at least it needs a changelog entry and maybe some --define to get back the old behaviour.

@luav
Copy link
Contributor Author

luav commented Oct 22, 2019

@Araq you are right that the change is breaking but also it uniforms the API behaviour making it more intuitive and unambiguous. Let me know please if something specific is further required from my side to accomplish this fix.

@Araq
Copy link
Member

Araq commented Oct 23, 2019

Please write a changelog entry and do your patch conditionally like so:

when (NimMajor, NimMinor) <= (1, 0):
  # old version
else:
  # your version

@luav
Copy link
Contributor Author

luav commented Oct 25, 2019

@Araq the respective changelog entry is made and the code is taken into the required condition and optimized.

@kaushalmodi
Copy link
Contributor

kaushalmodi commented Oct 25, 2019

/cc @timotheecour As I remember him working of this area (path splitting and joining) of the stdlib.

@Araq Araq merged commit 580462c into nim-lang:devel Oct 28, 2019
@luav luav deleted the patch-5 branch October 28, 2019 13:49
kiyolee pushed a commit to kiyolee/nim that referenced this pull request Nov 7, 2019
* splitPath() behavior synchronized with splitFile() having the expected behavior in all languages

splitPath() docstrings update, tests added for both splitPath() and splitFile()

* Path splitting refined and described
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.

3 participants