Ram Rachum <r...@rachum.com> added the comment:

Remi: Your use case is taken care of by `len(path.parts)`.

Serhiy: "If it is not iterable, the length does not make sense." I'm not sure 
this is a rule. I do see that the `collections.abc.Sized` class does not 
require an `__iter__` method to be defined.

----------
nosy: +brandtbucher

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

Reply via email to