Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #104676
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: Descriptors vs Property |
| Date | Sat, 12 Mar 2016 17:35:35 +1100 |
| Lines | 11 |
| Message-ID | <mailman.27.1457764543.12893.python-list@python.org> (permalink) |
| References | <nc0b1u$ckq$1@dont-email.me> <mailman.26.1457763193.12893.python-list@python.org> <nc0cgs$fvn$2@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de Ua5cS3ZbqKIjlWT8ZNf8hAGGqCSAqVxPXAwVm9dcOYmQ== |
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.019 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'context': 0.05; 'cc:addr :python-list': 0.09; 'typeerror:': 0.09; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'arguments': 0.22; 'context.': 0.22; 'sat,': 0.23; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'code': 0.30; 'gives': 0.35; 'received:google.com': 0.35; "isn't": 0.35; 'but': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; '12,': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'takes': 0.39; 'default': 0.61; 'mar': 0.65; 'to:none': 0.91; 'subject:Property': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc; bh=JluuV5qy8ctUWRwAqKUd1Av9UlfHs/7Z3vDMBiehFwY=; b=I5f7EokUTKxurMsY8KAi2s8ri4MP9hR09pA4kwebvHtlx8QYI4WIyNBh5hfLpbEf8X H/jWRhzlYHLc6fuTn6eYNkD5+tFfwK/SnG0OlbVBLua+WAeARb2eN/2RWan+atPod9Tr KRqHgiKwmEyivyERLFSNvHVzlbpLX+2rPKdG5TTo6OKU0MdVaaIe/dW6pTKLlp94wsKG gmW9oOKYE0BDlCIxk5Sflx0OpC7ujdz4ukoKtMWZklCenzFEM9qh+g8Qt9T7wJbtVvQk QfbkyFZx00MCYuKcf3/7/aTd+h+nIRaw9K3jjTuRlHIDqv3RwBrpv5MzMYZKoB2crlje BHZQ== |
| 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:date :message-id:subject:from:cc; bh=JluuV5qy8ctUWRwAqKUd1Av9UlfHs/7Z3vDMBiehFwY=; b=JGGUq/ObizRHXpNrnvRwYJpOwdthgeGHj+dPkLDY+e/GEeEcGaAXVCVPVq2GSqB40R xNbRwPFwJSf+ty5Z5/3e83B5D5bPVDFtCq2CVIuCTBAYlm8hLE1CZ5plgBiy04FtHXQR VgRZGsD7DmgndfUEDz96e9q3m3YtL6ovj4wYYu36faePla1Rz/xAYethQy0Dt9J7Uonj ODL3bZS9orepfc3Hgy9SoGm9h7sMK1eHttgt+byRkc2TzQXU2ue6OlI2E0laO6xcOqst U9bQYclxVOC7BQue6xUP6JGYq2OBDA5VPTUQ/9IMTJznv6v1GJuGGCy7aNE8JJmhI6Hm zRnA== |
| X-Gm-Message-State | AD7BkJLscbwjoL4UCSqq7lc0PpnghSmfXu3lm1qlB8RoCpUn0xhWEIzOfiRfgymZ1bVXp0OOr1phYWri5+3AYA== |
| X-Received | by 10.50.28.105 with SMTP id a9mr8205811igh.94.1457764535423; Fri, 11 Mar 2016 22:35:35 -0800 (PST) |
| In-Reply-To | <nc0cgs$fvn$2@dont-email.me> |
| 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> |
| Xref | csiph.com comp.lang.python:104676 |
Show key headers only | View raw
On Sat, Mar 12, 2016 at 5:24 PM, Veek. M <vek.m1234@gmail.com> wrote: >> Also, what's this bit: >> self.default = default if default else type() > But type() just gives me: > TypeError: type() takes 1 or 3 arguments > on py2,3 Check out the context of the original line of code and see what it's doing. It isn't the same as "type()" in a bare context. ChrisA'
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Descriptors vs Property "Veek. M" <vek.m1234@gmail.com> - 2016-03-12 11:29 +0530
Re: Descriptors vs Property Chris Angelico <rosuav@gmail.com> - 2016-03-12 17:05 +1100
Re: Descriptors vs Property Ian Kelly <ian.g.kelly@gmail.com> - 2016-03-11 23:12 -0700
Re: Descriptors vs Property "Veek. M" <vek.m1234@gmail.com> - 2016-03-12 11:54 +0530
Re: Descriptors vs Property Chris Angelico <rosuav@gmail.com> - 2016-03-12 17:35 +1100
Re: Descriptors vs Property Ian Kelly <ian.g.kelly@gmail.com> - 2016-03-11 23:37 -0700
Re: Descriptors vs Property "Veek. M" <vek.m1234@gmail.com> - 2016-03-12 11:50 +0530
Re: Descriptors vs Property Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-12 18:13 +0100
Re: Descriptors vs Property "Veek. M" <vek.m1234@gmail.com> - 2016-03-13 12:48 +0530
Re: Descriptors vs Property Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-13 10:25 +0100
Re: Descriptors vs Property "Veek. M" <vek.m1234@gmail.com> - 2016-03-13 15:26 +0530
Re: Descriptors vs Property Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-13 11:35 +0100
Re: Descriptors vs Property "Veek. M" <vek.m1234@gmail.com> - 2016-03-13 18:50 +0530
Re: Descriptors vs Property Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-13 19:15 +0100
Re: Descriptors vs Property Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-03-14 15:34 +0000
Re: Descriptors vs Property Rustom Mody <rustompmody@gmail.com> - 2016-03-14 10:16 -0700
Re: Descriptors vs Property Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-03-16 01:53 +0100
Re: Descriptors vs Property Ethan Furman <ethan@stoneleaf.us> - 2016-03-16 08:15 -0700
csiph-web