Skip to content

Commit 35d5fa8

Browse files
committed
Python note: Enum good practice
1 parent 28da40c commit 35d5fa8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Python.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,3 +367,11 @@ Reference: http://ipython.org/ipython-doc/stable/development/config.html
367367
`$HOME/.ipython/profile_default/startup/`
368368

369369
Just put a Python file like `00-run-something.py`.
370+
371+
=== Enum good practice
372+
373+
[source,python,linenums]
374+
----
375+
class Materials:
376+
Shaded, Shiny, Transparent, Matte = range(4)
377+
----

0 commit comments

Comments
 (0)