[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-02-08 Thread Iurii Kemaev
New submission from Iurii Kemaev : Dataclasses derived from empty frozen bases skip immutability checks. Repro snippet: ``` import dataclasses @dataclasses.dataclass(frozen=True) class Base: pass @dataclasses.dataclass class Derived(Base): a: int d = Derived(2) # OK ``` Usecase: someti

[issue43176] Dataclasses derived from empty frozen bases skip immutability checks

2021-02-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue43160] argparse: add extend_const action

2021-02-08 Thread Tony Lykke
Tony Lykke added the comment: Perhaps the example I added to the docs isn't clear enough and should be changed because you're right, that specific one can be served by store_const. Turns out coming up with examples that are minimal but not too contrived is hard! Let me try again with a longer

[issue43160] argparse: add extend_const action

2021-02-08 Thread Tony Lykke
Tony Lykke added the comment: Sorry, there's a typo in my last comment. --store --foo a Namespace(foo=['a', 'b', 'c']) from the first set of examples should have been --store --foo c Namespace(foo=['a', 'b', 'c']) -- _

<    1   2