gruns / furl

🌐 URL parsing and manipulation made easy.
Other
2.6k stars 151 forks source link

Fix original Path instance modification from __truediv__ #130

Closed mattmurch closed 3 years ago

mattmurch commented 3 years ago

Path class's truediv should make a true copy, and not modify the original instance of Path. Creating a new instance with path=self.segments sets the new instance's path as a pointer to the old instance's segments.

Also, add test assertion that the original instance is not modified with truediv when isabsolute is True.

Resolves: #127

gruns commented 3 years ago

Awesome PR! :tada:

Huge thank you, Matt.