Use ENUMs for the Request and API
Bug #1234385 reported by
Flavio Percoco
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python client library for Zaqar |
New
|
Undecided
|
Unassigned |
Bug Description
22:18:42 @kgriffs | enum vs. strings?
22:18:48 @kgriffs | (what are your thoughts)
22:20:41 alcabrera | kgriffs: enums are easier to use, IMO, for defining a set of allowed operations. They're also more lightweight, AFAIK, than strings.
22:21:05 alcabrera | kgriffs: they also have type guarantees in py3 (enum == int -> TypeError)
affects: | python-zaqarclient → zaqar |
affects: | zaqar → python-zaqarclient |
To post a comment you must log in.