you can either manually manage the memory with `del cnt` or let the built
in memory management .. manage the memory.
On Wed, Aug 7, 2013 at 10:54 PM, Jim Mooney wrote:
> This bugs me for some reason. The final variable is saved in a for
> loop but not in a list comprehension. It just seems to me
In other words lst is a global variable, where as cnt2 is a local variable
to just the list comps completion of the data being diplayed in the list
comp, with each cnt2 in the global var lst being contained in the list
comp, but only accessible through iteration/placing/splicing of the lst
variable
if the variable is the range in the first one, then just don't append it,
and replace it with something else.
The second, you use cnt2, but it is a part of the the list comp, but not a
variable:
#this is in [ython 3, but you can import from future, or remove quotes from
print parameters
lst = [cn
On Wed, Aug 07, 2013 at 08:54:26PM -0700, Jim Mooney wrote:
> This bugs me for some reason. The final variable is saved in a for
> loop but not in a list comprehension. It just seems to me they should
> both be destroyed to avoid confusion.
The variable in a for-loop is deemed to be in the same sc