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 steven.daprano
Recipients bup, serhiy.storchaka, steven.daprano
Date 2018-11-05.07:14:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1541402050.08.0.788709270274.issue35166@psf.upfronthosting.co.za>
In-reply-to
Content
You say it doesn't work as expected, but you don't say what you expect or why. (Don't make me guess what you mean -- explicit is better than implicit.)

When I try your subclass in 3.6, I get an unexpected TypeError:

py> class Dict(dict):
...     def keys(self): assert 0
...     def update(*args, **kwds): assert 0
...     def __getitem__(self, key): assert 0
...     def __iter__(self): assert 0
...
py> {**Dict(a=1)}
{'a': 1}
py> Dict(a=1).keys()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 2, in keys
TypeError
History
Date User Action Args
2018-11-05 07:14:10steven.dapranosetrecipients: + steven.daprano, serhiy.storchaka, bup
2018-11-05 07:14:10steven.dapranosetmessageid: <1541402050.08.0.788709270274.issue35166@psf.upfronthosting.co.za>
2018-11-05 07:14:10steven.dapranolinkissue35166 messages
2018-11-05 07:14:09steven.dapranocreate