Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undiagnosed crash (Windows 11, Python 3.10) #69

Open
mentalisttraceur opened this issue May 11, 2022 · 0 comments
Open

Undiagnosed crash (Windows 11, Python 3.10) #69

mentalisttraceur opened this issue May 11, 2022 · 0 comments

Comments

@mentalisttraceur
Copy link

mentalisttraceur commented May 11, 2022

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.

@mentalisttraceur mentalisttraceur changed the title Undiagnosed crash Undiagnosed crash (Windows 11, Python 3.10) May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant