On 07/08/2014 01:22 PM, Ethan Furman wrote:
I think caching the attributes for DirEntry is fine, but let's do it as a snapshot of that moment in time, not name now, and attributes in 30 minutes when we finally get to you because we had a lot of processing/files ahead of you (you being a DirEntry ;) .
This bit is wrong, I think, since scandir is a generator -- there wouldn't be much time passing between the direntry call and the stat call in any case. Hopefully my other points still hold.
-- ~Ethan~ _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com