Bugs item #3075531, was opened at 2010-09-26 01:11
Message generated for change (Comment added) made by mhammond
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3075531&group_id=78018
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: pythonwin
Group: None
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Private: No
Submitted By: andrewme2 (andrewme2)
Assigned to: Nobody/Anonymous (nobody)
Summary: Content of mutable objects changes when I type the dot '.'
Initial Comment:
>From the Python interpreter, create this function:
>>> def myfunc(some_list):
>>> some_list.append(2)
>>> return some_list
Now create an empty list 'abc' and type "myfunc(abc)." to invoke autocompletion. Without hitting enter, erase the line. 'abc' will now contain the number 2.
----------------------------------------------------------------------
>Comment By: Mark Hammond (mhammond)
Date: 2011-04-26 16:22
Message:
This is by design - maybe it just needs to be made clearer in the docs, or
maybe even added as a preference but the reports of problems are so low I'm
not sure it is worth it. I'd accept a patch to add a preference though :)
----------------------------------------------------------------------
Comment By: Mark Hammond (mhammond)
Date: 2010-10-23 11:37
Message:
This is because pythonwin evaluates function calls and indexes (ie, [x])
for autocomplete, which probably isn't ideal, but is useful.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3075531&group_id=78018
|