Eric Snow <ericsnowcurren...@gmail.com> added the comment: > History with dictproxy means I'm also OK with "new type by stealth". > Perhaps add some tests to check "type(sys.implementation)()" does > something sane?
Test added. Here's what happens: >>> cls = type(sys.implementation) >>> cls() namespace() >>> cls(x=1, y=2) namespace(x=1, y=2) Though it's not immediately a problem, "vars(cls(x=1, y=2))" returns "{}", while "ns=cls(x=1, y=2); vars(ns)" returns "{'x': 1, 'y': 2}"! Certainly it's a corner case, but it could indicate a more sinister problem. Regardless, I'll track down the root cause and fix it. As far as I can tell, this odd behavior does not impact sys.implementation. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14673> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com