Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Science is to computer science as hydrodynamics is to plumbing.


devel / comp.lang.python / NoneType List

SubjectAuthor
o NoneType ListThomas Passin

1
NoneType List

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!lilly.ping.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: list1@tompassin.net (Thomas Passin)
Newsgroups: comp.lang.python
Subject: NoneType List
Date: Sat, 31 Dec 2022 10:50:13 -0500
Lines: 65
Message-ID: <mailman.1339.1672502314.20444.python-list@python.org>
References: <8f6d265a-c484-b566-2e13-c1c791b20ebf@tompassin.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de z/vl2fc2RT+Bijs60wTlwgbC0vuh8cpoEQUOG44k5IsQ==
Return-Path: <list1@tompassin.net>
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=tompassin.net header.i=@tompassin.net header.b=BS71JuoD;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.041
X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; '"""': 0.09; 'faced': 0.09;
'solution,': 0.09; 'url:mailman': 0.15; 'syntax': 0.15; 'is",':
0.16; 'mean:': 0.16; 'received:10.0.0': 0.16; 'received:64.90':
0.16; 'received:64.90.62': 0.16; 'received:64.90.62.162': 0.16;
'received:dreamhost.com': 0.16; 'problem': 0.16; 'python': 0.16;
'solve': 0.19; 'to:addr:python-list': 0.20; 'run': 0.23; 'list,':
0.24; 'url-ip:188.166.95.178/32': 0.25; 'url-ip:188.166.95/24':
0.25; 'help.': 0.25; 'url:listinfo': 0.25; 'url-ip:188.166/16':
0.25; "wasn't": 0.26; 'asked': 0.29; 'header:User-Agent:1': 0.30;
'url-ip:188/8': 0.31; 'program': 0.31; 'anybody': 0.32;
'received:10.0': 0.32; 'received:mailchannels.net': 0.32;
'received:relay.mailchannels.net': 0.32; 'but': 0.32; "i'm": 0.33;
'there': 0.33; 'year,': 0.33; 'able': 0.34; 'trying': 0.35;
'thanks': 0.38; 'copies': 0.39; 'list': 0.39; 'still': 0.40;
'me.': 0.62; 'days': 0.62; 'hours': 0.63; 'copy': 0.63; 'remains':
0.64; 'parts': 0.65; 'header:Received:6': 0.67; 'received:64':
0.67; 'items': 0.68; 'subject:List': 0.71; 'coding.': 0.84;
'contents,': 0.84; 'mystery': 0.84; 'type,': 0.84
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1672501815; a=rsa-sha256;
cv=none;
b=U27S2n3tEaqE/Zuzi+JQmyHZ5h9yw2uD5lAGN60E0b/RhlcU90dAbQOPi11BD8k9MeASlA
wPVQiCrDgsrkRdiovh9nBK7fAN3bPV/QlHEX66VrKCBcsaXtIubTcWLi+IT2JyPP5BRz4K
WT7susCoM19z2VhTdhWieRT8s0ggFutXe7AQCyuiAMZsBAgy4ruXpvzmorZJHSMFVxe+Rn
75LDjGlT0DBYOiqpeThQ/tKFm2KRHqoQECFyQCAlho5Jvvgt1PymB9FooRKJ1aEEUPecIC
bZB7juAbef8R9IZpDgmpnjIiJN3P16ybs6shyoLey63C9DdLiLdU9G/+XRBkjg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=mailchannels.net; s=arc-2022; t=1672501815;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:dkim-signature;
bh=mmcr6UUyRRni9UMauKa6AHTVevDfFvjoHHgqk1BilCA=;
b=84vyIC/AN9Bk62p/9xeLJJZI+P4bspu42xolZpzjOdwJUOuXzak4MQNZnKJg9AxNIPrkal
gwVTcrLTgwzZOJyfcdkhNRiFI48OqL39SHMj5bTnR1hHvmZd2jBtmHwW0lx4koSjenRx79
oN532nCdWaxN+6DyUvOvE8WIjGw00oTZ6CcbKOyxs6sEHqW784mVmf3OXr1bVA8TE9hPD4
Hqkic1TpDzzZAZ/emIBmV7W+YMGW8lBZy4ebWSWG1AeIUc6RSCSgiLDNA9txjE7CeId1LO
JL/q63QSx9KjNgYnNas6p4TzoovTnCaRuDznRnJOglkPl9V/qqqsIPVxuIoVqw==
ARC-Authentication-Results: i=1; rspamd-896578cf5-pqlm8;
auth=pass smtp.auth=dreamhost smtp.mailfrom=list1@tompassin.net
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|tpassin@tompassin.net
X-MailChannels-Auth-Id: dreamhost
X-Dime-Drop: 54ce06c63d49e0a2_1672501815522_1803579021
X-MC-Loop-Signature: 1672501815522:2851939012
X-MC-Ingress-Time: 1672501815521
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tompassin.net;
s=dreamhost; t=1672501815;
bh=mmcr6UUyRRni9UMauKa6AHTVevDfFvjoHHgqk1BilCA=;
h=Date:From:Subject:To:Content-Type:Content-Transfer-Encoding;
b=BS71JuoDe7UWxZGwDu5d47mWgcE1f3zK1EnmsMf2EX4MiXQ0yzj17odsqWSRi8b4J
9UN1CXuDQCtef6EoSHK+wkTrFnSXalAsrsjPwV/9N75kbtNGlecSIuczzwbzoq1qu8
DH4KfrwGJ+x/Wun0gKDRfbehxAyaj9Vkvq4db9qYBnit3Do+9w0Y+QoRs/X5Kf0P+S
D6KBWzhROefBxb4G0FA57EBb3c+it2ELYFsueMyoP9tCMpgzKoliTlwkmwh2uim7YA
gdFJRbS0f1Td9cUE0D6A9YcD+3akPGT2CJ8k0wavgc68ePOIaEzg4/d1KCUoT7WWz6
8OL3X0v+0xMyA==
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Content-Language: en-US
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: <8f6d265a-c484-b566-2e13-c1c791b20ebf@tompassin.net>
 by: Thomas Passin - Sat, 31 Dec 2022 15:50 UTC

