[issue21041] pathlib.PurePath.parents rejects negative indexes

Antoine Pitrou report at bugs.python.org
Mon Mar 24 20:50:16 CET 2014


Antoine Pitrou added the comment:

Well, it is a sequence, it's just that it doesn't respect the convention about negative indices :-)

As to why they are disallowed, I don't remember exactly (!) but I think it's because the exact semantics would be confusing otherwise.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21041>
_______________________________________


More information about the Python-bugs-list mailing list