你正在阅读 Celery 3.1 的文档。开发版本文档见: 此处.

celery.utils.objects

celery.utils.objects

Object related utilities including introspection, etc.

celery.utils.objects.mro_lookup(cls, attr, stop=(), monkey_patched=[])[源代码]

Return the first node by MRO order that defines an attribute.

参数:
  • stop – A list of types that if reached will stop the search.
  • monkey_patched – Use one of the stop classes if the attr’s module origin is not in this list, this to detect monkey patched attributes.
Returns None:

if the attribute was not found.

上一个主题

celery.utils.functional

下一个主题

celery.utils.term

本页