Message224595
Making types.SimpleNamespace more easily available might be a good idea. Screwing around with our fundamental base class to do so is not. Neither is rebinding the builtin name 'object'. Find a different way to accomplish the goal.
SimpleNamespace *could* have been added to builtins, but was not. Instead, it was added to types, which is the catchall for types not used enough to be in builtins. Someone might check the issue or list discussion as to why.
At one time object had the bug of silently ignoring arguments. Years ago, Guido insisted that this be fixed and wrote patches himself. See #1683368. For one thing, raising the exception catches bugs with cooperative multiple inheritance and super calls. I believe having object() return a subclass of object that in not a superclass of other classes would be worse than the previous bug.
I think this idea should have been left on python-list or moved to python-ideas for further development. I am sure that the proposal as stated should be rejected. |
|
Date |
User |
Action |
Args |
2014-08-02 22:54:24 | terry.reedy | set | recipients:
+ terry.reedy, barry, mark, BreamoreBoy, ethan.furman, serhiy.storchaka |
2014-08-02 22:54:24 | terry.reedy | set | messageid: <1407020064.07.0.677514386821.issue22123@psf.upfronthosting.co.za> |
2014-08-02 22:54:24 | terry.reedy | link | issue22123 messages |
2014-08-02 22:54:23 | terry.reedy | create | |
|