Re: [Tutor] Is var = None in Python equivalent to Set var = Nothingin VB?

2008-06-30 Thread Kelie
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

Re: [Tutor] Is var = None in Python equivalent to Set var = Nothingin VB?

2008-06-30 Thread wesley chun
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. kelie, thanks for your reply... it helps clear things up -- i didn't think i was going to

Re: [Tutor] Is var = None in Python equivalent to Set var = Nothingin VB?

2008-06-30 Thread Andre Engels
On Mon, Jun 30, 2008 at 11:26 AM, Kelie [EMAIL PROTECTED] 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.

Re: [Tutor] Is var = None in Python equivalent to Set var = Nothingin VB?

2008-06-29 Thread Kelie
Thanks Alan. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Is var = None in Python equivalent to Set var = Nothingin VB?

2008-06-29 Thread wesley chun
Suppose var holds a reference to an objeect, my question is in the subject. Pretty much so, yes. There may be very subtle differences due to how Python and VB treat variables but the basic intent is the same one question i'd like to ask is, in what context is such a line part of your

Re: [Tutor] Is var = None in Python equivalent to Set var =Nothingin VB?

2008-06-29 Thread Alan Gauld
wesley chun [EMAIL PROTECTED] wrote 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. That's a very good point. The normal way to delete a reference to

Re: [Tutor] Is var = None in Python equivalent to Set var = Nothingin VB?

2008-06-28 Thread Alan Gauld
Kelie [EMAIL PROTECTED] wrote Suppose var holds a reference to an objeect, my question is in the subject. Pretty much so, yes. There may be very subtle differences due to how Python and VB treat variables but the basic intent is the same Alan G