(self)
| 169 | self.has_attr() == other.has_attr()) |
| 170 | |
| 171 | def __str__(self): |
| 172 | if self.has_subscript(): |
| 173 | return str(self.qn[0]) + '[' + str(self.qn[1]) + ']' |
| 174 | if self.has_attr(): |
| 175 | return '.'.join(map(str, self.qn)) |
| 176 | else: |
| 177 | return str(self.qn[0]) |
| 178 | |
| 179 | def __repr__(self): |
| 180 | return str(self) |
nothing calls this directly
no test coverage detected