[issue20589] pathlib.owner() and pathlib.group() raise ImportError on Windows

2014-02-11 Thread James Skinner
James Skinner added the comment: Ok, I'm not sure when I got the idea they should return ids instead of the names :) But raising NotImplementedError is certainly an improvement on ImportError. As to implementing it on Windows, the answer by eryksun on this page works without requ

[issue20589] pathlib.owner() and pathlib.group() raise ImportError on Windows

2014-02-10 Thread James Skinner
New submission from James Skinner: When using the Path class in Lib/pathlib.py under Windows, calling p.owner() or p.group() fails with an ImportError due to importing the pwd and grp modules respectively, as neither of those exist. The documentation doesn't mention this behaviour.