コード例 #1
0
ファイル: PythonExceptions.cs プロジェクト: tig/ironpython3
        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);
        }