本文整理汇总了Python中arelle.XbrlUtil.equalityHash方法的典型用法代码示例。如果您正苦于以下问题:Python XbrlUtil.equalityHash方法的具体用法?Python XbrlUtil.equalityHash怎么用?Python XbrlUtil.equalityHash使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类arelle.XbrlUtil
的用法示例。
在下文中一共展示了XbrlUtil.equalityHash方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: nonDimHash
# 需要导入模块: from arelle import XbrlUtil [as 别名]
# 或者: from arelle.XbrlUtil import equalityHash [as 别名]
def nonDimHash(self):
try:
return self._nonDimsHash
except AttributeError:
self._nonDimsHash = hash( (XbrlUtil.equalityHash(self.nonDimValues("segment")),
XbrlUtil.equalityHash(self.nonDimValues("scenario"))) )
return self._nonDimsHash
示例2: nonDimScenarioHash
# 需要导入模块: from arelle import XbrlUtil [as 别名]
# 或者: from arelle.XbrlUtil import equalityHash [as 别名]
def nonDimScenarioHash(self):
"""(int) -- Hash, of s-equality values, of non-XDT scenario objects"""
try:
return self._nonDimScenarioHash
except AttributeError:
self._nonDimScenarioHash = XbrlUtil.equalityHash(self.nonDimValues("scenario"))
return self._nonDimScenarioHash
示例3: __hash__
# 需要导入模块: from arelle import XbrlUtil [as 别名]
# 或者: from arelle.XbrlUtil import equalityHash [as 别名]
def __hash__(self):
if self.isExplicit:
return hash( (self.dimensionQname, self.memberQname) )
else: # need XPath equal so that QNames aren't lexically compared (for fact and context equality in comparing formula results)
return hash( (self.dimensionQname, XbrlUtil.equalityHash(XmlUtil.child(self), equalMode=XbrlUtil.XPATH_EQ)) )
示例4: scenarioHash
# 需要导入模块: from arelle import XbrlUtil [as 别名]
# 或者: from arelle.XbrlUtil import equalityHash [as 别名]
def scenarioHash(self):
"""(int) -- Hash of the scenario, based on s-equality values"""
return XbrlUtil.equalityHash( self.scenario ) # self-caching
示例5: segmentHash
# 需要导入模块: from arelle import XbrlUtil [as 别名]
# 或者: from arelle.XbrlUtil import equalityHash [as 别名]
def segmentHash(self):
"""(int) -- Hash of the segment, based on s-equality values"""
return XbrlUtil.equalityHash( self.segment ) # self-caching
示例6: nonDimScenarioHash
# 需要导入模块: from arelle import XbrlUtil [as 别名]
# 或者: from arelle.XbrlUtil import equalityHash [as 别名]
def nonDimScenarioHash(self):
try:
return self._nonDimScenarioHash
except AttributeError:
self._nonDimScenarioHash = XbrlUtil.equalityHash(self.nonDimValues("scenario"))
return self._nonDimScenarioHash
示例7: nonDimSegmentHash
# 需要导入模块: from arelle import XbrlUtil [as 别名]
# 或者: from arelle.XbrlUtil import equalityHash [as 别名]
def nonDimSegmentHash(self):
try:
return self._nonDimSegmentHash
except AttributeError:
self._nonDimSegmentHash = XbrlUtil.equalityHash(self.nonDimValues("segment"))
return self._nonDimSegmentHash
示例8: scenarioHash
# 需要导入模块: from arelle import XbrlUtil [as 别名]
# 或者: from arelle.XbrlUtil import equalityHash [as 别名]
def scenarioHash(self):
# s-equality hash
return XbrlUtil.equalityHash( self.scenario ) # self-caching
示例9: segmentHash
# 需要导入模块: from arelle import XbrlUtil [as 别名]
# 或者: from arelle.XbrlUtil import equalityHash [as 别名]
def segmentHash(self):
# s-equality hash
return XbrlUtil.equalityHash( self.segment ) # self-caching