changes for complex numbers

This commit is contained in:
Guido van Rossum 1996-01-12 01:09:56 +00:00
parent 0bfd6c33fa
commit 8a5c5d277e
3 changed files with 111 additions and 1 deletions

View file

@ -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 *);