A question about reference in Python.

Chris Rebert clp at rebertia.com
Mon Dec 8 07:25:12 CET 2008


On Sun, Dec 7, 2008 at 10:17 PM, James Mills
<prologic at shortcircuit.net.au> wrote:
> On Mon, Dec 8, 2008 at 4:13 PM, Chris Rebert <clp at rebertia.com> wrote:
>> The following three lines serve no purpose and can only lead to confusion:
>>>   value = None
>>>   prev = None
>>>   next = None
>
> You are absolutely right :)
>
> Updated code:
>
<snip>
>
> cheers
> Jaems
>
> PS: Sorry Chris :)

No apology necessary of course, i just didn't want the newbie OP to
pick up any bad Python coding habits. Apologies that I might have
phrased my criticism a bit harshly.

Cheers,
Chris

-- 
Follow the path of the Iguana...
http://rebertia.com

>
> --
> --
> -- "Problems are solved by method"
>



More information about the Python-list mailing list