Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
About list copy.
#2
a is a list that references three other lists. b is a new list, different than a, but b[0] is the same list as a[0]. Use deepcopy to make copies of the contents.
Reply


Messages In This Thread
About list copy. - by water - Apr-02-2022, 08:45 PM
RE: About list copy. - by deanhystad - Apr-02-2022, 09:46 PM
RE: About list copy. - by bowlofred - Apr-02-2022, 10:06 PM
RE: About list copy. - by deanhystad - Apr-03-2022, 02:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Why is the copy method name in python list copy and not `__copy__`? YouHoGeon 2 442 Apr-04-2024, 01:18 AM
Last Post: YouHoGeon
  Copy List Not Copying BAbdulBaki 3 772 Aug-19-2023, 02:03 AM
Last Post: perfringo
Question Making a copy list in a function RuyCab 1 1,904 Jul-11-2021, 02:06 PM
Last Post: Yoriz
  Copy List Structure leoahum 2 3,028 Mar-22-2019, 05:40 PM
Last Post: leoahum
  copy list into variable poroton 1 2,710 Aug-10-2018, 07:19 AM
Last Post: Gribouillis
  Copy List [Help Needed] Patricamillie 0 2,285 Jun-11-2018, 10:53 AM
Last Post: Patricamillie
  Which approach is better to copy a list? nexusfactor 6 4,976 Oct-15-2017, 10:45 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020