Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Ian Kelly Newsgroups: comp.lang.python Subject: Re: Meta decorator with parameters, defined in explicit functions Date: Sun, 3 Jul 2016 18:20:12 -0600 Lines: 19 Message-ID: References: <85mvm5vrbw.fsf@benfinney.id.au> <21916e7b-9e19-4cef-94e0-bac331540ca2@googlegroups.com> <46690e10-1534-4f99-a40f-a148b4a21a27@googlegroups.com> <62b43f29-e6ea-4d19-9e9f-1becb3988bd3@googlegroups.com> <19025b2c-ba2e-4683-af50-ff208d1e9a49@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de MEqzEf9sueeM7vLE9Tm0qwnTyRJtszRYG0MIgeeAHxjw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.022 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'that?': 0.05; 'any)': 0.09; 'complaining': 0.09; '2016': 0.16; 'docstring': 0.16; 'knock': 0.16; 'lambda': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:parameters': 0.16; 'thread.': 0.16; 'wrote:': 0.16; 'suggested': 0.20; 'posted': 0.21; 'fraction': 0.22; 'lawrence': 0.22; 'trying': 0.22; '(or': 0.23; 'originally': 0.23; 'header:In-Reply-To:1': 0.24; 'message- id:@mail.gmail.com': 0.27; 'function': 0.28; 'went': 0.28; 'docstrings': 0.29; "i'm": 0.30; 'code': 0.30; 'mention': 0.30; 'somebody': 0.30; 'version,': 0.30; 'post': 0.31; 'maybe': 0.33; 'hell': 0.33; 'gets': 0.35; 'received:google.com': 0.35; 'next': 0.35; 'but': 0.36; 'monday,': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'list.': 0.37; "won't": 0.38; 'version': 0.38; 'wrong': 0.38; 'to:addr:python.org': 0.40; 'subject:with': 0.40; 'some': 0.40; 'your': 0.60; 'more': 0.63; 'talking': 0.67; 'jul': 0.72; 'saw': 0.77; 'docstrings.': 0.84; 'to:name:python': 0.84; 'sorry.': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=BBC11oRoPFnrVffjjayMVVmAB+EEZRsOq0d6TS8E110=; b=BYj8EtRhp3OA55uZFBfji0t1fca/0zSEGqfJWrIiPcDtmJ+t6mvWZzjlI13JxZp0qi lnsrKKf43LAtZRCVc/LO6ZAAqk+pJz63MG5CGq76/+dLrAXtDIM3kW4IhDbT4+kUnKGj 0UpwOTI2aX/FPCLIEUoOuYraXSDLJl11Sc5YYu3z4hAcByQ5qi9mpShNYEM0m9cRRgzk Ro4pajthotE4mH0xB2lPPcm5dpDZc7wsHCe6W6+s6NvjVoxB0jX0FBFDGEhKFEdUh37G 6bhuCoDvRUvbST3rYsAXsjt4n5HQbWQc4R/r7Gt9AXOYK6lwNur2UvkOZDZDHq+yXE7Q ifHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=BBC11oRoPFnrVffjjayMVVmAB+EEZRsOq0d6TS8E110=; b=erhWcVUH1vCw2sQEVRfz9lSSsQ26vULNiwK6sWnkBMC8HWfuu0Z4bwmNwzpoqzILcl Z10QNTiv4qz9Dq6rQVHkhw+w+esy0yP+Kf0qnpgk8UaDAcKsjDTuwnLGwNiYVl2mGoqL jwMTywlWo3+vPMO2iO9rWij/w6uH5uLBUzTJ+8hPEGq59+kL4JHFO/J3kfT0PXErHJ9D vo6CtGbbKQol3fTDDyZpeS71F+HBMQuDMBCZVMHrf3ztvALpq/Gjm8ldsolRDT+FGzpR /SIKiv3unOIM3908MtePB+/BDSMFUVkaXuVVIRf9HRKSHNNnqt/FUNGPu8HSIkBOeku3 iMdA== X-Gm-Message-State: ALyK8tJ4dFNHv09/IgyFnATXXAxfhJOwThvJynRvkt0OfzHxV+5cGHkAGfnfIS0QBp37dFkcMXj32M4HJp4uaQ== X-Received: by 10.157.14.86 with SMTP id n22mr530329otd.187.1467591651755; Sun, 03 Jul 2016 17:20:51 -0700 (PDT) In-Reply-To: <19025b2c-ba2e-4683-af50-ff208d1e9a49@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 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: X-Mailman-Original-References: <85mvm5vrbw.fsf@benfinney.id.au> <21916e7b-9e19-4cef-94e0-bac331540ca2@googlegroups.com> <46690e10-1534-4f99-a40f-a148b4a21a27@googlegroups.com> <62b43f29-e6ea-4d19-9e9f-1becb3988bd3@googlegroups.com> <19025b2c-ba2e-4683-af50-ff208d1e9a49@googlegroups.com> Xref: csiph.com comp.lang.python:111030 On Sun, Jul 3, 2016 at 6:06 PM, Lawrence D=E2=80=99Oliveiro wrote: > On Monday, July 4, 2016 at 12:02:23 PM UTC+12, Ian wrote: >> I'm talking about the docstring of the *decorator*, not func. > > *Sigh*. Originally somebody was complaining that the lambda version didn= =E2=80=99t allow for good (or any) docstrings. So I posted my version, and = I went to all the effort of ensuring that every generated function had a go= od docstring. And now you are trying to knock me down for that? > > What the hell is wrong with you people?!? Sorry. I don't know who that was or what they wrote, because your post is the first mention of docstrings that I see in this thread. Maybe you're thinking of some other thread. I don't read more than a fraction of what gets posted to this list. But I read your post and I saw a way to improve the code in it, so I suggested it. Next time I won't bother.