argparse modify

נתי שטרן nsh531 at gmail.com
Fri Jun 24 03:45:35 EDT 2022


Can you help me for solve it
בתאריך יום שישי, 24 ביוני 2022, מאת Dennis Lee Bieber <wlfraed at ix.netcom.com
>:
> On 2022年6月23日 18:57:31 +0200, "Dieter Maurer" <dieter at handshake.de>
> declaimed the following:
>> >??? ???? wrote at 2022年6月23日 15:31 +0300:
> >>how to solve this (argparse)
>> >> MAXREPEAT = _NamedIntConstant(32,name=str(32))
> >>TypeError: 'name' is an invalid keyword argument for int()
> >
> >This does not look like an `argparse` problem:
> >the traceback comes from `oracle/RTR.py`.
>> And the listed code looks quite suspicious to me...
>> >> class _NamedIntConstant(int):
> >> def __init__(cls, value):
> >> self = super(_NamedIntConstant, cls).__init__(cls, value)
> >> self.name = name
> >> return self
>> There does not appear to be any provision for keyword arguments at
> all.
> The only use of "name" is to an undefined object.
>>> --
> Wulfraed Dennis Lee Bieber AF6VN
> wlfraed at ix.netcom.com http://wlfraed.microdiversity.
> freeddns.org/
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
<https://netanel.ml>


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /