This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.snow
Recipients eric.snow, rhettinger
Date 2019-12-17.16:24:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
> 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. :)
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