RE: Python: Question About Extend And Append Built-in Functions

  • From: "Homme, James" <james.homme@xxxxxxxxxxxx>
  • To: "programmingblind@xxxxxxxxxxxxx" <programmingblind@xxxxxxxxxxxxx>
  • Date: Wed, 8 Dec 2010 13:17:33 -0500

Hi Ken,
I will do that next time. Thanks for pointing that out. I shouldn't be affraid 
to give it a try.

Jim

Jim Homme,
Usability Services,
Phone: 412-544-1810. Skype: jim.homme
Internal recipients,  Read my accessibility 
blog<http://mysites.highmark.com/personal/lidikki/Blog/default.aspx>. Discuss 
accessibility 
here<http://collaborate.highmark.com/COP/technical/accessibility/default.aspx>. 
Accessibility Wiki: Breaking news and accessibility 
advice<http://collaborate.highmark.com/COP/technical/accessibility/Accessibility%20Wiki/Forms/AllPages.aspx>

From: programmingblind-bounce@xxxxxxxxxxxxx 
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Ken Perry
Sent: Wednesday, December 08, 2010 12:56 PM
To: programmingblind@xxxxxxxxxxxxx
Subject: RE: Python: Question About Extend And Append Built-in Functions

I think you already got your answer.  I did however want to point out the time 
it took you to write this email you could have ran up a python interpreter and 
tried it both ways.  I have found that to be the best way to clarify what those 
docs say.

ken

From: programmingblind-bounce@xxxxxxxxxxxxx 
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Homme, James
Sent: Wednesday, December 08, 2010 10:40 AM
To: programmingblind@xxxxxxxxxxxxx
Subject: Python: Question About Extend And Append Built-in Functions

Hi,
One of the most frustrating things in life is to try to read programming 
documentation written by programmers. It's not clear at all, so here goes my 
questioning.

Are they trying to say that the difference between append and extend is 
basically that you can only append one of something to the end of the list and 
that when you use extend that you can append multiple things? And a related 
question is: when you use extend, are you allowed to put any kind of thing you 
want onto the end of a list? For example, if you have a list of strings, can 
you use extend to put a string and a list of strings onto the end of your list? 
I don't know why you'd do that, but I'm just asking if you can.

                Thanks.

Jim
Jim Homme,
Usability Services,
Phone: 412-544-1810. Skype: jim.homme
Internal recipients,  Read my accessibility 
blog<http://mysites.highmark.com/personal/lidikki/Blog/default.aspx>. Discuss 
accessibility 
here<http://collaborate.highmark.com/COP/technical/accessibility/default.aspx>. 
Accessibility Wiki: Breaking news and accessibility 
advice<http://collaborate.highmark.com/COP/technical/accessibility/Accessibility%20Wiki/Forms/AllPages.aspx>


________________________________
This e-mail and any attachments to it are confidential and are intended solely 
for use of the individual or entity to whom they are addressed. If you have 
received this e-mail in error, please notify the sender immediately and then 
delete it. If you are not the intended recipient, you must not keep, use, 
disclose, copy or distribute this e-mail without the author's prior permission. 
The views expressed in this e-mail message do not necessarily represent the 
views of Highmark Inc., its subsidiaries, or affiliates.

Other related posts: