Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'python.': 0.02; 'cc:addr :python-list': 0.11; 'python': 0.11; 'beaten': 0.16; 'lambda': 0.16; 'subject: \n ': 0.16; 'to:addr:pearwood.info': 0.16; 'to:addr:steve+comp.lang.python': 0.16; "to:name:steven d'aprano": 0.16; 'subject:python': 0.16; 'language': 0.16; 'code.': 0.18; 'solution.': 0.20; 'work,': 0.20; 'cc:addr:python.org': 0.22; 'decorators': 0.24; 'issue,': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; "i've": 0.25; 'developers': 0.25; 'class.': 0.26; 'header:In-Reply-To:1': 0.27; 'correct': 0.29; 'message- id:@mail.gmail.com': 0.30; 'extensively': 0.31; 'up.': 0.33; 'subject:with': 0.35; 'problem.': 0.35; 'late': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'thanks': 0.36; 'should': 0.36; 'level': 0.37; 'needed': 0.38; 'does': 0.39; 'solve': 0.60; 'took': 0.61; 'back': 0.62; 'address': 0.63; 'hours': 0.66; 'bottom': 0.67; 'subject:skip:A 10': 0.78; 'maybe,': 0.84; 'clearing': 0.91 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=ebIx16+HbhrfvlnyuPSDH2Oeex+WURCiz8OQMz3vp+g=; b=Y0jAsJFRW0HleHgLlqJB7jIpRg5zWpy8t5VebENOQRI6q19DFSTtfE7yilYy4zysxk 5YQbClXE8yRA0Kgt95w6EztxfnM3oS7mZYVcMcNp4BBnUVoeSG2kLY3S55gDsc0VI3ID /4W9kFW+a3LrzFA1fsvVy0MwKgVlnCzdNd01bwpOw2typFthGm10xZINBgJ0k56r71KP FLZEKWIMFAUtJEnRYd2W7eVf0/PfpFjWUWfcjsDyhujwjO+JDpAsRDMbYnl/y5f4FWGx 8A/KtMCkZwM22s+XXrwX7lWz6UCzU6kNULYB3IkivDqRuKedYKnqpf9e1c9sUYpClUdi xb9Q== MIME-Version: 1.0 X-Received: by 10.68.25.233 with SMTP id f9mr12777091pbg.118.1367567543485; Fri, 03 May 2013 00:52:23 -0700 (PDT) In-Reply-To: <518302d7$0$29971$c3e8da3$5496439d@news.astraweb.com> References: <518302d7$0$29971$c3e8da3$5496439d@news.astraweb.com> Date: Fri, 3 May 2013 13:52:23 +0600 Subject: Re: Debugging difficulty in python with __getattr__, decorated properties and AttributeError. From: "Mr. Joe" To: "Steven D'Aprano" Content-Type: multipart/alternative; boundary=bcaec521569ba2c95304dbcba147 Cc: 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: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1367567552 news.xs4all.nl 15960 [2001:888:2000:d::a6]:44861 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:44659 --bcaec521569ba2c95304dbcba147 Content-Type: text/plain; charset=UTF-8 Thanks for clearing up. Developers of python should address this issue, in my opinion. 3.4/3.5 maybe, but better late than never. Recently, I've been beaten back for using some exotic features of python. One is this[ Took me hours to get to the bottom ]. The other one is 'property' decorator. I was using it extensively until I needed to make a child class. Then I came to know that 'property' does not play well with polymorphic code. :( I resorted to some lambda hacks learned from stackoverflow.com to solve the problem. I know that it's the correct way for decorators to work, but still, it would be nice to have a language level solution. --bcaec521569ba2c95304dbcba147 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks for clearing up. Developers of python should addres= s this issue, in my opinion. 3.4/3.5 maybe, but better late than never.

Recently, I've been beaten back for using some exo= tic features of python. One is this[ Took me hours to get to the bottom ]. = The other one is 'property' decorator. I was using it extensively u= ntil I needed to make a child class. Then I came to know that 'property= ' does not play well with=C2=A0polymorphic code. :( I resorted to some = lambda hacks learned from stackoverflo= w.com to solve the problem. I know that it's the correct way for de= corators to work, but still, it would be nice to have a language level solu= tion.
--bcaec521569ba2c95304dbcba147--