Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed5.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'sorts': 0.04; 'suppose': 0.05; 'attribute.': 0.09; 'attributes,': 0.09; 'callable': 0.09; 'solution,': 0.09; 'subject:modules': 0.09; 'variables.': 0.09; 'cc:addr:python-list': 0.15; 'confusing.': 0.16; 'lisp': 0.16; 'syntactic': 0.16; 'versus': 0.16; 'wrote:': 0.16; 'issue,': 0.18; 'jan': 0.19; 'cc:no real name:2**0': 0.21; '(or': 0.22; 'header :In-Reply-To:1': 0.22; 'though.': 0.23; 'cc:2**0': 0.25; 'sat,': 0.25; 'guess': 0.25; 'pm,': 0.26; 'function': 0.27; 'variable': 0.27; 'bit': 0.28; 'message-id:@mail.gmail.com': 0.28; 'cc:addr:python.org': 0.29; 'subject:time': 0.30; 'does': 0.32; 'agree': 0.33; 'there': 0.33; 'something': 0.35; 'received:209.85.160.46': 0.35; 'received:mail- pw0-f46.google.com': 0.35; 'received:209.85.160': 0.35; 'similar': 0.36; 'received:google.com': 0.37; 'received:209.85': 0.38; 'should': 0.38; 'but,': 0.38; 'being': 0.39; 'johnson': 0.39; 'received:209': 0.39; 'subject:: ': 0.39; 'might': 0.40; 'happen': 0.61; 'your': 0.61; 'forced': 0.67; 'dilemma': 0.84; 'markers': 0.84; 'confusion.': 0.91 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; bh=sJgizk0aFfzFgNtuNWlv+fKlN1bUJ3rFmu6xOn4zGUc=; b=UOyHmRj0om9y7uh571VtBKwb9+HsiQY1PqbRFaqUe4ONRaA+k7EdEnVLPqonDbVgZI EGUJlNbWsdkRTJonIuEnydRAM8/RUdWbUqMpb2xq7gOmgahVSaY/3trykEV0GOVtPyxR el/jQXGhhLjVke8z0sZCCBtgdkg13+QihFEko= MIME-Version: 1.0 In-Reply-To: <15cdd8f1-35ef-43ea-a1c9-db90bc16f4ad@r16g2000yqi.googlegroups.com> References: <15cdd8f1-35ef-43ea-a1c9-db90bc16f4ad@r16g2000yqi.googlegroups.com> From: Devin Jeanpierre Date: Sat, 14 Jan 2012 15:11:31 -0500 Subject: Re: PyWarts: time, datetime, and calendar modules To: Rick Johnson Content-Type: text/plain; charset=UTF-8 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1326571941 news.xs4all.nl 6866 [2001:888:2000:d::a6]:34362 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18978 On Sat, Jan 14, 2012 at 2:23 PM, Rick Johnson wrote: > THAT PISSES ME OFF!!! >:( We should never be forced to guess if a name > is a callable or a variable! > > So how do we solve this dilemma you ask??? Well, we need to "mark" > method OR variable names (OR both!) with syntactic markers so there > will be NO confusion. I might be being bit OT, but, you should give Common Lisp a try. It does something similar for functions versus variables. As for the issue, I suppose I can see how this would be confusing. I don't agree with your solution, though. I happen to like the interchangeability of the different sorts of attributes, so that x.foo() can be a method call, a classmethod call, or a call on a function that is an attribute. -- Devin