(self, x)
| 1265 | ) |
| 1266 | |
| 1267 | def __call__(self, x): |
| 1268 | r = self.real_format(x.real) |
| 1269 | i = self.imag_format(x.imag) |
| 1270 | |
| 1271 | # add the 'j' before the terminal whitespace in i |
| 1272 | sp = len(i.rstrip()) |
| 1273 | i = i[:sp] + 'j' + i[sp:] |
| 1274 | |
| 1275 | return r + i |
| 1276 | |
| 1277 | |
| 1278 | class _TimelikeFormat: |