נתי שטרן wrote at 2022-6-24 08:28 +0300: >I copied code from argparse library and modified it > >בתאריך יום חמישי, 23 ביוני 2022, מאת Dieter Maurer <die...@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. -- https://mail.python.org/mailman/listinfo/python-list