Python Forum
how to make a keyword arg w/o a default value?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to make a keyword arg w/o a default value?
#8
(Jun-29-2020, 07:40 PM)Skaperen Wrote: i'm trying to make it be a required argument that can be given either positional or keyword and be required one way or the other. but maybe i want it to be keyword only, and required. i guess Python just doesn't have that.

I don't know that I understand what you're asking. The first part says positional or keyword, and the second part says keyword only. Both are possible, just not both at the same time.
Reply


Messages In This Thread
RE: how to make a keyword arg w/o a default value? - by bowlofred - Jun-29-2020, 08:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Find a specific keyword after another keyword and change the output sgtmcc 5 978 Oct-05-2023, 07:41 PM
Last Post: deanhystad
  Trying to search and make new column from the keyword. dgarg 1 1,550 Dec-20-2021, 08:41 PM
Last Post: deanhystad
  How to make the python default language be 3.6 instead of 2.7 sylas 4 6,933 Jul-06-2018, 06:11 AM
Last Post: sylas

Forum Jump:

User Panel Messages

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