On 04/11/2016 12:00 PM, Brett Cannon wrote: > On Mon, 11 Apr 2016 at 11:28 Ethan Furman wrote: >> I would write the above as: >> >> def fspath(path, *, allow_bytes=False): > > You get type consistency from so.fspath(), not the protocol, though. Well, since the protocol is also a function, we could put the allow_bytes on that as well -- not sure if that is a good idea or not. -- ~Ethan~
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4