diff options
Diffstat (limited to 'Python/getargs.c')
-rw-r--r-- | Python/getargs.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index cd3ff6d4d8..7ec31c3535 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -498,6 +498,17 @@ convertsimple1(arg, p_format, p_va) break; } + case 'D': /* complex double */ + { + complex *p = va_arg(*p_va, complex *); + complex cval = PyComplex_AsCComplex(arg); + if (err_occurred()) + return "complex<D>"; + else + *p = cval; + break; + } + case 'c': /* char */ { char *p = va_arg(*p_va, char *); |