本文整理匯總了Python中netzob.Common.Models.Types.AbstractType.AbstractType.supportedTypes方法的典型用法代碼示例。如果您正苦於以下問題:Python AbstractType.supportedTypes方法的具體用法?Python AbstractType.supportedTypes怎麽用?Python AbstractType.supportedTypes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類netzob.Common.Models.Types.AbstractType.AbstractType
的用法示例。
在下文中一共展示了AbstractType.supportedTypes方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: type
# 需要導入模塊: from netzob.Common.Models.Types.AbstractType import AbstractType [as 別名]
# 或者: from netzob.Common.Models.Types.AbstractType.AbstractType import supportedTypes [as 別名]
def type(self, _type):
if _type is None:
raise TypeError("Type cannot be None")
if _type not in AbstractType.supportedTypes():
raise TypeError("The type is not supported, please refer to the list of supported type in AbstractType.supportedTypes()")
self.__type = _type
示例2: supportedTypes
# 需要導入模塊: from netzob.Common.Models.Types.AbstractType import AbstractType [as 別名]
# 或者: from netzob.Common.Models.Types.AbstractType.AbstractType import supportedTypes [as 別名]
def supportedTypes():
"""Official list of supported types
@deprecated: please use directly the AbstractType.supportedTypes() method instead of this wrapper.
"""
return AbstractType.supportedTypes()