Re: an adventure: a Lisp-style linked list

[email protected] (Pierre Asselin)
Newsgroups gmane.comp.python.general
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <[email protected]>
Ethan Carter <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.