You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Here's a quick session on Windows 11 with Python 3.10 (from the Windows app "store"):
Notice that it spontaneously exited after I ran an import statement after cursing
__add__
on<type 'function'>
andobject
.(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.
The text was updated successfully, but these errors were encountered: