Table of Contents

Module: advice ./src/protocols/advice.py
Imported modules   
from __future__ import generators
from new import instancemethod
from peak.util import decorators
import sys
from types import ClassType, FunctionType, InstanceType
from weakref import ref
Functions   
addClassAdvisor
add_assignment_advisor
classicMRO
determineMetaclass
getFrameInfo
getMRO
isClassAdvisor
metamethod
minimalBases
mkRef
supermeta
  addClassAdvisor 
addClassAdvisor (
        callback,
        depth=2,
        frame=None,
        )

protocols.advice.addClassAdvisor is deprecated, please use

  add_assignment_advisor 
add_assignment_advisor (
        callback,
        depth=2,
        frame=None,
        )

protocols.advice.add_assignment_advisor is deprecated, please use

  classicMRO 
classicMRO ( ob,  extendedClassic=False )

  determineMetaclass 
determineMetaclass ( bases,  explicit_mc=None )

protocols.advice.determineMetaclass is deprecated, please use

  getFrameInfo 
getFrameInfo ( frame )

protocols.advice.getFrameInfo is deprecated, please use

  getMRO 
getMRO ( ob,  extendedClassic=False )

  isClassAdvisor 
isClassAdvisor ( ob )

protocols.advice.isClassAdvisor is deprecated, please use

  metamethod 
metamethod ( func )

Wrapper for metaclass method that might be confused w/instance method

  minimalBases 
minimalBases ( classes )

DEPRECATED

  mkRef 
mkRef ( ob,  *args )

Return either a weakref or a StrongRef for ob

Note that extra args are forwarded to weakref.ref() if applicable.

  supermeta 
supermeta ( typ,  ob )

Exceptions   
TypeError( "Not sub/supertypes:", starttype, typ )
Classes   

StrongRef

Like a weakref, but for non-weakrefable objects


Table of Contents

This document was automatically generated on Mon Dec 16 01:11:12 2024 by HappyDoc version 2.1