[Python-3000] Changing behavior of sequence multiplication by negative integer

Slawomir Nowaczyk slawek at cs.lth.se
Thu Aug 10 16:49:07 CEST 2006

On Thu, 10 Aug 2006 10:13:14 -0400
Jim Jewett <jimjjewett at gmail.com> wrote:

#> >    seq = seq + pad * (min_length- len(seq))
#> Typically, if I need to pad a sequence to a minimum length, I really
#> need it to be a specific length.  Having it already be too long is
#> likely to cause problems later.  So I really do prefer the explicit
#> version.

Well, for whatever it is worth, if I pad the data to present it in a
readable form I *most definitely* do not want values to become
truncated just because they turn out to be bigger than I originally

An ugly result is worse than nice result, but still better than wrong

 Best wishes,
   Slawomir Nowaczyk
     ( Slawomir.Nowaczyk at cs.lth.se )

All I want is a warm bed, and a kind word, and unlimited power.

More information about the Python-3000 mailing list