Demian Brecht added the comment: > I don't have a firm opinion at this point -- can you give a few examples of > how this will help in code?
It'll help solely with consistency across projects. Generally, using constants are generally favored over using hardcoded values. Mainly, it helps reduce typos. Some projects use literals, others use project-specific constants. It's something that I've found myself redefining over various projects, and I just though "why couldn't this be added to the standard library, given it's an attribute of the HTTP/1.1 RFC"? /Very/ minor, personal annoyance. The updated patch fixes the OPTION typo. ---------- Added file: http://bugs.python.org/file41960/issue26380_1.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26380> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com