On Sat, May 14, 2016 at 2:34 AM, Ethan Furman <ethan at stoneleaf.us> wrote: > I would say use `type(x).__fspath__`. I'm not aware of any other __dunder__ > method that doesn't access the attribute from the type instead of the > instance, and I see no point in making this one different. > __reduce__ / __reduce_ex__ in pickle.py is accessed with a straight-forward getattr() call. It's the ones that are called from deep within the interpreter core (eg __iter__) that are always looked up on the type. ChrisA
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