Re: Too much builtins (was Re: Python's simplicity philosophy

From: Andrew Bennetts (andrew-pythonlist_at_puzzling.org)
Date: 11/18/03


Date: Tue, 18 Nov 2003 11:44:24 +1100
To: python-list@python.org

On Mon, Nov 17, 2003 at 02:55:11PM +0000, Alex Martelli wrote:
> Terry Reedy wrote:
>
> >> len
> > unless made a method, keep in
>
> A method of every sequence and container on Earth? Eeek.

Like __len__, you mean?

-Andrew.



Relevant Pages

  • Re: Container library progress
    ... in an associative container you access them by key. ... The index in the sequence IS the key. ... Adding a base point to a simple sequence makes it a virtual array ... insertion and deletion does not alter the key-value relationship. ...
    (comp.lang.c)
  • Re: How to avoid CMapStringToPtr sorting ?
    ... Is there any way to retrieve the keys in same order of insertion. ... The sequence of retrieved elements is indeterminate.' ... You can look up objects in a sequential container. ... MyObj obj; ...
    (microsoft.public.vc.mfc)
  • Re: War Zone: my review
    ... This sequence was as good as I could mentally ... So "To the Ends of the Earth" officially transitions back to the ... To the Ends of the Earth (unfilmed script) ...
    (rec.arts.sf.tv.babylon5.moderated)
  • Re: Order in the STL set?
    ... > I'd like to use a set as a container for my user defined objects. ... to have the elements accessible in a sorted order, ... Wouldn't a sequence container do what you need? ... static int control; ...
    (alt.comp.lang.learn.c-cpp)
  • Re: OO Style with Ada Containers
    ... but can serve as a sequence generator. ... An iterator always has a container behind. ... If you generate just a sequence, where do you know the mapping of the ...
    (comp.lang.ada)