-
-
Notifications
You must be signed in to change notification settings - Fork 176
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
update example in README #537
Comments
I agree that it might make sense to use "more modern" Python in the example, but that probably can't happen until after #317 has been resolved? |
@lurch Thanks for the info. I agree with the last comment in the mentioned issue (#317 (comment)), and yes, to my mind, #317 should be closed first (or simultaneously with this issue). |
I suppose we could have both, |
I quite disagree, according to PEP 20: "There should be one-- and preferably only one --obvious way to do it." We should choose between According to https://docs.python.org/3/library/pathlib.html ("For low-level path manipulation on strings, you can also use the os.path module.") I would vote for But I let the final decision to the project contributors. |
|
I've just given this a bit more thought... the |
Currently, the example
count_python_loc
is misleading, the normal Python version is way easier than what is suggested, at least if you don't consider Python versions that are end of life (https://devguide.python.org/#status-of-python-branches and https://devguide.python.org/devcycle/#end-of-life-branches).The normal version should be something like:
To my mind, this should be reflected in the documentation. And maybe a
read_text
and aread_bytes
method equivalent could be added. What's your opinion on this?The text was updated successfully, but these errors were encountered: