Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed6.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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'override': 0.07; 'suggesting': 0.07; 'python': 0.08; 'annotations': 0.09; 'derived': 0.09; 'received:209.85.214.174': 0.13; 'received:mail- iw0-f174.google.com': 0.13; 'wrote:': 0.15; 'rantingrick': 0.16; 'syntactical': 0.16; 'url:pydev': 0.16; 'class,': 0.16; 'cc:addr :python-list': 0.16; 'pm,': 0.16; 'cheers,': 0.19; 'cc:2**0': 0.21; 'cc:no real name:2**0': 0.22; 'header:In-Reply-To:1': 0.22; 'gregory': 0.23; 'somehow': 0.23; '(and': 0.27; 'sort': 0.28; 'received:209.85.214': 0.28; 'message-id:@mail.gmail.com': 0.28; 'cc:addr:python.org': 0.30; 'fact': 0.30; 'classes': 0.30; '(just': 0.30; 'ewing': 0.30; 'sun,': 0.30; 'class': 0.31; "i've": 0.33; 'post': 0.34; 'idea': 0.36; 'explain': 0.36; 'specially': 0.37; 'unless': 0.37; 'some': 0.37; 'but': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'created': 0.38; 'think': 0.38; 'should': 0.39; 'received:209': 0.40; 'did': 0.40; 'methods': 0.40; 'marked': 0.64; 'url:2011': 0.64; 'subject:!': 0.67; 'special': 0.67; 'subject:are': 0.70; 'concerns': 0.80; 'readability': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=u5+yvPxVF8LJISlSTAHnQ3QsQlciJwvKnAlLKZciLas=; b=hWVX8cGt+WyRaNEnFTH4N4eWIRGC1GxuHlb/X2YS3CNa7SlvN0EvXbANtSpmTqgz3z Fqa3eCVCexjqWm5gistyP405RTt2/776ImSXys698MbN716gAfxAnSnqM/0rJACRg4jk jloIjny0gU+XY6xJFGPziFy51yJr4UE3W7fKM= MIME-Version: 1.0 In-Reply-To: References: <97dcpqFdndU1@mid.individual.net> From: Fabio Zadrozny Date: Sat, 16 Jul 2011 19:34:54 -0300 Subject: Re: Virtual functions are virtually invisible! To: rantingrick Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1310855718 news.xs4all.nl 23876 [2001:888:2000:d::a6]:49854 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:9649 On Sun, Jul 10, 2011 at 2:15 PM, rantingrick wrote: > On Jul 4, 3:43=A0am, Gregory Ewing wrote: >> rantingrick wrote: >> > what concerns me is the fact that virtual methods in derived >> > classes just blend in to the crowd. >> > I think we really need some >> > sort of visual cue in the form of forced syntactical notation (just >> > like the special method underscores). >> >> If you're suggesting that it should be impossible to override >> a method unless it is specially marked somehow in the base >> class, I think that would be a bad idea. > > Sorry i did explain properly... No NOT marked in the BASE class but > marked in the DERIVED class! My concerns are from a readability > standpoint. I also like the idea of override annotations and I've created a blog post at: http://pydev.blogspot.com/2011/06/overrideimplements-templates-on-= pydev.html to explain how I do use it (and in a way that I think should be standard in Python the same way it's in Java). Cheers, Fabio