Message86861
Given two modules, I've seen the following kind of strange behavior with
list sorting on import and delete; a list that has been imported, sorted
and deleted remains sorted on a second import:
my_module.py:
some_list = ['b','a']
other_module.py:
from my_module import some_list
print some_list
some_list.sort()
print some_list
del some_list
from my_module import some_list
print some_list
Output is:
['b','a']
['a','a']
['a','b']
Sorry if it's already been reported. |
|
Date |
User |
Action |
Args |
2009-05-01 04:51:09 | dstemmer | set | recipients:
+ dstemmer |
2009-05-01 04:51:02 | dstemmer | set | messageid: <1241153462.53.0.480786919372.issue5891@psf.upfronthosting.co.za> |
2009-05-01 04:50:56 | dstemmer | link | issue5891 messages |
2009-05-01 04:50:51 | dstemmer | create | |
|