Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
parallel iterables
#10
(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.
Reply


Messages In This Thread
parallel iterables - by Skaperen - Nov-06-2021, 07:45 AM
RE: parallel iterables - by Gribouillis - Nov-06-2021, 09:23 AM
RE: parallel iterables - by Skaperen - Nov-07-2021, 08:17 PM
RE: parallel iterables - by Yoriz - Nov-07-2021, 08:27 PM
RE: parallel iterables - by Gribouillis - Nov-07-2021, 08:33 PM
RE: parallel iterables - by Skaperen - Nov-08-2021, 01:09 AM
RE: parallel iterables - by buran - Nov-08-2021, 06:00 AM
RE: parallel iterables - by Gribouillis - Nov-08-2021, 07:52 AM
RE: parallel iterables - by buran - Nov-08-2021, 08:23 AM
RE: parallel iterables - by Skaperen - Nov-08-2021, 09:09 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020