SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 0 Python

gh-109218: Deprecate weird cases in the complex() constructor (GH-119620)

* Passing a string as the "real" keyword argument is now an error;
  it should only be passed as a single positional argument.
* Passing a complex number as the "real" or "imag" argument is now deprecated;
  it should only be passed as a single positional argument.
S
Serhiy Storchaka committed
ef01e95ae3659015c2ebe4ecdc048aadcda89930
Parent: deda857
Committed by GitHub <noreply@github.com> on 5/30/2024, 8:30:57 PM