| Index: doxypypy/doxypypy/test/sample_pep.outnc.py
|
| diff --git a/doxypypy/doxypypy/test/sample_pep.outnc.py b/doxypypy/doxypypy/test/sample_pep.outnc.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..29929825c88acfbd3b539239e995c79ddab5cf97
|
| --- /dev/null
|
| +++ b/doxypypy/doxypypy/test/sample_pep.outnc.py
|
| @@ -0,0 +1,20 @@
|
| +#!/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)
|
| +#
|
| +#
|
| +# @namespace sample_pep.complex
|
| +def complex(real=0.0, imag=0.0):
|
| + if imag == 0.0 and real == 0.0:
|
| + return complex_zero
|
| + else:
|
| + return complex(real, imag)
|
|
|