Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #64691

Re: datetime as subclass of date

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 <skip.montanaro@gmail.com>
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 <CANc-5Uw5z84=vAMVJaCH-KCSR=1q8_zTKuspaF2zzOG9qtVu4Q@mail.gmail.com> <mailman.5913.1390515296.18130.python-list@python.org> <roy-29B820.19102323012014@news.panix.com> <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 <skip@pobox.com>
To Python <python-list@python.org>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5946.1390579404.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: datetime as subclass of date Ben Finney <ben+python@benfinney.id.au> - 2014-01-24 09:14 +1100
  Re: datetime as subclass of date Roy Smith <roy@panix.com> - 2014-01-23 19:10 -0500
    Re: datetime as subclass of date Ben Finney <ben+python@benfinney.id.au> - 2014-01-24 17:54 +1100
    Re: datetime as subclass of date Skip Montanaro <skip@pobox.com> - 2014-01-24 10:03 -0600

csiph-web