[issue17022] Inline assignment uses the newly created object

2013-02-01 Thread Gabriel Nistor
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

[issue17022] Inline assignation uses the newly created object

2013-01-24 Thread Gabriel Nistor
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