Python Forum
About integer objects vs integer values
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
About integer objects vs integer values
#18
(Apr-28-2019, 08:57 PM)Skaperen Wrote: someone here thinks the reference count increases when an assignment is made? well, OK, so. that is an internal detail. not that i would think anyone would do it this way, but there is a way to mange objects being referenced without using reference counts at all. does it matter? would you create your Python code different if that were so? i'm curious why internal details matter to you. are you planning to implement yet another Python engine? will you big giving it away for free?
You didn't answer the questions that I asked you in my previous post but anyways.
Who said anything about reference count? And yes of course the reference count increases when there is an assignment. Your language is alluding as though that's not true. But it is true.

"but there is a way to mange objects being referenced without using reference counts at all."
What is the other way?

And finally to your question, which I had already answered in my previous post by the way, I'm trying to understand the "why" Python chose this design.

Your argument that you should not care about how things work, in my opinion, is lazy. If you don't understand how a language translates your code behind the scenes, you are bound to run into complications. Yet however I would stress myself that these are abstractions most programmers do not worry about.

But this is about how values are handled in Python at the highest level. What is wrong with knowing how they work? And it's not that there is no benefit in knowing ho. I also would definitely want to use C extensions in the future.

Griboullis that's cool. Can you recommend any material for details like this which happen behind the scenes in Python. How did you personally learn all of this?
Reply


Messages In This Thread
About integer objects vs integer values - by Nwb - Apr-25-2019, 04:55 AM
RE: About integer objects vs integer values - by Nwb - Apr-29-2019, 03:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Does the integer implementation matter? ichabod801 2 1,852 Oct-22-2019, 03:26 PM
Last Post: snippsat
  integer bases Skaperen 7 4,749 Nov-24-2017, 09:46 AM
Last Post: heiner55
  multiplying integer to decimal ArnabRoyBatman 8 12,734 Jun-20-2017, 04:49 PM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

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