Happy New Year, everybody!
I'm new in the Python List, new in Python world, and new in coding.
A few days (weeks?) ago, I faced a problem trying to write a program for an
exercise. I asked for help and nobody answered.
In the meantime, I found a part of the solution, but a part still remains a
mystery for me. Please run this small snippet, and help.
Thanks

a = [1, 2]
print()

print("a ==", a)
print("type(a) is", type(a))

b = a.append(3)
print("\nb =", "a.append(3)")
print("b ==", b)
print("type(b) is", type(b))

c = ['1', '2']
print("\nc ==", c)
print("type(c) is", type(c))

d = c.append('3')
print("\nd =", "c.append('3')")
print("d ==", d)
print("type(d) is", type(d))

"""
I mean: why b = a.append(something) is the None type, and how to make a new
list
that contains all the items from a and some new items?
I wasn't able to solve it in a few hours :(
Now I know:
"""

crta = '='
print('\n', 4 * ' ', crta * (len('The solution:')), sep='')
print(3 * ' ', 'The solution:')
print(4 * ' ', crta * (len('The solution:')), sep='')
print('\nThe solution is the slice, an element of Python syntax that
allows')
print('to make a brand new copy of a list, or parts of a list.')
print('The slice actually copies the list\'s contents, not the list\'s
name:')

print()
a = [1, 2]
print("a ==", a)
print("type(a) is", type(a))

b = a[:]
print("\nb = a[:]")
print("b ==", b)
b.append(3)
print("\nb =", "b.append(3)")
print("b ==", b)
print("type(b) is", type(b))
print("\na ==", a)

print('But I still don't know why "b = a.append(something)" is the None
type.')
print('Is there anybody out there?!')
--
https://mail.python.org/mailman/listinfo/python-list


devel / comp.lang.python / NoneType List

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor