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


Groups > comp.lang.python > #45293

Re: Python's sad, unimaginative Enum

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <fabiosantosart@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.044
X-Spam-Evidence '*H*': 0.92; '*S*': 0.01; 'subject:Python': 0.06; 'cc:addr:python-list': 0.11; 'metaclass': 0.16; 'subject:skip:u 10': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'cc:no real name:2**0': 0.24; '&gt;': 0.26; 'skip:_ 20': 0.27; 'header:In-Reply-To:1': 0.27; 'cool': 0.30; 'message- id:@mail.gmail.com': 0.30; 'class': 0.32; 'received:209.85': 0.35; 'received:google.com': 0.35; "didn't": 0.36; 'possible': 0.36; 'received:209': 0.37; 'skip:& 10': 0.38; 'cc:addr:yahoo.co.uk': 0.84; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=Xg/iIfQlhSe78aiI09iuKp4vb6KrQMKhJfpqWWostUA=; b=zfSxMk72vV2a94ZaQSC5P4DQZ+ts29z5Xz+NmvKEEhXA2fyIT2tjyUVXHgx2OzuCir 6z264uNZlAKX4v62nrj2LTu+JjiDCcAzF2bgeseOaFWUPG8LHQxM8qmvYBpkbGswvc5O yHqXUoJynQBS1T030GvY23sl6Xie0kdWWmXhA03KiTqQpq2CeLVIdpIlREnyEADhEM21 lSM9E60RxlFSwc/0hO9XbINT2biVz8fJ1UZOiFDc9PT/8dGKplF6gIljVf8NsFfPsM22 3Ua312RGbZUnSOggfQ+eZ+9dHKeBOuuhI+YevO+a1MEJzFxQdr0jfZL1/Zd9Z+RZkQLk ZipQ==
MIME-Version 1.0
X-Received by 10.224.165.146 with SMTP id i18mr23346131qay.33.1368523985446; Tue, 14 May 2013 02:33:05 -0700 (PDT)
In-Reply-To <870762861.12001592.1368442836310.JavaMail.root@sequans.com>
References <kmqbgk$dec$1@ger.gmane.org> <870762861.12001592.1368442836310.JavaMail.root@sequans.com>
Date Tue, 14 May 2013 10:33:05 +0100
Subject Re: Python's sad, unimaginative Enum
From Fábio Santos <fabiosantosart@gmail.com>
To Jean-Michel Pichavant <jeanmichel@sequans.com>
Content-Type multipart/alternative; boundary=089e0149c75204ebfa04dcaa52b2
Cc Mark Lawrence <breamoreboy@yahoo.co.uk>, python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1667.1368523987.3114.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1368523987 news.xs4all.nl 16005 [2001:888:2000:d::a6]:38165
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:45293

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 13 May 2013 12:05, "Jean-Michel Pichavant" <jeanmichel@sequans.com>
wrote:
>
> class Enum:
>   class __metaclass__(type):

That's some cool metaclass fu! I didn't know that to be possible

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


Thread

Re: Python's sad, unimaginative Enum Fábio Santos <fabiosantosart@gmail.com> - 2013-05-14 10:33 +0100

csiph-web