Jun-29-2020, 07:43 PM
(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.well that sounds exactly like positional argument - it's required and can be supplied either as positional or keyword.
the only drawback is - if you supply it as keyword all arguments after that one must be supplied as keyword as well
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs