Gabriel Nistor added the comment:
Thanks for the fast reply. The explanation seems valid, but the behavior is not
consistent with other high level languages, and also with plain reasoning. I
have a big java background experience and I am now with python for almost 3
years doing really hard
New submission from Gabriel Nistor:
I am using Lubuntu x64 version and python 3.2.3
I have a tree search method:
node = self
while xpaths:
xpath = xpaths.popleft()
for path, child in node.childrens.items():
if path == xpath:
node = child
break
else