[Tutor] Is "var = None" in Python equivalent to "Set var
Tony Cappellini
cappy2112 at gmail.com
Mon Jun 30 20:43:22 CEST 2008
Message: 5
Date: Mon, 30 Jun 2008 11:49:59 +0200
From: "Andre Engels" <andreengels at gmail.com>
Subject: Re: [Tutor] Is "var = None" in Python equivalent to "Set var
= Nothing"in VB?
To: Kelie <kf9150 at gmail.com>
Cc: tutor at python.org
Message-ID:
<6faf39c90806300249k493e233o9d72fff3841e0c29 at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
>>I don't know about Visual Basic,
In VB6 ( I have not worked with VB.NET), objects are set to Nothing when
they go out of scope, yet there is a fair amount lot of code out there where
objects are explicitly set to Nothing. This is a pretty common practice in
VB land.
>>but in Python these statements are unnecessary.
What happened to "Explicit is better than implicit"?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080630/591e6c53/attachment.htm>
More information about the Tutor
mailing list