Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to define a variable in Python that points to or is a reference to a list member
Post: RE: How to define a variable in Python that points...

Yeah, I think I'll do what you recommend and define a literal constant AC = 0 so reg[AC] is the accumulator. Thanks again.
JeffDelmas General Coding Help 4 2,669 Feb-28-2021, 10:38 PM
    Thread: How to define a variable in Python that points to or is a reference to a list member
Post: RE: How to define a variable in Python that points...

Thanks for the response. I'm actually teaching a class in computing to seniors and I use Python for its simplicity in my programming examples. I've implemented a simple hypothetical processor simu...
JeffDelmas General Coding Help 4 2,669 Feb-28-2021, 05:53 PM
    Thread: How to define a variable in Python that points to or is a reference to a list member
Post: How to define a variable in Python that points to ...

I have a Python list, r[], and would like to define references, or aliases to specific members of the list. This is easy to do in languages with pointers (like C or C++), but I don't see how to do thi...
JeffDelmas General Coding Help 4 2,669 Feb-28-2021, 04:18 PM

User Panel Messages

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