[Tutor] Is "var = None" in Python equivalent to "Set var = Nothing"in VB?

Andre Engels andreengels at gmail.com
Mon Jun 30 11:49:59 CEST 2008


On Mon, Jun 30, 2008 at 11:26 AM, Kelie <kf9150 at gmail.com> wrote:
> wesley chun <wescpy <at> gmail.com> writes:
>> one question i'd like to ask is, in what context is such a line part
>> of your code? altho alan is correct in that syntactically, they're
>> very similar, i'm wondering what you're using it for.
>
> Wesley,
>
> Thanks for your reply (also thanks to others who replied). I was trying to
> translate a VBA sample in this page http://tinyurl.com/3hvj3j to python. The VBA
> sample has a line "Set objDbx = Nothing".

I don't know about Visual Basic, but in Python these statements are unnecessary.



-- 
Andre Engels, andreengels at gmail.com
ICQ: 6260644 -- Skype: a_engels


More information about the Tutor mailing list