MCPcopy Index your code
hub / github.com/python/cpython / compare

Method compare

Lib/annotationlib.py:552–561  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

550
551 def _make_compare(op):
552 def compare(self, other):
553 rhs, extra_names = self.__convert_to_ast(other)
554 return self.__make_new(
555 ast.Compare(
556 left=self.__get_ast(),
557 ops=[op],
558 comparators=[rhs],
559 ),
560 extra_names,
561 )
562
563 return compare
564

Callers

nothing calls this directly

Calls 3

__convert_to_astMethod · 0.95
__make_newMethod · 0.95
__get_astMethod · 0.95

Tested by

no test coverage detected