News for hackers. Stuff that matters.
Re:Programming languages, operating systems, despair and anger by cabalamat on Wednesday April 14, 2010 @11:56AM (#1265239)
> It's a convenience so that every iterable object in the world doesn't need to implement a join() method.

The way to do this would be to have an IterableMixin that implements join() (and a load of other stuff) so long as the subclass implements a small number of basic methods.

Re:Programming languages, operating systems, despair and anger by X-Istence on Friday April 16, 2010 @07:24AM (#1270280)
Sure, but is it up to the programmer to "subclass" or somehow specify that his type implements IterableMixin? Or is it up to the python interpreter to realise that it implements certain functions and automatically do this?