This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients cjwelborn, cool-RR, pitrou, serhiy.storchaka
Date 2014-01-21.11:06:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390302392.77.0.739022633767.issue20218@psf.upfronthosting.co.za>
In-reply-to
Content
> Christopher and Serhiy, I would appreciate if you could kindly explain why your arguments, while applying to my suggestions, do not apply to the following functions:

1. Path.stat() wraps only one function, while Path.read() wraps two functions. It's signature should be a sum of open() and read() signatures: Path.read(encoding, errors, newline, size) (I have omitted some open's parameters). This is a little cumbersome.

2. os.stat() requires `import os`, while open() is builtin.

3. If add Path.read(), what about Path.readlines() and Path.readline()?

4. I believe Path.stat() will be used much more often than Path.read().

5. Path.stat() corresponds to low-level os.stat(), but for low-level os.read() the high-level corresponding is FileIO.read(). And this corresponding is much more universal and useful.
History
Date User Action Args
2014-01-21 11:06:32serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, cool-RR, cjwelborn
2014-01-21 11:06:32serhiy.storchakasetmessageid: <1390302392.77.0.739022633767.issue20218@psf.upfronthosting.co.za>
2014-01-21 11:06:32serhiy.storchakalinkissue20218 messages
2014-01-21 11:06:32serhiy.storchakacreate