Message378043
Presently the documentation for os.path (https://docs.python.org/3.8/library/os.path.html) doesn't contain any concrete examples of the input and outputs of the various path manipulation functions.
Contrast this to the Node.js documentation for similar functionality (https://nodejs.org/api/path.html)
We could add replesque examples such as:
>> os.path.abspath("example.py")
"/full/path/to/example.py"
...
>> os.path.basename("example.py")
"example"
& so on.
I believe it would be useful for us to have concrete examples here and I'm happy to contribute this. If anyone feels differently, let me know. |
|
Date |
User |
Action |
Args |
2020-10-05 16:06:07 | theacodes | set | recipients:
+ theacodes, docs@python |
2020-10-05 16:06:07 | theacodes | set | messageid: <1601913967.48.0.506783023492.issue41946@roundup.psfhosted.org> |
2020-10-05 16:06:07 | theacodes | link | issue41946 messages |
2020-10-05 16:06:07 | theacodes | create | |
|