[Python-ideas] Dunder method to make object str-like
Ethan Furman
ethan at stoneleaf.us
Thu Apr 7 15:43:27 EDT 2016
More information about the Python-ideas mailing list
Thu Apr 7 15:43:27 EDT 2016
- Previous message (by thread): [Python-ideas] Dunder method to make object str-like
- Next message (by thread): [Python-ideas] Dunder method to make object str-like
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 04/07/2016 12:17 PM, Brett Cannon wrote: > How do you make Python 3.3 code work with this when the ABC will simply > not be available to you unless you're running Python 3.4.3, 3.5.2, or > 3.6.0 (under the assumption that the ABC is put in pathlib and > backported thanks to its provisional status)? The ternary operator > one-liner is backwards-compatible while the ABC is only forward-compatible. __os_path__ (or whatever it's called) also won't be available on those earlier versions -- so I'm not seeing that the ABC route as any worse. Am I missing something? -- ~Ethan~
- Previous message (by thread): [Python-ideas] Dunder method to make object str-like
- Next message (by thread): [Python-ideas] Dunder method to make object str-like
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list