GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing docs.python.org — 2.1.5.3 XRange Type

Previous Page Up One Level Next Page Python Library Reference Contents Module Index Index
Previous: 2.1.5.2 String Formatting Operations Up: 2.1.5 Sequence Types Next: 2.1.5.4 Mutable Sequence Types


2.1.5.3 XRange Type

The xrange type is an immutable sequence which is commonly used for looping. The advantage of the xrange type is that an xrange object will always take the same amount of memory, no matter the size of the range it represents. There are no consistent performance advantages.

XRange objects behave like tuples, and offer a single method:

tolist ()
Return a list object which represents the same values as the xrange object.


Previous Page Up One Level Next Page Python Library Reference Contents Module Index Index
Previous: 2.1.5.2 String Formatting Operations Up: 2.1.5 Sequence Types Next: 2.1.5.4 Mutable Sequence Types

See About this document... for information on suggesting changes.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.