Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #106932

Enum questions.

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Antoon Pardon <antoon.pardon@rece.vub.ac.be>
Newsgroups comp.lang.python
Subject Enum questions.
Date Wed, 13 Apr 2016 12:12:40 +0200
Lines 15
Message-ID <mailman.67.1460542399.15650.python-list@python.org> (permalink)
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 <antoon.pardon@rece.vub.ac.be>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <570E1B98.4080904@rece.vub.ac.be>
Xref csiph.com comp.lang.python:106932

Show key headers only | View raw


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.

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Enum questions. Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2016-04-13 12:12 +0200
  Re: Enum questions. Rustom Mody <rustompmody@gmail.com> - 2016-04-13 03:34 -0700
    Re: Enum questions. Marko Rauhamaa <marko@pacujo.net> - 2016-04-13 13:58 +0300

csiph-web