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: 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; '>': 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: <870762861.12001592.1368442836310.JavaMail.root@sequans.com> Date: Tue, 14 May 2013 10:33:05 +0100 Subject: Re: Python's sad, unimaginative Enum From: =?ISO-8859-1?Q?F=E1bio_Santos?= To: Jean-Michel Pichavant Content-Type: multipart/alternative; boundary=089e0149c75204ebfa04dcaa52b2 Cc: Mark Lawrence , 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 --089e0149c75204ebfa04dcaa52b2 Content-Type: text/plain; charset=ISO-8859-1 On 13 May 2013 12:05, "Jean-Michel Pichavant" wrote: > > class Enum: > class __metaclass__(type): That's some cool metaclass fu! I didn't know that to be possible --089e0149c75204ebfa04dcaa52b2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


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

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

--089e0149c75204ebfa04dcaa52b2--