Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

19 May, 2024: Line wrapping has been changed to be more consistent with Usenet standards.
 If you find that it is broken please let me know here rocksolid.nodes.help


devel / comp.lang.python / __set_name__ equivalent for instance

SubjectAuthor
o __set_name__ equivalent for instanceDom Grigonis

1
__set_name__ equivalent for instance

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

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24724&group=comp.lang.python#24724

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: dom.grigonis@gmail.com (Dom Grigonis)
Newsgroups: comp.lang.python
Subject: __set_name__ equivalent for instance
Date: Wed, 15 Nov 2023 18:44:11 +0200
Lines: 12
Message-ID: <mailman.262.1700073329.3828.python-list@python.org>
References: <C459D5FA-DE60-4FA5-B7CF-284CB32D8DEE@gmail.com>
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\))
Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de DlQZIcANfoSKCwkBeQliGA1j02ZjNJv8YoNNHkI7vNZw==
Cancel-Lock: sha1:WZqPCYSoVbXPvqwezdSXw8Zg2x8= sha256:UoNJ7h3sZUFmoSkEMPg1QeTU7f8J4WcqT9Ar9OblL/E=
Return-Path: <dom.grigonis@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=iVrY2Uur;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: UNSURE 0.249
X-Spam-Level: **
X-Spam-Evidence: '*H*': 0.63; '*S*': 0.12; 'argument': 0.04;
'instance': 0.16; 'received:apple': 0.16;
'received:smtpclient.apple': 0.16; 'simulation': 0.16; 'message-
id:@gmail.com': 0.18; 'to:addr:python-list': 0.20; 'fact': 0.28;
'to:name:python': 0.32; 'but': 0.32; 'subject:for': 0.33; 'there':
0.33; 'received:google.com': 0.34; 'from:addr:gmail.com': 0.35;
'class': 0.37; 'method': 0.61; 'interested': 0.68; 'receive':
0.71; 'name,': 0.75; 'received:mail-ej1-x632.google.com': 0.76;
'attribute': 0.84; 'received:88': 0.84; 'thus,': 0.84; 'receives':
0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1700066653; x=1700671453; darn=python.org;
h=to:date:message-id:subject:mime-version:content-transfer-encoding
:from:from:to:cc:subject:date:message-id:reply-to;
bh=nixMDPO5gQNVxFUFVBuh1307BeFfr/ub6k/vN/nQ1Vs=;
b=iVrY2Uur9Z9VDXZavzoMxn+pRkuPGUeDquvzcmzdFqLQC2DcHT7mWx6WFpU7PBKKI1
7Xp/ufR9jHG15nCV4UCGITlCRttBTyu2VdtiNTRk5k0JrgYUTWV1GVvDzj8u0fZjan1g
GFzaW92dZw5fv8+g/G+4SP7CXy8NCnLE7+V0SKUz5SkhBEojKHspctSfRtEapZwqkavF
WCaElD0vv/n5U+EfrcXYASmHp1rcikwRh2xr1r8S1uwNPs2l58JTaS2OADVRh6aDG985
ABo+ED4Jc7utSw2cdGYFXjSDzglttvqCk6iDQtBtUmr++oX6by0zJRWA906bbplSl1zc
btyA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1700066653; x=1700671453;
h=to:date:message-id:subject:mime-version:content-transfer-encoding
:from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=nixMDPO5gQNVxFUFVBuh1307BeFfr/ub6k/vN/nQ1Vs=;
b=Z0KzO7zt7EfePI5aWvlkAIq2ahDsEreplr/FvMQ/ZzWigumWw5QgdGeA42a/pKORzk
6MKnO0EYZsjfFZNQkiIZhd2Ly/+m6J5rHYECaad4tlg6eIPOSpX5imwU8v+p81wd89RK
a6opGHZtDbcqQVkzJEYCgDEi7uN0yoAnktnZxWezIBwl1EIuBPMblO3ZjSGuXaAHyDVy
abZpMQDomGSSQrjZS2AU6CGzAPNoN3doU8OmvayE1kv3wkNs+GyH9JfM3cCCYoZC9ony
8o1Qtk2yVgKH2r+ESxIO5IItPHp9O4PImacuvvz+kD9HiYqVpRDmQ56Jvs8ut2swEGiw
yy5Q==
X-Gm-Message-State: AOJu0Yzbr4Bdnyk13uLkFXTyV7hvLJCAudh6A1O79u3DUtjoZqArPtCs
qahtAB/xu0YFWgs/lDRGsGhR1xXeP5w=
X-Google-Smtp-Source: AGHT+IHl6Ll8H4vqZTOlPqe0/u/lmkmdpMtZP27N2qjahGYn8ATrGMklciuj8tkipAy/8bYV5zHUXA==
X-Received: by 2002:a17:906:178f:b0:9e5:29d9:4c84 with SMTP id
t15-20020a170906178f00b009e529d94c84mr8625755eje.3.1700066653014;
Wed, 15 Nov 2023 08:44:13 -0800 (PST)
X-Mailer: Apple Mail (2.3654.120.0.1.15)
X-Mailman-Approved-At: Wed, 15 Nov 2023 13:35:28 -0500
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: <C459D5FA-DE60-4FA5-B7CF-284CB32D8DEE@gmail.com>
 by: Dom Grigonis - Wed, 15 Nov 2023 16:44 UTC

So there is a method __set_name__ which is called on class creation.

The functionality that I am interested in is not retrieving name, but the fact that it also receives `owner` argument.

Thus, allowing simulation of bound class method.

I was wandering if there is an equivalent functionality of attribute to receive `instance` argument on instance creation.

Regards,
DG


devel / comp.lang.python / __set_name__ equivalent for instance

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor