News for hackers. Stuff that matters.
Re:Python 2.8 Un-release Schedule by rictic on Tuesday March 13, 2012 @04:14PM (#3700184)
Why then is len special? Should we also have builtins to add to a collection?

If it is good design there, should others repeat it? For example, if a module author is defining a new protocol for a set of objects that anyone can implement should they provide functions that delegate to the methods in their protocol?

For myself I think that the python community can be counted on to be consistent without the need for this duplication and indirection.

Re:Python 2.8 Un-release Schedule by masklinn on Wednesday March 14, 2012 @06:01AM (#3702460)
> Should we also have builtins to add to a collection?

No, because each collection type (mapping, sequence, set, ...) has very different addition semantics (and potentially arguments as well). On the other hand, there is a builtin to iterate over stuff.