[issue39076] Use types.SimpleNamespace for argparse.Namespace

2020-05-17 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> rejected stage: test needed -> resolved status: open -> closed ___ Python tracker ___ _

[issue39076] Use types.SimpleNamespace for argparse.Namespace

2019-12-27 Thread Eric Snow
Eric Snow added the comment: Anyway, this probably isn't a discussion worth extending much further. I don't think it's important enough. :) So if you have reservations about this then feel free to close the issue. -- ___ Python tracker

[issue39076] Use types.SimpleNamespace for argparse.Namespace

2019-12-27 Thread Eric Snow
Eric Snow added the comment: Sorry if there was any confusion. I didn't mean to suggest we get rid of argparse.Namespace (in favor of SimpleNamespace). Rather, the former would subclass the latter. > * types.SimpleNamespace() sorts attributes, so this would get in the way of > issue #39058.

[issue39076] Use types.SimpleNamespace for argparse.Namespace

2019-12-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: There are some sticking points: * types.SimpleNamespace() sorts attributes, so this would get in the way of issue #39058. * argparse.Namespace() supports a __contains__() method that isn't offered by types.SimpleNamespace(): >>> 'abc' in Namespace(a

[issue39076] Use types.SimpleNamespace for argparse.Namespace

2019-12-17 Thread paul j3
Change by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue39076] Use types.SimpleNamespace for argparse.Namespace

2019-12-17 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue39076] Use types.SimpleNamespace for argparse.Namespace

2019-12-17 Thread Eric Snow
New submission from Eric Snow : types.SimpleNamespace does pretty much exactly the same thing as argparse.Namespace. We should have the latter subclass the former. I expect the only reason that wasn't done before is because SimpleNamespace is newer. The only thing argparse.Namespace does di