Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #81503
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Subject | Re: Python Documentation Improvement |
| Date | 2014-11-25 12:22 +0000 |
| References | <7E0894E94554B548A261863FD8CE7824479D97FC7A@Y000XAKV01.rd1.rf1> <CA+hACH9B1beqm+-vsy_7woL-fu-vbQkh3D0XGByqcBDWH0kKhQ@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.16278.1416918306.18130.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python Documentation Improvement Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-11-25 12:22 +0000
csiph-web