[Python-ideas] Dunder method to make object str-like
Chris Barker
chris.barker at noaa.gov
Thu Apr 7 15:10:24 EDT 2016
On Thu, Apr 7, 2016 at 12:06 PM, Ethan Furman <ethan at stoneleaf.us> wrote:
> that's the question -- are these subtle and hard to find bugs we want to
>> prevent?
>>
>
> If we are trying to fix issues, why would we leave the door open to other,
> more subtle, bugs?
>
we're not trying to fix issues -- we're trying to make Path compatible with
the stdlib and other libs that use strings as path.
Or do you mean that not having Path subclass str is trying to fix issues,
in which case, yes, I suppose, but you need to stop somewhere, or we'll
have a statically typed language...
-CHB
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160407/a806c4a9/attachment.html>
More information about the Python-ideas
mailing list