[CentralOH] Debugging Help

Ty Day tyrday at gmail.com
Mon Nov 2 13:15:10 EST 2020


I believe my advice to check the python version is bad. I believe ` , *, `
to show keyword only arguments has been in python since 3.0.
https://www.python.org/dev/peps/pep-3102/

On Mon, Nov 2, 2020 at 12:38 PM Ty Day <tyrday at gmail.com> wrote:

> I don't know how to find out when things were added to python. But
> manually looking through
> https://docs.python.org/3.8/tutorial/controlflow.html#positional-or-keyword-arguments
> it seems like / and * to demark position only and keyword only arguments
> were added sometime in 3.7.... So, what version of python are you using?
>
> For example:
> ```
> def foo(pos_only, /, standard, *, kwd_only):
>     print(pos_only, standard, kwd_only)
> ```
> That works for me in python 3.7.7 but not in 3.7.1
>
> On Mon, Nov 2, 2020 at 8:26 AM Michael Durthaler <mdurthaler at sbcglobal.net>
> wrote:
>
>> Hello,
>>
>>
>>
>> I’m new to Python and am using Visual Studio 2019 Python Projects.
>>
>>
>>
>> Their Python Projects don’t respect … , * , … in the signature of a
>> method where all args after , * , are named or keyword args.  And the
>> course code I’m following does use this syntax.
>>
>>
>>
>> I’ve done my best to work around this by not using , *, but have such a
>> complex piece of code that it now breaks and I can’t find why.
>>
>>
>>
>> Should be a very fast view by a more seasoned Pythonista.  Would love
>> some help, who wants some Chic Fil A or IHOP? 😊  Or meet online with
>> Team Viewer?
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Michael Durthaler
>>
>> 8128 Trailhawk Dr.
>>
>> Blacklick, OH 43004
>>
>> mdurthaler at sbcglobal.net
>>
>> 740 739 4498 – Home
>>
>> 740 739 3765 – Cell
>>
>>
>>
>> A veteran is someone who, at some point in his life wrote a blank check
>> made Payable to “The United States of America” for an amount ‘up to and
>> including my life.’  That is Honor, and there are way too many people who
>> no longer understand it.
>>
>>
>> _______________________________________________
>> CentralOH mailing list
>> CentralOH at python.org
>> https://mail.python.org/mailman/listinfo/centraloh
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/centraloh/attachments/20201102/5d757d6e/attachment.html>


More information about the CentralOH mailing list