[Python-Dev] [Python-checkins] peps: Pre-alpha draft for PEP 435 (enum). The name is not important at the moment, as

Ethan Furman ethan at stoneleaf.us
Sat Feb 23 18:08:18 CET 2013


On 02/23/2013 08:27 AM, Eli Bendersky wrote:
> Any suggestions for places in the stdlib where enums could come useful will be most welcome

codecs.EncodedFile:
     errors = 'strict' | 'ignore' | 'xmlcharrefreplace' | 'replace'

socket:
     AF_INET, AF_UNIX -- socket domains (first argument to socket() call)
     SOCK_STREAM, SOCK_DGRAM, SOCK_RAW -- socket types (second argument)

httplib:
     client - many
     cookiejar - many

turtle

tkinter

logging

warning


More information about the Python-Dev mailing list