Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

It's time to boot, do your boot ROMs know where your disk controllers are?


devel / comp.lang.python / Re: Pre-Pre-PEP: The datetime.timedeltacal class

SubjectAuthor
o Re: Pre-Pre-PEP: The datetime.timedeltacal classBarry

1
Re: Pre-Pre-PEP: The datetime.timedeltacal class

<mailman.153.1650289668.20749.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17908&group=comp.lang.python#17908

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: bar...@barrys-emacs.org (Barry)
Newsgroups: comp.lang.python
Subject: Re: Pre-Pre-PEP: The datetime.timedeltacal class
Date: Mon, 18 Apr 2022 14:47:40 +0100
Lines: 40
Message-ID: <mailman.153.1650289668.20749.python-list@python.org>
References: <20220418115831.asm56xd453zu3mpy@hjp.at>
<A560B49E-0DC5-4A03-ABF2-17D0BA39E69B@barrys-emacs.org>
Mime-Version: 1.0 (1.0)
Content-Type: text/plain;
charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de A8JjETWeDVqMgrVTs/w0cAH1a1eoQsQ3YPWvybeTBKJg==
Return-Path: <barry@barrys-emacs.org>
X-Original-To: Python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'yet.': 0.04; 'fairly':
0.05; 'tests': 0.07; ':-)': 0.09; 'cc:addr:python-list': 0.09;
'datetime': 0.09; 'filename:fname piece:asc': 0.09;
'filename:fname piece:signature': 0.09;
'filename:fname:signature.asc': 0.09; 'from:addr:barry': 0.09;
'received:217.70': 0.09; 'received:gandi.net': 0.09;
'received:mail.gandi.net': 0.09; 'subject:class': 0.09; 'cc:no
real name:2**0': 0.14; 'url:mailman': 0.15; '"creative': 0.16;
'2022,': 0.16; '__/': 0.16; 'barry': 0.16; 'challenge!"': 0.16;
'elsewhere': 0.16; 'from:addr:barrys-emacs.org': 0.16;
'hjp@hjp.at': 0.16; 'holzer': 0.16; 'indeed': 0.16; 'message-id
:@barrys-emacs.org': 0.16; 'reality.': 0.16; 'stross,': 0.16;
'subject:Pre': 0.16; 'subject:skip:d 20': 0.16; 'supported.':
0.16; 'thread.': 0.16; 'timezone': 0.16; 'url-
ip:212.17.106.137/32': 0.16; 'url-ip:212.17.106/24': 0.16; 'url-
ip:212.17/16': 0.16; 'url:hjp': 0.16; '|_|_)': 0.16; 'wrote:':
0.16; 'values': 0.17; 'cc:addr:python.org': 0.20; 'written': 0.22;
'idea': 0.24; '(and': 0.25; 'url-ip:188.166.95.178/32': 0.25;
'url-ip:188.166.95/24': 0.25; 'url:listinfo': 0.25; 'cc:2**0':
0.25; 'url-ip:188.166/16': 0.25; 'anyone': 0.25; 'sense': 0.28;
'suggest': 0.28; 'url-ip:188/8': 0.31; "doesn't": 0.32; 'passes':
0.32; 'header:In-Reply-To:1': 0.34; 'cases': 0.36; 'subject:PEP':
0.39; 'use': 0.39; 'still': 0.40; 'want': 0.40; 'complete': 0.64;
'received:217': 0.67; 'content-type:multipart/mixed': 0.68; 'url-
ip:212/8': 0.69; 'url-ip:lookup error': 0.70; 'subject:The': 0.70;
'addition': 0.71; 'quick': 0.77; 'prototype': 0.84; 'property':
0.88; 'content-type:application/octet-stream': 0.94
In-Reply-To: <20220418115831.asm56xd453zu3mpy@hjp.at>
X-Mailer: iPad Mail (19E258)
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
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: <https://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>
X-Mailman-Original-Message-ID: <A560B49E-0DC5-4A03-ABF2-17D0BA39E69B@barrys-emacs.org>
X-Mailman-Original-References: <20220418115831.asm56xd453zu3mpy@hjp.at>
 by: Barry - Mon, 18 Apr 2022 13:47 UTC

> On 18 Apr 2022, at 13:01, Peter J. Holzer <hjp-python@hjp.at> wrote:
>
> On 2022-04-16 20:25:45 +0100, Barry wrote:
>> Suggest that you start with the use cases that you want supported.
>> Then you can turn them into a set of tests to check that the solution works.
>
> Writing test cases is always a good idea :-)

Did you write the use cases? Without them how can anyone review the tests?

Barry

>
> I have now written a first set of test cases:
> https://git.hjp.at:3000/hjp/timedeltacal
> (together with a quick and dirty implementation that passes them).
>
> That's not complete yet.
>
> If covers addition of timezone aware datetime values and timedeltacal
> values fairly well, and also tests the t0 + (t1 - t0) == t1 property I
> alluded to elsewhere in this thread.
>
> It doesn't test canonicalization yet (and indeed the prototype
> implementation is a mess in this regard) and subtracting timedeltacals
> from datetimes is also still missing.
>
> hp
>
> --
> _ | Peter J. Holzer | Story must make more sense than reality.
> |_|_) | |
> | | | hjp@hjp.at | -- Charles Stross, "Creative writing
> __/ | http://www.hjp.at/ | challenge!"
> --
> https://mail.python.org/mailman/listinfo/python-list

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor