A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-September/056135.html below:

[Python-Dev] Mixin classes in the standard library

[Python-Dev] Mixin classes in the standard library [Python-Dev] Mixin classes in the standard libraryNick Coghlan ncoghlan at gmail.com
Sun Sep 4 04:16:05 CEST 2005
Steven Bethard wrote:
> The same people that added __iter__(), next(), readline(), readlines()
> and writelines() to their file-like objects when technically these are
> all derivable from read() and write().  This is why I suggested
> providing a FileMixin class.  In retrospect, I'm surprised we don't
> already have one...

Where would we put it though? I sometimes wonder if there should be a 'mixins' 
module to provide a one-stop shop for finding things like DictMixin and ListMixin.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://boredomandlaziness.blogspot.com
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4