| Index: doxypypy/doxypypy/test/sample_pep.py
|
| diff --git a/doxypypy/doxypypy/test/sample_pep.py b/doxypypy/doxypypy/test/sample_pep.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..50b6aba5e34a59c18a99a34da21d467d8bb63e66
|
| --- /dev/null
|
| +++ b/doxypypy/doxypypy/test/sample_pep.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
|
| +
|
| +
|
| +def complex(real=0.0, imag=0.0):
|
| + """Form a complex number.
|
| +
|
| + Keyword arguments:
|
| + real -- the real part (default 0.0)
|
| + imag -- the imaginary part (default 0.0)
|
| +
|
| + """
|
| + if imag == 0.0 and real == 0.0:
|
| + return complex_zero
|
| + else:
|
| + return complex(real, imag)
|
|
|