autoreload breaks on partial
Author: dcolascioneCreated Sep 8, 2025Updated Aug 16, 2026
`%autoreload 3` breaks when a module has `from functools import partial`: we try to update `__class__` on the imported object, which doesn't work because `partial` is slot-ful. Can't we just bail out of `update_instances` if `new` is `old`?
Source: ipython/ipython