Comments (6)
Nice. Sounds good. I welcome the contributions. In cases where the functionality is duplicative and the pathlib syntax is inarguably as good, let's also deprecate any local pecularities.
from path.
In #218, I'm working on adding support for .suffix
, .with_stem
, and .with_name
.
from path.
Looks like link_to was replaced by hardlink_to and removed.
from path.
I'm looking at symlink_to
and hardlink_to
, and it's interesting. pathlib's implementation is very different, switching the order of arguments. It's not obvious why the order of arguments was switched (from os.path equivalents) and in fact, the order was only switched in symlink_to originally and later in hardlink_to. I'm not sure yet if the other ones should be deprecated. I'm leaning toward keeping them for now.
Another difference is that pathlib doesn't return anything for symlink_to
or hardlink_to
, but the path implementation does. It seems to me that returning something would be useful, but I'm yet unsure what is best to return. I'll probably start with not returning anything at all (matching the pathlib behavior) unless there's a case to be made for a returned value.
from path.
I observe that Path.owner
and pathlib.Path.owner()
are incompatible. It won't be possible to align those without first deprecating .owner
.
from path.
Related Issues (20)
- Conflict upgrading project to path when other dependency depends on path.py HOT 3
- Autogenerated documentation mis-represents "mode" argument defaults HOT 3
- 15.0.0: test suite is failing HOT 6
- "For enterprise" link 404 HOT 2
- TempDir directory not deleted on interruption HOT 1
- 15.1.2: sphinx warnings HOT 1
- 15.1.2: pytest errors HOT 8
- 16.0.0: pytest errors
- Some tests can't be run on filesystems that have strict utf-8 mode HOT 1
- Add stacklevel=2 in deprecation warning
- Add method to see the setted permissions HOT 4
- `path.Path().files()` fails with `FileNotFoundError` HOT 2
- Inline the type annotations (if possible) HOT 1
- On windows `path.Path()` is an instance of class `pathlib.WindowsPath` HOT 1
- Compatibility with black of the newest version of pytest ? HOT 2
- Path.iterdir() is missing type annotation
- Regression in test_readlinkabs_passthrough HOT 2
- 16.13.0: pep517 based build fails with temporary directory created before start build HOT 1
- Missing annotation for `.suffix` in type stub
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from path.