Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed4.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.097 X-Spam-Evidence: '*H*': 0.81; '*S*': 0.01; 'mixed': 0.09; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'sender:addr:gmail.com': 0.17; 'skip': 0.24; 'header:In-Reply- To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'gives': 0.31; 'received:google.com': 0.35; 'false': 0.36; 'in.': 0.36; 'object,': 0.36; 'should': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'specialized': 0.65; 'notion': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=hRJ0o6OV0uBejOpopP45+95EpNBK7RL+zDH3ZdawcWg=; b=TxX9a/PqeL4WQXildUutla56zo5glP6QTrXDxn2jWk3M5lrOy0lMfwnt3wGKBa+muG 6LCO+Z+Sc+0xclydPkjHqHaKAwbjd7q53jV1XXhtXMJfzM37R2eiwT5KUiio7hgqpAXu Bjse16l2kbXhlvx5kajrSslDCyGtmXb24At3gRzDfoTF0HOicOh9SpKrlzWydhTjykcF taIsHubZcne3siY5Vrj8w2jEZuoMrTwYVWQ/TTRHMKYZhd2MDg0F4hI6yvjJdOG8Uh3J QOXWgaqVEN6M0F/WygZ5cyvSMJa29ppbYEat3faRn/mVyOtIEDnx9hZB8hbPC7T3Ux5Y RqRA== MIME-Version: 1.0 X-Received: by 10.43.78.78 with SMTP id zl14mr11414782icb.5.1390579395082; Fri, 24 Jan 2014 08:03:15 -0800 (PST) Sender: skip.montanaro@gmail.com In-Reply-To: <85lhy5g999.fsf@benfinney.id.au> References: <85lhy5g999.fsf@benfinney.id.au> Date: Fri, 24 Jan 2014 10:03:15 -0600 X-Google-Sender-Auth: TuLnwstY5rtooEC2bHC3TPJov1Q Subject: Re: datetime as subclass of date From: Skip Montanaro To: Python Content-Type: text/plain; charset=UTF-8 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: 8 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1390579404 news.xs4all.nl 2915 [2001:888:2000:d::a6]:40236 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:64691 One thing that always reinforced my notion that issubclass(datetime.datetime, datetime.date) should be False is that the presence of of date and time methods gives me a mental image of delegation, not inheritance. That is, it "feels" like a datetime object is the aggregation of a date object and a time object, not a specialized date object with some added time machinery mixed in. Skip