Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!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.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subset': 0.09; "wouldn't": 0.14; 'finney': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'sense,': 0.16; 'way;': 0.16; 'which,': 0.16; 'do,': 0.16; 'header:User-Agent:1': 0.23; 'module,': 0.24; 'skip': 0.24; 'asking': 0.27; 'header:X-Complaints-To:1': 0.27; 'point': 0.28; 'writes:': 0.31; 'anyone': 0.31; 'something': 0.35; 'date.': 0.36; 'received:com.au': 0.36; 'represent': 0.38; 'ben': 0.38; 'to:addr :python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'is.': 0.60; 'wonderful': 0.60; 'skip:\xe2 10': 0.65; '8bit%:43': 0.74; 'concept.': 0.84; 'received:125': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ben Finney Subject: Re: datetime as subclass of date Date: Fri, 24 Jan 2014 09:14:38 +1100 References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: vmx15867.hosting24.com.au X-Public-Key-ID: 0xBD41714B X-Public-Key-Fingerprint: 9CFE 12B0 791A 4267 887F 520C B7AC 2E51 BD41 714B X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-gpg.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:eL7DIbB/fWgoOePRo/IrrwU/LcQ= 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1390515297 news.xs4all.nl 2888 [2001:888:2000:d::a6]:55977 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:64640 Skip Montanaro writes: > […] I was asking [Python] if a datetime instance was an instance of a > date. Which, it turns out, it is. Yep. Makes sense, since ‘datetime’ can do everything ‘date’ can do, and is conceptually a subset of the same concept. The same is not true of the ‘time’ type from that module, by the way; it does not represent a specific point on the timeline. So ‘datetime’ inheriting from ‘time’ wouldn't make sense. Just in case anyone was wondering. -- \ “There is something wonderful in seeing a wrong-headed majority | `\ assailed by truth.” —John Kenneth Galbraith, 1989-07-28 | _o__) | Ben Finney