New submission from Stargirl Flowers <me@thea.codes>:

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.

----------
assignee: docs@python
components: Documentation
messages: 378043
nosy: docs@python, theacodes
priority: normal
severity: normal
status: open
title: Add concrete examples to os.path documentation
type: enhancement

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41946>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to