the same is true for files: Deciding to iterate them line-wise is
relatively arbitrary, byte/char-wise would be equally intitive. So
something could be chosen.
But I think being explicit in the case of paths is really not that
inconvenient.
Serhiy Storchaka schrieb am So., 26. Feb. 2017 um
16:
On 26.02.17 15:39, Vamsi Krishna Avula wrote:
This is somewhere between a question and a proposal. I'm just trying to
understand why Path objects use an explicit iterdir method.
Why not make them iterable?
Because this is ambiguous. Iterating can mean many different things:
1. Iterate charact
This is somewhere between a question and a proposal. I'm just trying to
understand why Path objects use an explicit iterdir method.
Why not make them iterable?
--
Vamsi
___
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailma