Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #197553
| Path | csiph.com!weretis.net!feeder9.news.weretis.net!panix!.POSTED.2602:f977:0:1::1!not-for-mail |
|---|---|
| From | pa@see.signature.invalid (Pierre Asselin) |
| Newsgroups | comp.lang.python |
| Subject | Re: an adventure: a Lisp-style linked list |
| Date | Thu, 4 Sep 2025 18:41:27 -0000 (UTC) |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <109cmgn$btv$1@reader1.panix.com> (permalink) |
| References | <87o6rrt9kq.fsf@somewhere.edu> |
| Injection-Date | Thu, 4 Sep 2025 18:41:27 -0000 (UTC) |
| Injection-Info | reader1.panix.com; posting-host="2602:f977:0:1::1"; logging-data="12223"; mail-complaints-to="abuse@panix.com" |
| User-Agent | tin/2.6.4-20241224 ("Helmsdale") (NetBSD/10.1 (amd64)) |
| Xref | csiph.com comp.lang.python:197553 |
Show key headers only | View raw
Ethan Carter <ec1828@somewhere.edu> wrote:
> def __init__(self, d, ls):
> self.head = d
> self.tail = ls
Why not
def __init__(self, d, ls=None):
and avoid the need for a List.Empty ?
--
pa at panix dot com
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
an adventure: a Lisp-style linked list Ethan Carter <ec1828@somewhere.edu> - 2025-09-03 20:12 -0300
Re: an adventure: a Lisp-style linked list ram@zedat.fu-berlin.de (Stefan Ram) - 2025-09-04 00:47 +0000
Re: an adventure: a Lisp-style linked list pa@see.signature.invalid (Pierre Asselin) - 2025-09-04 18:41 +0000
Re: an adventure: a Lisp-style linked list Ethan Carter <ec1828@somewhere.edu> - 2025-09-05 13:06 -0300
csiph-web