En Tue, 09 Dec 2008 15:29:17 -0200, Philip Semanchuk
[EMAIL PROTECTED] escribió:
On Dec 9, 2008, at 11:35 AM, Albert Hopkins wrote:
def myfunction():
# do some stuff stuff
my_string = function_that_returns_string()
# do some stuff with my_string
On Dec 10, 2008, at 5:23 PM, Gabriel Genellina wrote:
En Tue, 09 Dec 2008 15:29:17 -0200, Philip Semanchuk [EMAIL PROTECTED]
escribió:
On Dec 9, 2008, at 11:35 AM, Albert Hopkins wrote:
def myfunction():
# do some stuff stuff
my_string =
I'm looking at a person's code and I see a lot of stuff like this:
def myfunction():
# do some stuff stuff
my_string = function_that_returns_string()
# do some stuff with my_string
del my_string
# do some other stuff
On 9 Dec., 17:35, Albert Hopkins [EMAIL PROTECTED] wrote:
I'm looking at a person's code and I see a lot of stuff like this:
def myfunction():
# do some stuff stuff
my_string = function_that_returns_string()
# do some stuff with my_string
On 9 Dec, 16:35, Albert Hopkins [EMAIL PROTECTED] wrote:
I'm looking at a person's code and I see a lot of stuff like this:
def myfunction():
# do some stuff stuff
my_string = function_that_returns_string()
# do some stuff with my_string
On Dec 9, 11:35 am, Albert Hopkins [EMAIL PROTECTED] wrote:
I'm looking at a person's code and I see a lot of stuff like this:
def myfunction():
# do some stuff stuff
my_string = function_that_returns_string()
# do some stuff with my_string
On Dec 9, 2008, at 11:35 AM, Albert Hopkins wrote:
I'm looking at a person's code and I see a lot of stuff like this:
def myfunction():
# do some stuff stuff
my_string = function_that_returns_string()
# do some stuff with my_string
del
Albert Hopkins [EMAIL PROTECTED] wrote:
def otherfunction():
try:
# some stuff
except SomeException, e:
# more stuff
del e
return
I think this looks ugly, but also does it not hurt performance
On Tue, 9 Dec 2008 at 18:55, Duncan Booth wrote:
Albert Hopkins [EMAIL PROTECTED] wrote:
def otherfunction():
try:
# some stuff
except SomeException, e:
# more stuff
del e
return
I think this looks
malkarouri a écrit :
(snip)
The del statement doesn't actually free memory. It just removes the
binding from the corresponding namespace. So in your first example,
my_string cannot be used after the deletion. Of course, if the string
referenced by my_string was referenced by some other name
10 matches
Mail list logo