DEV Community

Discussion on: Python Dictionary Implementation Question

Collapse
 
tommygeorge profile image
tommy george

I don't have a link at the moment, but I vaguely remember some Python core contributors doing deep dives into code on video quite a while back. That may not be helpful. 🤷🏽‍♂️ I'll see if I can find it.

Meanwhile, the docs have this to say: docs.python.org/2/faq/design.html#...

And the follow-up might have some more info: docs.python.org/2/faq/design.html#...

Here's a stackOverflow answer that, if not fully answering your question, will probably at least give you enough leads to get the answers you're looking for: stackoverflow.com/a/9022835/26196

👆🏽👆🏽👆🏽 That SO post actually links to Python source code, which is obviously the "one true" answer about it's implementation, if you are so inclined do dig in in such a way =)

Collapse
 
vedgar profile image
Vedran Čačić

Probably youtube.com/watch?v=npw4s1QTmPg is the video you seek.

And PLEASE: refer to pythonclock.org. Does it make sense to refer to the documentation of a language that will become unsupported in 42 days? (And, more to the point, has an outdated implementation of dictionaries.)

Collapse
 
tommygeorge profile image
tommy george

Thanks for pointing that out. I'm well aware of Python2's EOL. I think providing a few good leads for someone looking for answers was a kind thing to do.

I doubt Python2's implementation is dangerous to the extent that it's harmful to share what I did. Please be careful to build on other's answers, instead of discouraging folks from trying to drop a few leads.

I acknowledge that if I had directly provided links to source, it would have been better that they were more up-to-date sources. I wasn't in a position to do that, so gave what I had.

That's not the specific video, but it's probably a better example than the one I remember. So thanks for pointing that one out! ;)

It is much better to provide links and things to Python 3.x resources, for sure!

Thread Thread
 
vedgar profile image
Vedran Čačić

Not dangerous, just useless (in the context). I can't see how changing 2 to 3 in that url could be perceived as so hard to do.

Collapse
 
ajkerrigan profile image
AJ Kerrigan • Edited

Good call Tommy. Aside from those resources (and their Python 3 versions), I found this post very helpful: laurentluce.com/posts/python-dicti...