Message358554
> 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:41 | eric.snow | set | recipients:
+ eric.snow, rhettinger |
2019-12-17 16:24:41 | eric.snow | link | issue39058 messages |
2019-12-17 16:24:40 | eric.snow | create | |
|