Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #81495
| From | "PANDEY2 Archana (MORPHO)" <archana.pandey.2@morpho.com> |
|---|---|
| Date | 2014-11-25 10:23 +0100 |
| Subject | FW: Unexpexted behaviot of python operators on list |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.16274.1416907513.18130.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
Hello I hereby would like to share the problem I have found regarding python list implementation:- As per python documentation python list is mutable data object. That 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 list Please find the attached module and execute it on windows python32, See the difference in output. Kind Regards [cid:image001.png@01D008BC.95CE3F20] Syscom Corporation Limited Morpho e-Documents Division D-216, Sector 63, Noida, Uttar Pradesh, 201301, India Archana Pandey Software Engineer-Payment/ID Noida Tel: +91 (120) 4072 882 Mob: + 91 78 38 207 829 Mail: archana.pandey.2@morpho.com<mailto:archana.pandey.2@morpho.com> # " This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, you are notified that any dissemination, copying of this e-mail and any attachments thereto or use of their contents by any means whatsoever is strictly prohibited. If you have received this e-mail in error, please advise the sender immediately and delete this e-mail and all attached documents from your computer system." #
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
FW: Unexpexted behaviot of python operators on list "PANDEY2 Archana (MORPHO)" <archana.pandey.2@morpho.com> - 2014-11-25 10:23 +0100
Re: FW: Unexpexted behaviot of python operators on list Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-11-25 22:40 +1100
Re: FW: Unexpexted behaviot of python operators on list Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-11-25 12:20 +0000
Re: FW: Unexpexted behaviot of python operators on list Denis McMahon <denismfmcmahon@gmail.com> - 2014-11-25 13:07 +0000
csiph-web