Commit 148fe039 authored by Robert Bradshaw's avatar Robert Bradshaw

Mention cpdef enum in docs.

parent dd8ec79c
...@@ -153,7 +153,9 @@ the same effect as the C directive ``#pragma pack(1)``. ...@@ -153,7 +153,9 @@ the same effect as the C directive ``#pragma pack(1)``.
cheddar, edam, cheddar, edam,
camembert camembert
cdef enum CheeseState: Declaring an enum as ```cpdef`` will create a PEP 435-style Python wrapper::
cpdef enum CheeseState:
hard = 1 hard = 1
soft = 2 soft = 2
runny = 3 runny = 3
...@@ -803,16 +805,3 @@ Conditional Statements ...@@ -803,16 +805,3 @@ Conditional Statements
.. [#] The conversion is to/from str for Python 2.x, and bytes for Python 3.x. .. [#] The conversion is to/from str for Python 2.x, and bytes for Python 3.x.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment