python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Fatal Python error: _PyMem_DebugMalloc: Python memory allocator called without holding the GIL
I'm learning cpython, version 3.9.0b1, but recently my learning has been interrupted by a Python Fatal Error not allowing python interpreter to work at all
Here is what the Python Fatal Error says:
ha...

hatim muhammed
Votes: 0
Answers: 1
How to call __init_subclass__ method after class creation?
I have the next code:
class A(type):
def __new__(mcs, name, bases, attrs):
print(f"{name} __new__ 1")
klass = super().__new__(mcs, name, bases, attrs)
print(f&quo...
deniska369
Votes: 0
Answers: 1
What limitations does the GIL impose on using GStreamer through PyGObject?
I have a pretty straightforward GStreamer pipeline built using PyGObject. It gathers images emitted from a camera:
import gi
gi.require_version("Gst", "1.0")
from gi.repository i...

Ario Aliabadi
Votes: 0
Answers: 1
Python Garbage Collection Cleanup Order On Exit
I have a context which stores information about the current state. This context is defined within Python. The context cleanup is handled using weakref's finalize() method.
class Context:
def __ini...
Chris Uchytil
Votes: 0
Answers: 1