By Seecr

Software Craftsmanship

Seecr - Software Craftsmanship A service by Seecr,
This site was last updated on March 22 2012

Changeset: integerlist-cleanup

Title

Removed some code from IntegerList (making __iter__ slightly faster as well).

Description

IntegerList._parseSlice could be simplified by using the slice.indices method.
IntegerList.__iter__ could be simplified (and sped up) by removing loop over xrange
(because index needs to be checked against current length each time anyway).

Packages containing this changeset

meresco-components

Creation date

2011-12-30

Versions where this changeset is applied

Baseline version

https://meresco.svn.sourceforge.net/svnroot/meresco/meresco-components/workingsets/3.4.26-Seecr/version_0

Filename

201112301407.integerlist-cleanup.changeset [download]