Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing a list by reference
#6
Traditional language call by value and call by reference take a backseat in Python to call by object reference.

In addition to @volcano63's excellent comments, see the following which discusses all three concepts in Python: https://stackoverflow.com/questions/1329...-reference

Lewis
To paraphrase: 'Throw out your dead' code. https://www.youtube.com/watch?v=grbSQ6O6kbs Forward to 1:00
Reply


Messages In This Thread
Passing a list by reference - by virgik89 - Jun-30-2018, 03:07 AM
RE: Passing a list by reference - by gontajones - Jun-30-2018, 03:18 AM
RE: Passing a list by reference - by ichabod801 - Jun-30-2018, 03:23 AM
RE: Passing a list by reference - by virgik89 - Jun-30-2018, 03:54 AM
RE: Passing a list by reference - by volcano63 - Jun-30-2018, 10:26 AM
RE: Passing a list by reference - by ljmetzger - Jun-30-2018, 08:12 PM
RE: Passing a list by reference - by virgik89 - Jul-01-2018, 04:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to define a variable in Python that points to or is a reference to a list member JeffDelmas 4 2,716 Feb-28-2021, 10:38 PM
Last Post: JeffDelmas
  Passing List of Objects in Command Line Python usman 7 3,261 Sep-27-2020, 03:45 PM
Last Post: ndc85430
  Pass by object reference when does it behave like pass by value or reference? mczarnek 2 2,594 Sep-07-2020, 08:02 AM
Last Post: perfringo
  Mathplotlib - passing reference to axs to function qmfoam 5 3,018 Aug-17-2020, 09:02 PM
Last Post: qmfoam
  reference in pop function for linked list oloap 0 1,601 Mar-14-2020, 05:52 PM
Last Post: oloap
  set a new object node in a linked list via reference oloap 2 2,151 Mar-13-2020, 09:45 PM
Last Post: oloap
  Problem with List Reference CH_NoLuck 1 1,710 Feb-22-2020, 03:27 AM
Last Post: CH_NoLuck
  Passing an argument by reference Exsul 12 4,795 Aug-22-2019, 07:29 AM
Last Post: DeaD_EyE
  Passing by reference or value CanadaGuy 4 3,012 Nov-12-2018, 08:44 PM
Last Post: CanadaGuy
  List 3 dimensions reference does not work Mario793 1 2,678 Mar-02-2018, 12:35 AM
Last Post: ka06059

Forum Jump:

User Panel Messages

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