Richard Futrell added the comment:
Ah, I get the same result as you in a clean interpreter session. Looks like
it's not Python's fault.
The bug seems to arise from an interaction with cloudpickle 0.2.1 (and only in
IPython), which puts the bad value into a cache somewhere in the pic
New submission from Richard Futrell:
On Python 2.7.11, pickle.whichmodule(object.__new__, None) = 'email.MIMEAudio'
This is unlikely to be the correct module.
--
components: XML
messages: 261465
nosy: canjobear
priority: normal
severity: normal
status: open
title: pickle.w
Changes by Richard Futrell :
--
nosy: canjo
priority: normal
severity: normal
status: open
title: Inconsistent behavior between set and dict_keys/dict_items: for
non-iterable object x, set().__or__(x) raises NotImplementedError, but
{}.keys().__or__(x) raises TypeError
type: behavior