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
Pathlib, Pathlib everywhere. #12515
Comments
for example see #12512 |
Hi @Carreau, if no one is working on /core/page.py for using Pathlib, can I take this part? |
Sure, please. Thanks. |
Hi, I would like to work on core/interactiveshell.py and add there more use of Pathlib. |
Hey @Carreau can I take on testing/iptestcontroller.py and core/magics/execution.py ? |
Might also be of use: https://docs.python.org/3/library/pathlib.html#correspondence-to-tools-in-the-os-module There are many places other than - conda_history = os.path.join(sys.prefix, 'conda-meta', 'history')
- return os.path.exists(conda_history)
+ return Path(sys.prefix, 'conda-meta', 'history').exists() |
That's a good point.
…On Sat, Oct 10, 2020 at 8:33 PM Blazej Michalik ***@***.***> wrote:
Might also be of use:
https://docs.python.org/3/library/pathlib.html#correspondence-to-tools-in-the-os-module
There are many places other than with open() that might use pathlib
treatment:
- conda_history = os.path.join(sys.prefix, 'conda-meta', 'history')- return os.path.exists(conda_history)+ return Path(sys.prefix, 'conda-meta', 'history').exists()
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#12515 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADMY5F73MJDQ6CL32KEUZS3SKD4LXANCNFSM4QNPWX2Q>
.
|
Although... some of them might be less trivial and more error prone, especially when they're interpreted as text. For example, when returning a |
Hi everyone, I'm trying to review all the PRs, there are many tacking this issues, be careful some of you are sending changes for which there are already other PRs opened. |
Why is this closed now? |
This comment has been minimized.
This comment has been minimized.
Awww, sorry ashwinvis you do not seem to be allowed to do that, please ask a repository maintainer. |
I am new to open source contribution and would love to work on this issue. After I am done with my changes, what would be the easiest way to test the code before I create a PR? |
Hello @squarebat
|
I want to work on the
I have set up my environment using |
You have to use The |
Hello! This is my first time contributing to an open source project , I would like to work on this issue . |
Carreau commentedAug 27, 2020
•
edited
There are many places where we could make use of Pathlib.
Look for any places that uses
with open(...)
and ask yourself:Path()
,Don't try to bite more than you can chew (or more than I can review), try to fix 1 place at a time.
The text was updated successfully, but these errors were encountered: