"M.-A. Lemburg" <mal@lemburg.com> writes: > Wouldn't the following be faster ? > > l = map(chr, range(256)) > _idmap = str('').join(l) > del l It is, by a factor of roughly 3 (on my system). Committed as posted. Regards, Martin