Radu Grigore <radugrigore(a)gmail.com> added the comment:
I would say something like the following.
The function join(path1, path2) is almost like os.sep.join(path1, path2), but (1) trailing path separators in path1 are ignored and (2) the result is simply path2 when path2 is an absolute path. The call join(path1, path2, path3) is equivalent to join(join(path1, path2), path3), and similarly for more than three paths.
----------
_______________________________________
Python tracker &…
[View More]lt;report(a)bugs.python.org>
<http://bugs.python.org/issue9921>
_______________________________________
[View Less]
Antoine Pitrou <pitrou(a)free.fr> added the comment:
The recommended way is to use PyBuffer_FillInfo() (and then fill in any additional data if necessary), which will set the pointer and incref it itself.
I agree all this is a bit poorly documented.
----------
assignee: -> docs@python
components: +Documentation -Interpreter Core
nosy: +docs@python, pitrou
stage: -> needs patch
versions: +Python 2.7, Python 3.1
_______________________________________
Python tracker <report(a)…
[View More]bugs.python.org>
<http://bugs.python.org/issue10001>
_______________________________________
[View Less]