Re: argparse modify

2022-06-24 Thread Dennis Lee Bieber
On Thu, 23 Jun 2022 17:01:42 -0600, Mats Wichmann declaimed the following: >Assuming: that the "value" in your init method signature was supposed to >be 'name' since that's what you use later - and would explain your >exception! > Since it is a "named int", I'd expect value to the

Re: argparse modify

2022-06-24 Thread נתי שטרן
Thanks a lot. I will read documentation of enum module בתאריך יום ו׳, 24 ביוני 2022, 14:33, מאת Roel Schroeven ‏< r...@roelschroeven.net>: > Op 24/06/2022 om 0:32 schreef Dennis Lee Bieber: > > On Thu, 23 Jun 2022 18:57:31 +0200, "Dieter Maurer" > > declaimed the following: > > > > >???

Re: argparse modify

2022-06-24 Thread Roel Schroeven
Op 24/06/2022 om 0:32 schreef Dennis Lee Bieber: On Thu, 23 Jun 2022 18:57:31 +0200, "Dieter Maurer" 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

argparse modify

2022-06-24 Thread נתי שטרן
Can you help me for solve it בתאריך יום שישי, 24 ביוני 2022, מאת Dennis Lee Bieber : > On Thu, 23 Jun 2022 18:57:31 +0200, "Dieter Maurer" > declaimed the following: > > >??? wrote at 2022-6-23 15:31 +0300: > >>how to solve this (argparse) > > >>MAXREPEAT =

Fwd: argparse modify

2022-06-24 Thread נתי שטרן
הודעה שהועברה -- מאת: *Dieter Maurer* תאריך: יום שישי, 24 ביוני 2022 נושא: argparse modify אל: נתישטרן עותק: "python-list-requ...@python.org" , " python-list@python.org" נתי שטרן wrote at 2022-6-24 08:28 +0300: >I copied code from argpar

Re: argparse modify

2022-06-24 Thread Dieter Maurer
נתי שטרן wrote at 2022-6-24 08:28 +0300: >I copied code from argparse library and modified it > >בתאריך יום חמישי, 23 ביוני 2022, מאת Dieter Maurer : > >> נתי שטרן wrote at 2022-6-23 15:31 +0300: >> >how to solve this (argparse) >> > >> > >> >traceback: >> >Traceback (most recent call last): >> >

Re: argparse modify

2022-06-23 Thread נתי שטרן
I copied code from argparse library and modified it בתאריך יום חמישי, 23 ביוני 2022, מאת Dieter Maurer : > נתי שטרן 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 > >class

Re: argparse modify

2022-06-23 Thread Chris Angelico
On Fri, 24 Jun 2022 at 09:03, Mats Wichmann wrote: > Also note that while it's claimed to be fine These Days, inheriting from > a base type like this is sometimes tricky, sometimes broken... be > somewhat aware. Depends on your definition of "broken". If you want to make a custom integer type,

Re: argparse modify

2022-06-23 Thread Mats Wichmann
On 6/23/22 16:32, Dennis Lee Bieber wrote: > On Thu, 23 Jun 2022 18:57:31 +0200, "Dieter Maurer" > 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

Re: argparse modify

2022-06-23 Thread Dennis Lee Bieber
On Thu, 23 Jun 2022 18:57:31 +0200, "Dieter Maurer" 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

Re: argparse modify

2022-06-23 Thread Dieter Maurer
נתי שטרן 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 >class sre_constants(): > File "u:\oracle\RTR.py", line 77, in sre_constants >MAXREPEAT = _NamedIntConstant(32,name=str(32))

argparse modify

2022-06-23 Thread נתי שטרן
how to solve this (argparse) traceback: Traceback (most recent call last): File "u:\oracle\RTR.py", line 10, in 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