[Python-ideas] duck typing for io write methods

Wolfgang Maier wolfgang.maier at biologie.uni-freiburg.de
Thu Jun 13 15:46:52 CEST 2013


Nick Coghlan <ncoghlan at ...> writes:

> 
> A good point. That reduces it to arguing for slowing down the common
> cases to check for an incredibly niche case, which is still a hard
> sell (just not as hard a sell as breaking backwards compatibility).
> 
> Inheriting from builtins is generally a bad idea, and this kind of
> quirky result is one of the main reasons why.
> 
> Cheers,
> Nick.

ok, I get the point, and you're probably right. But since I like
consistency: why are things different with built-in iterables then?






More information about the Python-ideas mailing list