Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"...a most excellent barbarian ... Genghis Kahn!" -- _Bill And Ted's Excellent Adventure_


devel / comp.lang.python / Re: Fwd: timedelta object recursion bug

SubjectAuthor
o Re: Fwd: timedelta object recursion bugDieter Maurer

1
Re: Fwd: timedelta object recursion bug

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: dieter@handshake.de (Dieter Maurer)
Newsgroups: comp.lang.python
Subject: Re: Fwd: timedelta object recursion bug
Date: Thu, 28 Jul 2022 23:21:16 +0200
Lines: 16
Message-ID: <mailman.126.1659043279.20444.python-list@python.org>
References: <CAFrp6BA5HApEoQ8gqb0CZ2VhfxVpOLMfn1=RyVSe1mQqXFLOdQ@mail.gmail.com>
<25314.52545.946937.264554@ixdm.fritz.box>
<CAFrp6BBhZU+ftRBq_09w-Z=Bh60XaUTLuooc9zk0E=jNoAT8Jw@mail.gmail.com>
<25314.64972.482381.610540@ixdm.fritz.box>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de T1jrV/AXGF/YQL5IkHTJfwEGE2UMdm4Jp150CYQQLv/A==
Return-Path: <dieter@handshake.de>
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.043
X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'cc:addr:python-list':
0.09; 'instances': 0.09; 'subject:bug': 0.09; 'cc:no real
name:2**0': 0.14; 'help,': 0.14; 'attributes': 0.16; 'found:':
0.16; 'instance': 0.16; 'replies,': 0.16; 'slot.': 0.16;
'cc:addr:python.org': 0.20; 'received:de': 0.23; '(and': 0.25;
'cc:2**0': 0.25; 'subject:Fwd': 0.26; 'looked': 0.31; '(as': 0.32;
"i'm": 0.33; 'same': 0.34; 'header:In-Reply-To:1': 0.34; 'trying':
0.35; 'class': 0.37; 'others': 0.37; 'list': 0.39; 'wrote': 0.39;
'stay': 0.61; 'header:Received:6': 0.67; 'etc,': 0.69; 'up,':
0.84; '(such': 0.84; 'etc?': 0.84; 'received:88': 0.84
In-Reply-To: <CAFrp6BBhZU+ftRBq_09w-Z=Bh60XaUTLuooc9zk0E=jNoAT8Jw@mail.gmail.com>
X-Mailer: VM 8.0.12-devo-585 under 21.4 (patch 24) "Standard C" XEmacs Lucid
(x86_64-linux-gnu)
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: <25314.64972.482381.610540@ixdm.fritz.box>
X-Mailman-Original-References: <CAFrp6BA5HApEoQ8gqb0CZ2VhfxVpOLMfn1=RyVSe1mQqXFLOdQ@mail.gmail.com>
<25314.52545.946937.264554@ixdm.fritz.box>
<CAFrp6BBhZU+ftRBq_09w-Z=Bh60XaUTLuooc9zk0E=jNoAT8Jw@mail.gmail.com>
 by: Dieter Maurer - Thu, 28 Jul 2022 21:21 UTC

Please stay on the list (such that others can help, too)

Ben Hirsig wrote at 2022-7-29 06:53 +1000:
>Thanks for the replies, I'm just trying to understand why this would be
>useful?
>
>E.g. why does max need a min/max/resolution, and why would these attributes
>themselves need a min/max/resolution, etc, etc?

`max` is a `timedelta` and as such inherits (e.g.) `resolution`
from the class (as any other `timedelta` instance).

Note that `timedelta` instances do not have a `max` (`min|resolution`)
slot. When `max` is looked up, it is first searched in the instance
(and not found), then in the class where it is found:
all `max` accesses result in the same object.


devel / comp.lang.python / Re: Fwd: timedelta object recursion bug

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor