rope icon indicating copy to clipboard operation
rope copied to clipboard

Pathlib

Open bagel897 opened this issue 2 years ago • 2 comments

Use pathlib internally in Rope's resource, file and folder classes. This will allow more compatibility with other projects and increase speed. Resource should also implement os.PathLike.

Steps to implement:

  1. add a pathlib property to resources
  2. Make internal functions depend on pathlib versions

bagel897 avatar Jun 05 '22 16:06 bagel897

I think having Resource, File, and Folder implement os.PathLike is a good idea.

However, the rest of proposal to use pathlib internally in Rope's resource is going to cause a lot of possibly backwards incompatible changes if not done carefully.

While in principle, I like the idea of using more pathlib, it needs to be done in a way that avoids breaking existing integrations.

lieryan avatar Jun 08 '22 15:06 lieryan

Related tickets: https://github.com/python-rope/rope/issues/562

lieryan avatar Dec 14 '22 06:12 lieryan