Did I find the right examples for you? yes no

All Samples(795)  |  Call(677)  |  Derive(0)  |  Import(118)
Return tuple of base classes (including cls) in method resolution order.

        def getmro(cls):
    "Return tuple of base classes (including cls) in method resolution order."
    if hasattr(cls, "__mro__"):
        return cls.__mro__
    else:
        result = []
        _searchbases(cls, result)
        return tuple(result)
        


src/g/a/gae-twitter-oauth-example-HEAD/werkzeug/contrib/jsrouting.py   gae-twitter-oauth-example(Download)
        raise RuntimeError('simplejson required for jsrouting')
 
from inspect import getmro
from werkzeug.templates import Template
from werkzeug.routing import NumberConverter
        data = converter.js_to_url_function()
    else:
        for cls in getmro(type(converter)):
            if cls in js_to_url_functions:
                data = js_to_url_functions[cls](converter)

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/pydoc.py   main(Download)
 
        # List the mro, if non-trivial.
        mro = deque(inspect.getmro(object))
        if len(mro) > 2:
            hr.maybe()
 
        # List the mro, if non-trivial.
        mro = deque(inspect.getmro(object))
        if len(mro) > 2:
            push("Method resolution order:")

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/CPython/27/Lib/pydoc.py   main(Download)
 
        # List the mro, if non-trivial.
        mro = deque(inspect.getmro(object))
        if len(mro) > 2:
            hr.maybe()
 
        # List the mro, if non-trivial.
        mro = deque(inspect.getmro(object))
        if len(mro) > 2:
            push("Method resolution order:")

src/p/i/PipelineConstructionSet-HEAD/python/maya/site-packages/pymel-1.0.5/pymel/util/objectParser.py   PipelineConstructionSet(Download)
                    #parents = inspect.getmro(i)
                    for j in bases:
                        if i in inspect.getmro(j)[1:]:
                            issuperclass = True
                            break
                    if not issuperclass:
                        newbases.append(i)
 
                newbases = sorted( newbases, key=lambda x: len(inspect.getmro(x)), reverse=True)

src/p/i/PipelineConstructionSet-HEAD/python/maya/site-packages/pymel-1.0.3/pymel/util/objectParser.py   PipelineConstructionSet(Download)
                    #parents = inspect.getmro(i)
                    for j in bases:
                        if i in inspect.getmro(j)[1:]:
                            issuperclass = True
                            break
                    if not issuperclass:
                        newbases.append(i)
 
                newbases = sorted( newbases, key=lambda x: len(inspect.getmro(x)), reverse=True)

src/p/y/pydroid-HEAD/src/pydroid/framework/project_skeleton/libs/python27/lib/python2.7/pydoc.py   pydroid(Download)
 
        # List the mro, if non-trivial.
        mro = deque(inspect.getmro(object))
        if len(mro) > 2:
            hr.maybe()
 
        # List the mro, if non-trivial.
        mro = deque(inspect.getmro(object))
        if len(mro) > 2:
            push("Method resolution order:")

src/s/p/Spherebot-Host-GUI-HEAD/InkscapePortable/App/Inkscape/python/Lib/pydoc.py   Spherebot-Host-GUI(Download)
 
        # List the mro, if non-trivial.
        mro = deque(inspect.getmro(object))
        if len(mro) > 2:
            hr.maybe()
 
        # List the mro, if non-trivial.
        mro = deque(inspect.getmro(object))
        if len(mro) > 2:
            push("Method resolution order:")

src/l/a/landline-server-HEAD/co.whatisuplabs.ldln/lib/play/python/Lib/pydoc.py   landline-server(Download)
 
        # List the mro, if non-trivial.
        mro = deque(inspect.getmro(object))
        if len(mro) > 2:
            hr.maybe()
 
        # List the mro, if non-trivial.
        mro = deque(inspect.getmro(object))
        if len(mro) > 2:
            push("Method resolution order:")

src/g/i/gitstack-HEAD/python/Lib/pydoc.py   gitstack(Download)
 
        # List the mro, if non-trivial.
        mro = deque(inspect.getmro(object))
        if len(mro) > 2:
            hr.maybe()
 
        # List the mro, if non-trivial.
        mro = deque(inspect.getmro(object))
        if len(mro) > 2:
            push("Method resolution order:")

src/p/r/Products.DocFinderTab-1.0.5/Products/DocFinderTab/analyse.py   Products.DocFinderTab(Download)
from Products.DocFinderTab.config import FILTER_METHODS # DFT
 
from inspect import isclass, ismethod, \
     isfunction, ismethoddescriptor, \
     getmro, \
def _getMro(class_):
  '''*class_* s method resolution order (cached).'''
  mro= _MROCache.get(class_)
  if mro is None:
    mro= _MROCache[class_]= getmro(class_)

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next