[Python-ideas] Dunder method to make object str-like

Ethan Furman ethan at stoneleaf.us
Thu Apr 7 15:06:40 EDT 2016

On 04/07/2016 11:59 AM, Chris Barker wrote:

> Though no, most calls to open() would not fail -- most calls to
> open(path, 'r') would but most calls to open(path, 'w') would succeed
> and produce some really weird filenames -- but so what?
> 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?


More information about the Python-ideas mailing list