Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!bcyclone05.am1.xlned.com!bcyclone05.am1.xlned.com!newsfeed.xs4all.nl!newsfeed1.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.078 X-Spam-Evidence: '*H*': 0.87; '*S*': 0.02; 'subject: -- ': 0.07; 'subject:bug': 0.07; 'def': 0.12; 'subject:?)': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'to:name:python- list@python.org': 0.22; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'received:google.com': 0.35; 'should': 0.36; 'gmail': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'skip:n 10': 0.64; 'decided': 0.64; 'obvious,': 0.91; 'ware': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=geV4u10LzDEyhb2TcPhDI1qIgRRTnKl7ol2LfdcQ5Ek=; b=p1Cybqnr2fpL7dEfbdOJ1WI53ehpWvIsc5RsVlhTHyr/t7uhs7yKjP/Dc8F3hWZvPE Nr37tkKpNE/Kswzkws1gBBzFiJMeoxzQ3ymmTqDCYOKq7GIVvRE7pTfZNpz2Y5gmgC6Y 2pX5C7LxY94a5WRf6cKpB+ArYkhFMlAEwEjskQiTImSS2tOLRCJQuSt9KfHFtQsjAFUB 4Sw+WRNo3n9Gvbpd828q5cD9AKpBSsSlF9pO6BFrPMxNuDD4AyZ02uaioL0FlAmF3CEt 2QYwVR40zTO9tWqGydasOcILxSSRHaCU8lvtb8lD4Ud1Y/jxJk1BEwXmGsocWEMlztE3 w/aQ== X-Received: by 10.202.68.2 with SMTP id r2mr6147978oia.49.1414556606379; Tue, 28 Oct 2014 21:23:26 -0700 (PDT) MIME-Version: 1.0 Sender: zachary.ware@gmail.com In-Reply-To: References: <94e3143a-c9ab-433d-8b3d-6ab296de14d9@googlegroups.com> From: Zachary Ware Date: Tue, 28 Oct 2014 23:23:06 -0500 X-Google-Sender-Auth: v1hRZavBQNldbwAqeyex8AbOOX4 Subject: Re: What for -- for? (was A bug?) To: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1414556609 news.xs4all.nl 2880 [2001:888:2000:d::a6]:46647 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 3427 X-Received-Body-CRC: 71053423 Xref: csiph.com comp.lang.python:79877 On Tue, Oct 28, 2014 at 11:16 PM, Zachary Ware wrote: > def get_abc_map(cls): > return {n: issubclass(cls, getattr(abc, n)) for n in dir(abc) if > n[0].isupper()} Of course, Gmail decided to wrap my long line for me. In case it's not obvious, that should be a single line. -- Zach