argparse modify

Dennis Lee Bieber wlfraed at ix.netcom.com
Fri Jun 24 14:13:40 EDT 2022


On Thu, 23 Jun 2022 17:01:42 -0600, Mats Wichmann <mats at wichmann.us>
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 integer value of
this "constant" (and there should probably be a generic setter that... bars
changing value or name later). If a "name" keyword argument is not
supplied, using the str() of the value for the name might be valid.


-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
	wlfraed at ix.netcom.com    http://wlfraed.microdiversity.freeddns.org/


More information about the Python-list mailing list