Terry J. Reedy added the comment:

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.

----------
nosy: +terry.reedy
stage:  -> test needed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22123>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to