[Python-ideas] Better stdlib support for Path objects
Antoine Pitrou
solipsis at pitrou.net
Tue Oct 7 17:39:43 CEST 2014
On Wed, 8 Oct 2014 00:49:12 +1000
Nick Coghlan <ncoghlan at gmail.com> wrote:
>
> Combining this thought with Chris Angelico's reply, I actually wonder
> if the index vs int analogy is even more applicable than I first
> thought.
>
> What if the protocol was __text__ with a new text() builtin (or at
> least an operator.text() function), and it was advised to only be
> implemented by types where they were, at least conceptually, truly
> representable as strings?
What does "truly representable, at least conceptually" mean?
Do HTML trees apply? Configuration files? Command-line arguments?
Regards
Antoine.
More information about the Python-ideas
mailing list