Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Crash report
What happened?
Reproducer:
importxml.etree.ElementTreeasETfromcopyimportdeepcopyclassEvil(ET.Element):def__deepcopy__(self,memo):root.clear()returnselfroot=ET.Element('a')root.append(Evil('x'))deepcopy(root)
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Output from running 'python -VV' on the command line:
Python 3.14.0a7+ (heads/main:7f02ded29fb, Apr 26 2025, 14:29:01) [GCC 7.5.0]