What does a function without body mean?

The function is defined here: // startTimer adds t to the timer heap. //go:linkname startTimer time.startTimer func startTimer(t *timer) { if raceenabled { racerelease(unsafe.Pointer(t)) } addtimer(t) } Function declarations: A function declaration may omit the body. Such a declaration provides the signature for a function implemented outside Go, such as an assembly routine. Not every … Read more

python abstractmethod with another baseclass breaks abstract functionality

Surprisingly, the test that prevents instantiating abstract classes happens in object.__new__, rather than anything defined by the abc module itself: static PyObject * object_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { … if (type->tp_flags & Py_TPFLAGS_IS_ABSTRACT) { … PyErr_Format(PyExc_TypeError, “Can’t instantiate abstract class %s ” “with abstract methods %U”, type->tp_name, joined); (Almost?) all built-in types that … Read more