Top and Bottom Values [PEP: 326]

Paul Rubin http
Thu Sep 28 06:32:59 EDT 2006


Paul Rubin <http://phr.cx@NOSPAM.invalid> writes:
> > sys.maxint - 3 to sys.maxint + 7. I'm not sure tbl[:Top]
> > would do what it is supposed to do in those circumstances.

> Top = object()
> class Table(list):
...

Oh wait, I missed the : in your tbl[:Top] example.  Yeah, you could
hair up Table to account for slices, I'll leave the exercise to you.



More information about the Python-list mailing list