Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #197556
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Ethan Carter <ec1828@somewhere.edu> |
| Newsgroups | comp.lang.python |
| Subject | Re: an adventure: a Lisp-style linked list |
| Date | Fri, 05 Sep 2025 13:06:06 -0300 |
| Organization | A noiseless patient Spider |
| Lines | 14 |
| Message-ID | <87y0qssx3l.fsf@somewhere.edu> (permalink) |
| References | <87o6rrt9kq.fsf@somewhere.edu> <109cmgn$btv$1@reader1.panix.com> |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| Injection-Date | Fri, 05 Sep 2025 16:06:06 +0000 (UTC) |
| Injection-Info | dont-email.me; posting-host="deed101144017415c11b7b856dd8791d"; logging-data="2644090"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19HLJQ7CAgyiibzCNHK+iGr0IrzGKQhLWE=" |
| Cancel-Lock | sha1:Kic4x2pFz3UiieqE24jPPI/sef4= sha1:qYAtnNALJG6pnsd/B+5SwdhuUDQ= |
| Xref | csiph.com comp.lang.python:197556 |
Show key headers only | View raw
pa@see.signature.invalid (Pierre Asselin) writes: > 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 ? Thanks! That's a good suggestion.
Back to comp.lang.python | Previous | Next — Previous 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