As a side note, I guess I shouldn't assign names to variables that are
already assigned to built-in functions.
yes, that's a bad habit.
Does anyone knows if this could
cause issues with garbage collection, like the above file object not getting
destroyed because it is assigned the name of a function which never gets
destroyed?
nope -- python reference counting is a lot smarter than that -- the
names bound to it have nothing to do with it. In fact, a object
doesn't need a name bound to it at all to have a reference that's
counted -- imagine objects in a container, such as a list.
-Chris
ยทยทยท
On Thu, Jun 6, 2013 at 1:05 PM, Johnsons in DE <rj_google@objectmail.com> wrote:
Thank you.
Regards,
T Johnson--
You received this message because you are subscribed to the Google Groups
"wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@noaa.gov