Nov-08-2021, 09:09 PM
(Nov-08-2021, 06:00 AM)buran Wrote: this behavior would have been lost
i don't see how it would be lost. if called without option pad= then it would act shortest. i called with option pad= then it would act longest (which needs to know what to pad shorter iterables with). so if called with
pad=None
this is saying to use the value None
as the pad. so there needs to be a difference between using the pad=None
option and not using the pad
= option at all. i'm not inclined to post untested code where newbies might see it so i'm not going to show the whole thing, right now. but part of it has:do_stop = True if 'pad' in kwargs: do_stop = False pad = kwargs.pop('pad')
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.