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

Convert PathBuf & Path into python pathlib.Path instead of PyString #4925

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bschoenmaeckers
Copy link
Contributor

@bschoenmaeckers bschoenmaeckers commented Feb 19, 2025

closes #4907

@bschoenmaeckers bschoenmaeckers force-pushed the pathbuf-pathlib branch 3 times, most recently from 7a4cd73 to 5adfc6c Compare February 20, 2025 09:46
@LilyFoote
Copy link
Contributor

How do we handle paths that are not utf-8? I believe both Rust and Python have ways to represent these, but I think especially on the Rust side, this is considered an implementation detail and I'm not sure we can safely convert between them.

@Icxolu
Copy link
Contributor

Icxolu commented Feb 21, 2025

Not a full review (yet), but I think we need to keep the current behavior for the deprecated IntoPy and ToPyObject impls.

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.

Support converting std::path::{Path, PathBuf} to pathlib.Path
3 participants