The following command
GL4dicthash={hash(g):None for g in GL(4,2)}
takes 9 seconds to execute. On the other hand
GL4dict={g:None for g in GL(4,2)}
takes minutes and does not seem to terminate.
If I understand python dictionary correctly, they should take about the same time. So what happened?