[docs] Little Tutorial Correction

Petersen, Eike Eike.Petersen at draeger.com
Thu Sep 22 10:12:01 CEST 2011


http://docs.python.org/tutorial/introduction.html#lists  under this section I read across the following statement:

“All slice operations return a new list containing the requested elements. This means that the following slice returns a shallow copy of the list a:

>>> a[:]“

But as far as I know the behaviour of the [:] operator is on the contrary called deep copying, since the following will return different lists:

A = [1,2,3]

B =A[:]


Mit freundlichen Grüßen / Kind Regards,

Eike Petersen

Section Software Application & Algorithms
Research & Development

[cid:image002.jpg at 01CC7910.11F83AA0]

Dräger Medical GmbH
Moislinger Allee 53─55
23558 Lübeck, Germany
eike.petersen at draeger.com<mailto:florian.sieck at draeger.com>

Dräger. Technology for Life ®

P Please consider the environment before printing this e-mail

Sitz der Gesellschaft/Registered office: Lübeck; Handelsregister/Commercial register: Amtsgericht/Local court Lübeck HRB 4358 HL
Vorsitzender des Aufsichtsrats/Chairman of the supervisory board: Stefan Dräger
Geschäftsführer/General manager: Dr. Christian Hauer

<meta content="text/html; charset=ISO-8859-1"
<font face="Arial"><font color="#BABABA"><SPAN style="FONT-SIZE: 8pt">---<br>
This communication contains confidential information. If you are not the intended recipient please return this email to the sender and delete it from your records.<br>
<font face="Arial"><font color="#BABABA"><SPAN style="FONT-SIZE: 8pt"><br>
<font face="Arial"><font color="#BABABA"><SPAN style="FONT-SIZE: 8pt">Diese Nachricht enthält vertrauliche Informationen. Sollten Sie nicht der beabsichtigte Empfänger dieser E-mail sein, senden Sie bitte diese an den Absender zurück und löschen Sie die E-mail aus Ihrem System.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20110922/06b2df86/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 5690 bytes
Desc: image002.jpg
URL: <http://mail.python.org/pipermail/docs/attachments/20110922/06b2df86/attachment-0001.jpg>

More information about the docs mailing list