Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Antoon Pardon Newsgroups: comp.lang.python Subject: Enum questions. Date: Wed, 13 Apr 2016 12:12:40 +0200 Lines: 15 Message-ID: References: <570E1B98.4080904@rece.vub.ac.be> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de td5hkr2NRg9WACfeKHUyLAINfgbHI+YU0PimUaoj7y1Q== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'value,': 0.03; 'received:134': 0.05; 'enum': 0.09; 'iterate': 0.09; 'missing?': 0.16; 'received:ac.be': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'seems': 0.23; 'header:User-Agent:1': 0.26; 'values': 0.28; 'received:be': 0.30; 'important.': 0.35; 'to:addr:python-list': 0.36; 'really': 0.37; 'two': 0.37; 'missing': 0.37; 'rather': 0.39; 'to:addr:python.org': 0.40; 'skip:n 10': 0.62; 'between': 0.65; 'miss': 0.77 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkQIAEEbDleGuA9G/2dsb2JhbABehFS9BYggAQEBAQEBZoUSVSoMAgUWCwILAwIBAgFLDQgCiCSgW49djTOFE3yFJYwKglYFkxuEbYEtJ4w5gVEBh1qFZI8nYoE2ThmBTIpkAQEB User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.7.0 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <570E1B98.4080904@rece.vub.ac.be> Xref: csiph.com comp.lang.python:106932 I have been looking at the enum documentation and it seems enums are missing two features I rather find important. 1) Given an Enum value, someway to get the next/previous one 2) Given two Enum values, iterate over the values between them. Did I miss those in the documentation or are they really missing? -- Antoon.