Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Intel CPUs are not defective, they just act that way. -- Henry Spencer


devel / comp.lang.python.announce / [Python-announce] Late 1.0.0 - late bound arguments

SubjectAuthor
o [Python-announce] Late 1.0.0 - late bound argumentsJuancarlo Añez

1
[Python-announce] Late 1.0.0 - late bound arguments

<CAN1YFWuwWLbh1=Ug3b7diPTkK3YuX5o-ApEDz9W_ttNLsLAJxg@mail.gmail.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.python.announce
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: apal...@gmail.com (Juancarlo Añez)
Newsgroups: comp.lang.python.announce
Subject: [Python-announce] Late 1.0.0 - late bound arguments
Date: Sat, 11 Nov 2023 14:43:22 -0400
Lines: 7
Approved: python-announce-list@python.org
Message-ID: <CAN1YFWuwWLbh1=Ug3b7diPTkK3YuX5o-ApEDz9W_ttNLsLAJxg@mail.gmail.com>
Reply-To: python-list@python.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: base64
X-Trace: news.uni-berlin.de hAgau6GwSW841ncaUtY1SQXklYs0ccenvy6ku2kH/mcA==
Cancel-Lock: sha1:DPTDX28qn7HZteMXwsRFuAtaAMQ= sha256:cOQ3dgZJiZoU4abamumw/qXkaUHzhicN3vLh1hd0Byg=
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=TYD0TEUE;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.002
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'argument': 0.04; 'def':
0.04; 'python.': 0.08; 'binding': 0.09; 'to:addr:python-announce-
list': 0.09; 'url-ip:151.101.0.223/32': 0.09; 'url-
ip:151.101.128.223/32': 0.09; 'url-ip:151.101.192.223/32': 0.09;
'url-ip:151.101.64.223/32': 0.09; '*a\xc3\xb1ez*': 0.16; '-&gt;':
0.16; 'assert': 0.16; 'from:addr:apalala': 0.16;
'from:name:juancarlo a\xc3\xb1ez': 0.16; 'juancarlo': 0.16;
'url:project': 0.16; 'url:pypi': 0.16; 'values': 0.17; 'default':
0.31; 'message-id:@mail.gmail.com': 0.32; 'received:google.com':
0.34; 'from:addr:gmail.com': 0.35; 'functions': 0.36; '8bit%:14':
0.38; 'url-ip:151.101.0/24': 0.62; 'url-ip:151.101.128/24': 0.62;
'url-ip:151.101.192/24': 0.62; 'url-ip:151.101.64/24': 0.62;
'email addr:gmail.com': 0.63; 'from:charset:utf-8': 0.64; '[1]':
0.67; 'produces': 0.76; 'subject:Late': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1699728215; x=1700333015; darn=python.org;
h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
:date:message-id:reply-to;
bh=qyPi9PLnH8caR4g7ptpfavHP9ZgXZYumHJ7x3rV09MM=;
b=TYD0TEUEekyE9eJH2JqnEMdPDIul1TEXcd/PeqLI59FpQb+ZNMzIkiOnd+A7YGZzep
WDAbZ7lOgGXZpmcJDER2RIbPGcGIo/l9INeQi3A+0DliJrtIuMXAAkIFleFWzPAS5vVg
uoTAPWMl9pe+RSImpyuALvK5UMPEp0USODH70Fh3KCxca2taYW/Hv7r9xAplu8P826Rr
gmrDhifPD0q0wChwmQcwFn3YOErxE1lot1TdZc+nwahbX3A9VW8KBtqLc3qWdPYF94ie
wzJk4/xdxWwk9quy9hu+R+euiVvSN5nJ6RiUXl9Y/JRFxWKK4KhId2y4RktI3PwZj1V7
rFdg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1699728215; x=1700333015;
h=to:subject:message-id:date:from:mime-version:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=qyPi9PLnH8caR4g7ptpfavHP9ZgXZYumHJ7x3rV09MM=;
b=oVM/VOm1SUiL1pCgBgjbrAKBBBZ24aBcbz/MtswoqPTxPKppnKmSjLWA/FOz4styTl
8Mg/1alGcVvBtVLDVtbOyW8xVAQ7uU0VPjkXiutv2+eGQh3aChbOV7F85fW1tWz43sR9
ughy8AWH1jrt8C0Ah7g4ugEeGwUB/W+SP7F4/llt1bDPnkcZzIxhqmf4/qN+H7nQihBi
/FH25pQiJMHYvvorBPIgT5G0eNfZFnerkOrmyGVlUqe/18Mz4Gj1dXJAgGqolwm88V/L
H5p3avOwzagyPnHviNw5WpzP71A68IuvSyixjos3JlZTk5eozfxj62cl2CBfxoLtKV1A
syBw==
X-Gm-Message-State: AOJu0YxpNhyir19Go0nHc5qE0ioDjRvaOWqguebl/UprA+scfk0Y9rUT
miiK68fSHr7MCoCSrY83CYCFK7atB5KlByj8iceL6heST9nnig==
X-Google-Smtp-Source: AGHT+IFuZ8Ihaj+27Aat2InWOCAqq46G80UDrWtZK+2dtrC5GeroXStar4P7c2s1+uSnF56VohN/umaj7WJDCOClBg0=
X-Received: by 2002:a17:906:b847:b0:9e6:59d5:823e with SMTP id
ga7-20020a170906b84700b009e659d5823emr1377784ejb.66.1699728214667; Sat, 11
Nov 2023 10:43:34 -0800 (PST)
X-MailFrom: juancarlo.anez@gmail.com
X-Mailman-Rule-Hits: emergency
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved
Message-ID-Hash: JTAICE4TYOJRLOWAFMEAOCKBJ6XZLAZD
X-Message-ID-Hash: JTAICE4TYOJRLOWAFMEAOCKBJ6XZLAZD
X-Mailman-Approved-At: Sat, 11 Nov 2023 13:59:00 -0500
X-Content-Filtered-By: Mailman/MimeDel 3.3.9
X-Mailman-Version: 3.3.9
Precedence: list
List-Id: Announcement-only list for the Python programming language <python-announce-list.python.org>
Archived-At: <https://mail.python.org/archives/list/python-announce-list@python.org/message/JTAICE4TYOJRLOWAFMEAOCKBJ6XZLAZD/>
List-Archive: <https://mail.python.org/archives/list/python-announce-list@python.org/>
List-Help: <mailto:python-announce-list-request@python.org?subject=help>
List-Owner: <mailto:python-announce-list-owner@python.org>
List-Post: <mailto:python-announce-list@python.org>
List-Subscribe: <mailto:python-announce-list-join@python.org>
List-Unsubscribe: <mailto:python-announce-list-leave@python.org>
 by: Juancarlo Añez - Sat, 11 Nov 2023 18:43 UTC

*Late* provides decorators and functions to work around the issues that
early binding of default argument values produces in Python.
@latebinding
def f(x: list[Any] = __([])) -> list[Any]:
x.append(1)
return x
assert f() == [1]
assert f() == [1]
assert f() == [1]
https://pypi.org/project/Late/
--
Juancarlo *Añez*
mailto:apalala@gmail.com


devel / comp.lang.python.announce / [Python-announce] Late 1.0.0 - late bound arguments

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor