ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH

Reference
ActivePython 2.5
Python Documentation
Library Reference
3. Built-in Types
3.6 Sequence Types -- str, unicode, list, tuple, buffer, xrange
3.6.3 XRange Type

MyASPN >> Reference >> ActivePython 2.5 >> Python Documentation >> Library Reference >> 3. Built-in Types >> 3.6 Sequence Types -- str, unicode, list, tuple, buffer, xrange
ActivePython 2.5 documentation


3.6.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 have very little behavior: they only support indexing, iteration, and the len() function.

See About this document... for information on suggesting changes.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved