Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'sufficient': 0.05; 'subject:Python': 0.06; 'differently': 0.07; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'bug': 0.12; 'language.': 0.14; 'windows': 0.15; 'behave': 0.16; 'mutable': 0.16; 'patches': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'language': 0.16; 'wrote:': 0.18; 'module': 0.19; 'header :User-Agent:1': 0.23; 'header:X-Complaints-To:1': 0.27; 'header :In-Reply-To:1': 0.27; 'object.': 0.31; 'operators': 0.31; 'lists': 0.32; 'problem': 0.35; 'except': 0.35; 'should': 0.36; 'list': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'information': 0.63; 'such': 0.63; 'our': 0.64; 'provide': 0.64; 'charset:windows-1252': 0.65; 'note:': 0.66; 'archana': 0.84; 'faced': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Python Documentation Improvement Date: Tue, 25 Nov 2014 12:22:30 +0000 References: <7E0894E94554B548A261863FD8CE7824479D97FC7A@Y000XAKV01.rd1.rf1> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: 5.80.128.193 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1416918306 news.xs4all.nl 2853 [2001:888:2000:d::a6]:47327 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:81503 On 25/11/2014 11:44, Archana Pandey wrote: > Hello > > I hereby would like to share the problem I have faced regarding python > list implementation :- > > As per python documentation python list is mutable data object. > > The problem I found with the list is that is behaves differently when we > use ‘+=’ and ‘+’ ‘=’ operators separately. > > For example- > > A = a + 1 and a += 1 both behave in same way for all data types except > python Lists > > Please find the attached module and execute it on windows python32, See > the difference in output. > > NOTE: Documentation should provide sufficient information for such scenario. > Patches are always welcome on the bug tracker. I observe that you already know the way :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence