code_junkie

pythonic replacement for enums [closed]

Nov 14th, 2011
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. eAssignBad = 0
  2. eAssignMismatch = 1
  3. eAssignmentSignMix = 2
  4.  
  5. eAssignErrors = {
  6. eAssignBad: 'Bad assignment',
  7. eAssignMismatch: 'Mismatched thingy',
  8. eAssignmentSignMix: 'Bad sign mixing'
  9. }
Add Comment
Please, Sign In to add comment