| Index: doxypypy/doxypypy/test/sample_pep.outnn.py
|
| diff --git a/doxypypy/doxypypy/test/sample_pep.outnn.py b/doxypypy/doxypypy/test/sample_pep.outnn.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c556dbebb82b53f2de83a9d45b9ede0b8ec4b19b
|
| --- /dev/null
|
| +++ b/doxypypy/doxypypy/test/sample_pep.outnn.py
|
| @@ -0,0 +1,19 @@
|
| +#!/usr/bin/env python
|
| +# As close as possible to a direct copy of the sample in PEP 257 and still
|
| +# be valid code. Simple as can be.
|
| +
|
| +complex_zero = 0j
|
| +
|
| +
|
| +## @brief Form a complex number.
|
| +#
|
| +#
|
| +# @param real the real part (default 0.0)
|
| +# @param imag the imaginary part (default 0.0)
|
| +#
|
| +#
|
| +def complex(real=0.0, imag=0.0):
|
| + if imag == 0.0 and real == 0.0:
|
| + return complex_zero
|
| + else:
|
| + return complex(real, imag)
|
|
|