Undiagnosed crash (Windows 11, Python 3.10)
Opened this issue · 0 comments
mentalisttraceur commented
Here's a quick session on Windows 11 with Python 3.10 (from the Windows app "store"):
PS C:\Users\user> .\python3\Scripts\python.exe
Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from forbiddenfruit import curse
>>> def add(self, other): return 2
...
>>> curse(type(lambda: 0), '__add__', add)
>>> curse(object, '__add__', add)
>>>
>>> f = (_ + 0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name '_' is not defined
>>> f = (_ + 0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name '_' is not defined
>>> from placeholder import _
PS C:\Users\user>
Notice that it spontaneously exited after I ran an import statement after cursing __add__
on <type 'function'>
and object
.
(I accidentally ran f = (_ + 0)
twice before importing _
, but I don't think that changed anything.)
Might be related to, or the same core issue as, the previous issue I opened.
Don't have time to chase it down right now, just wanted to document it in case it's useful or works to repro the bug for others.