[ ChainMap ](https://blog.peterlamut.com/tag/chainmap/)
  * [ Classmethod ](https://blog.peterlamut.com/tag/classmethod/)
  * [ CPython internals ](https://blog.peterlamut.com/tag/cpython-internals/)
  * [ Debugging ](https://blog.peterlamut.com/tag/debugging/)
  * [ Decorators ](https://blog.peterlamut.com/tag/decorators/)
  * [ Descriptors ](https://blog.peterlamut.com/tag/descriptors/)
  * [ Dictionary ](https://blog.peterlamut.com/tag/dictionary/)
  * [ Enum ](https://blog.peterlamut.com/tag/enum/)
  * [ Function arguments ](https://blog.peterlamut.com/tag/function-arguments/)
  * [ General ](https://blog.peterlamut.com/tag/general/)
  * [ Metaclasses ](https://blog.peterlamut.com/tag/metaclasses/)
  * [ Python ](https://blog.peterlamut.com/tag/python/)
  * [ remote work ](https://blog.peterlamut.com/tag/remote-work/)
  * [ Sentinel ](https://blog.peterlamut.com/tag/sentinel/)
  * [ Sequences ](https://blog.peterlamut.com/tag/sequences/)
  * [ Slices ](https://blog.peterlamut.com/tag/slices/)
  * [ SQLAlchemy ](https://blog.peterlamut.com/tag/sqlalchemy/)

##  Archives

  * [ April 2020 ](https://blog.peterlamut.com/2020/04/)
  * [ June 2019 ](https://blog.peterlamut.com/2019/06/)
  * [ February 2019 ](https://blog.peterlamut.com/2019/02/)
  * [ November 2018 ](https://blog.peterlamut.com/2018/11/)
  * [ May 2018 ](https://blog.peterlamut.com/2018/05/)
  * [ February 2018 ](https://blog.peterlamut.com/2018/02/)
  * [ December 2017 ](https://blog.peterlamut.com/2017/12/)
  * [ November 2017 ](https://blog.peterlamut.com/2017/11/)
  * [ October 2017 ](https://blog.peterlamut.com/2017/10/)
  * [ September 2017 ](https://blog.peterlamut.com/2017/09/)

  * [ Home ](/)

  * [ Twitter  ](https://twitter.com/plamut "Twitter: @plamut")
  * [ GitHub  ](https://github.com/plamut "GitHub: plamut")
  * [ StackOverflow  ](https://stackoverflow.com/users/5040035/plamut "StackOverflow profile")
  * [ LinkedIn  ](https://si.linkedin.com/in/peterlamut "LinkedIn profile")

[ Peter Lamut's blog ](https://blog.peterlamut.com/) [ Create a website or
blog at WordPress.com  ](https://wordpress.com/?ref=footer_custom_svg "Create
a website or blog at WordPress.com")

  * [ Subscribe  ]() [ Subscribed  ]()

    * [ ![](https://blog.peterlamut.com/wp-content/uploads/2018/08/plamut_icon.png?w=50) Peter Lamut's blog ](https://blog.peterlamut.com)

Sign me up

    * Already have a WordPress.com account? [ Log in now. ](https://wordpress.com/log-in?redirect_to=https%3A%2F%2Fr-login.wordpress.com%2Fremote-login.php%3Faction%3Dlink%26back%3Dhttps%253A%252F%252Fblog.peterlamut.com%252F2019%252F02%252F22%252Fenums-to-replace-hardcoded-string-constants%252F)

  *     * [ ![](https://blog.peterlamut.com/wp-content/uploads/2018/08/plamut_icon.png?w=50) Peter Lamut's blog ](https://blog.peterlamut.com)
    * [ Customize  ](https://peterlamut.wordpress.com/wp-admin/customize.php?url=https%3A%2F%2Fpeterlamut.wordpress.com%2Ftag%2Fenum%2F)
    * [ Subscribe  ]() [ Subscribed  ]()
    * [ Sign up ](https://wordpress.com/start/)
    * [ Log in ](https://wordpress.com/log-in?redirect_to=https%3A%2F%2Fr-login.wordpress.com%2Fremote-login.php%3Faction%3Dlink%26back%3Dhttps%253A%252F%252Fblog.peterlamut.com%252F2019%252F02%252F22%252Fenums-to-replace-hardcoded-string-constants%252F)
    * [ Report this content ](https://wordpress.com/abuse/?report_url=https://blog.peterlamut.com)
    * [ View site in Reader ](https://wordpress.com/read/feeds/72943532)
    * [ Manage subscriptions ](https://subscribe.wordpress.com/)
    * [ Collapse this bar ]()

%d

![](https://pixel.wp.com/b.gif?v=noscript)