当前位置: 首页>>代码示例>>Python>>正文


Python XbrlUtil.equalityHash方法代码示例

本文整理汇总了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
开发者ID:Bourne-Law,项目名称:Arelle,代码行数:9,代码来源:ModelInstanceObject.py

示例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
开发者ID:lmsanch,项目名称:Arelle,代码行数:9,代码来源:ModelInstanceObject.py

示例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)) )
开发者ID:lmsanch,项目名称:Arelle,代码行数:7,代码来源:ModelInstanceObject.py

示例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
开发者ID:lmsanch,项目名称:Arelle,代码行数:5,代码来源:ModelInstanceObject.py

示例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
开发者ID:lmsanch,项目名称:Arelle,代码行数:5,代码来源:ModelInstanceObject.py

示例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
开发者ID:jaolguin,项目名称:Arelle,代码行数:8,代码来源:ModelInstanceObject.py

示例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
开发者ID:jaolguin,项目名称:Arelle,代码行数:8,代码来源:ModelInstanceObject.py

示例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
开发者ID:jaolguin,项目名称:Arelle,代码行数:5,代码来源:ModelInstanceObject.py

示例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
开发者ID:jaolguin,项目名称:Arelle,代码行数:5,代码来源:ModelInstanceObject.py


注:本文中的arelle.XbrlUtil.equalityHash方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。