Life's better without braces
Gerrit Holl
gerrit.holl at pobox.com
Tue Feb 22 16:55:22 EST 2000
More information about the Python-list mailing list
Tue Feb 22 16:55:22 EST 2000
- Previous message (by thread): Life's better without braces
- Next message (by thread): Life's better without braces
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
<quote name="Aahz Maruch" date="951249670"> > In article <20000222213539.C4549 at stopcontact.palga.uucp>, > Gerrit Holl <gerrit at nl.linux.org> wrote: > ><quote name="Andrew M. Kuchling" date="951150482"> > >> > >> [2] I occasionally think about this problem. The setup: GvR was far > >> too profligate in adding functions to bltinmodule.c that could have > >> been written in pure Python instead. So, how many built-in functions > >> can you re-implement in pure Python? > > > >These are possible: > > > >abs, callable, chr, delattr, divmod, > >execfile, filter, getattr, hex, input, int, isinstance, issubclass, > >len, list, long, map, max, min, oct, range, raw_input, reduce, reload, > >repr, setattr, tuple, vars. > > > >These aren't: > > > >apply, buffer, coerce, compile, complex, dir, eval, exit, globals, hash, > >id, intern, locals, round, slice, type, xrange > > Hmmm? What makes you say that range() is possible in pure Python and > xrange() is not? (I think the latter requires a class with __getitem__ > but is otherwise doable.) xrange returns an XRangeType; can I return that from a Python function? regards, Gerrit. -- Comparison Python GUI's: http://www.nl.linux.org/~gerrit/gui.html Please comment!
- Previous message (by thread): Life's better without braces
- Next message (by thread): Life's better without braces
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list