Python behind the scenes #10: how Python dictionaries work
tenthousandmeters.com
external-link
Python dictionaries are an extremely important part of Python. Of course they are important because programmers use them a lot, but that's not the...

Nice article reviewing hash tables and how python dictionaries are implemented with them.

bahmanm
link
fedilink
41Y

Good refresher on the topic and ineteresting gory details of CPython impl.

On another note, is Jython still a thing?

deleted by creator

Pretty sure Jython is, though not a Python 3 version. My exposure is as the scripting language, behind Java as the primary language, for Ghidra. And I hate it and installed Eclipse rather than deal with J/Python’s shit.

is Jython still a thing?

No. (Source: I had to try to keep its zombie corpse shuffling along at my last job.)

bahmanm
link
fedilink
English
11Y

Oh, I see. It kind of makes sense. Who’d need Jython when GraalVM’s out there nowadays!? Well, unless it’s a legacy app 😬

Trust me, you don’t want to be trying to maintain legacy Jython code at this point, let alone use it for anything new. All the “normal” Python infrastructure like Pip etc. has moved on and broken compatibility, so you’d have to find and maintain locally the last working compatible version of every single package you use. I suppose you could use Java libraries, but the impedance mismatch trying to use LBYL explicitly typed stuff in EAFP python is terrible. It’s just a horrible mess.

deleted by creator

bahmanm
link
fedilink
21Y

I genuinely wonder why the downvotes?

Create a post

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



  • 1 user online
  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 1 user / 6 months
  • 1 subscriber
  • 1.21K Posts
  • 17.8K Comments
  • Modlog