Author eric.snow
Recipients eric.snow, rhettinger
Date 2019-12-17.16:24:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CALFfu7Ao2=MPM9+n0T3hUw0fApX24xDcHp0QdDu8OYAMq6Ed5A@mail.gmail.com>
In-reply-to <1576448164.39.0.171350779582.issue39058@roundup.psfhosted.org>
Content
> Currently, Namespace() objects sort the attributes in the __repr__.  This is annoying because argument
> order matters and because everywhere else in the module we preserve order (i.e. users see help in the
> order that arguments are added).

Hmm, I was going to suggest switching to types.SimpleNamespace, but
realized we sort that repr too (likely for the same reason).  I've
opened issue #39075 to address that.

In writing up that issue, I considered that a sorted repr can be
useful in some cases.  However, I don't think any of those cases
really apply here.

Anyway, I agree with your conclusion. :)
History
Date User Action Args
2019-12-17 16:24:41eric.snowsetrecipients: + eric.snow, rhettinger
2019-12-17 16:24:41eric.snowlinkissue39058 messages
2019-12-17 16:24:40eric.snowcreate