Beispiel #1
0
        public static PythonType CreateSubType(PythonContext /*!*/ context, PythonType[] baseTypes, Type underlyingType, string name, string module, string documentation, Func <string, Exception, Exception> exceptionMaker)
        {
            PythonType res = new PythonType(context, baseTypes, underlyingType, name, module, documentation, exceptionMaker);

            res.SetCustomMember(context.SharedContext, "__weakref__", new PythonTypeWeakRefSlot(res));
            res.IsWeakReferencable = true;
            return(res);
        }