[Python-3000] Changing behavior of sequence multiplication by negative integer (original) (raw)
Slawomir Nowaczyk slawek at cs.lth.se
Thu Aug 10 16:49:07 CEST 2006
- Previous message: [Python-3000] Changing behavior of sequence multiplication by negative integer
- Next message: [Python-3000] threading, part 2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 expected.
An ugly result is worse than nice result, but still better than wrong result.
-- Best wishes, Slawomir Nowaczyk ( Slawomir.Nowaczyk at cs.lth.se )
All I want is a warm bed, and a kind word, and unlimited power.
- Previous message: [Python-3000] Changing behavior of sequence multiplication by negative integer
- Next message: [Python-3000] threading, part 2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]