Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemeyer committed May 7, 2015
1 parent bc4d957 commit 70908cb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/sage/misc/cython_metaclass.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ static CYTHON_INLINE PyObject* PyMethodDescr_CallSelf(PyMethodDescrObject* desc,
}

/*
* This function calls PyType_Ready(t) and then calls t.__typeinit__(t)
* as if that was a class method. The __typeinit__ method can then be
* used for example to make changes to the tp_foo slots.
* This function calls PyType_Ready(t) and then calls
* t.__getmetaclass__(None) (if that method exists) which should
* return the metaclass for t. Then type(t) is set to this metaclass
* and metaclass.__init__(t, None, None, None) is called.
*/
static CYTHON_INLINE int Sage_PyType_Ready(PyTypeObject* t)
{
Expand Down

0 comments on commit 70908cb

Please sign in to comment.