• Fwd: argparse modify

    From =?UTF-8?B?16DXqteZINep15jXqNef?=@21:1/5 to All on Fri Jun 24 09:07:19 2022
    ------------ הודעה שהועברה ----------
    מאת: *Dieter Maurer* <dieter@handshake.de>
    תאריך: יום שישי, 24 ביוני 2022
    נושא: argparse modify
    אל: נתישטרן <nsh531@gmail.com>
    עותק: "python-list-request@python.org" <python-list-request@python.org>, " python-list@python.org" <python-list@python.org>


    נתי שטרן wrote at 2022-6-24 08:28 +0300:
    I copied code from argparse library and modified it

    בתאריך יום חמישי, 23 ביוני 2022, מאת Dieter Maurer <dieter@handshake.de>:

    נתי שטרן wrote at 2022-6-23 15:31 +0300:
    how to solve this (argparse)


    traceback:
    Traceback (most recent call last):
    File "u:\oracle\RTR.py", line 10, in <module>
    class sre_constants():
    File "u:\oracle\RTR.py", line 77, in sre_constants
    MAXREPEAT = _NamedIntConstant(32,name=str(32))
    TypeError: 'name' is an invalid keyword argument for int()

    The exception information tells you:
    ` _NamedIntConstant(32,name=str(32))` raises a `TypeError`:
    `_NamedIntConstant` does not know the keyword parameter `name`.
    Thus, something is wrong with the `_NamedIntConstant` definition.
    Do you have an idea for fixing it?

    --
    <https://netanel.ml>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)