Message293245
| Author |
brett.cannon |
| Recipients |
brett.cannon, louielu, serhiy.storchaka, svelankar |
| Date |
2017年05月08日.17:40:48 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1494265248.87.0.243743089561.issue29447@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The key thing with the docs is that it doesn't say anywhere "takes a string path" or a "path as a string" or something else that suggests path-like objects don't work. If you want to clearly state that path-like objects are acceptable that is fine as well.
As for the bytes/str parts, path-like objects that return bytes should work, but only if everything is str or bytes as passed into the function (e.g. mixing the types should not be expected to work). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年05月08日 17:40:48 | brett.cannon | set | recipients:
+ brett.cannon, serhiy.storchaka, louielu, svelankar |
| 2017年05月08日 17:40:48 | brett.cannon | set | messageid: <1494265248.87.0.243743089561.issue29447@psf.upfronthosting.co.za> |
| 2017年05月08日 17:40:48 | brett.cannon | link | issue29447 messages |
| 2017年05月08日 17:40:48 | brett.cannon | create |
|