(self, x)
| 1361 | ) |
| 1362 | |
| 1363 | def __call__(self, x): |
| 1364 | r = self.real_format(x.real) |
| 1365 | i = self.imag_format(x.imag) |
| 1366 | |
| 1367 | # add the 'j' before the terminal whitespace in i |
| 1368 | sp = len(i.rstrip()) |
| 1369 | i = i[:sp] + 'j' + i[sp:] |
| 1370 | |
| 1371 | return r + i |
| 1372 | |
| 1373 | |
| 1374 | class _TimelikeFormat: |