Python Forum
is there a way: repeat key word args
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
is there a way: repeat key word args
#1
i would like to allow the same key word argument to be repeated as many times as desired with different values, just as i can do on command arguments. if this is not possible the i will have to just live with accepting a list or set (or tuple or frozenset).
    x = explore(1,place='usa',place='eu')
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
is there a way: repeat key word args - by Skaperen - Feb-02-2020, 12:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Why do I have to repeat items in list slices in order to make this work? Pythonica 7 1,324 May-22-2023, 10:39 PM
Last Post: ICanIBB
Question How to compare two parameters in a function that has *args? Milan 4 1,263 Mar-26-2023, 07:43 PM
Last Post: Milan
  Repeat request by else stsxbel 2 1,172 Jul-30-2022, 03:34 PM
Last Post: stsxbel
  get out of while loop and stop repeat Frankduc 11 2,961 Apr-26-2022, 10:09 PM
Last Post: deanhystad
  Avoid multiple repeat in indent Frankduc 8 2,877 Jan-18-2022, 05:46 PM
Last Post: Frankduc
Question Problem: Check if a list contains a word and then continue with the next word Mangono 2 2,488 Aug-12-2021, 04:25 PM
Last Post: palladium
  *args implementation and clarification about tuple status amjass12 10 4,022 Jul-07-2021, 10:29 AM
Last Post: amjass12
  [SOLVED] Good way to handle input args? Winfried 2 2,056 May-18-2021, 07:33 PM
Last Post: Winfried
  Two Questions, *args and //= beginner721 8 3,490 Feb-01-2021, 09:11 AM
Last Post: buran
  How to discard list repeat values akanowhere 7 3,671 Dec-28-2020, 09:14 PM
Last Post: akanowhere

Forum Jump:

User Panel Messages

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