Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
StumblyWumbly
Sep 12, 2007

Batmanticore!
Does anyone have a good best practice for type hinting on widely shared stuff? It definitely clears things up, but a lot of it is so new and it seems like the choices are to have people always on the latest version or not use stuff like the Filename type for a few years.
Oh never mind it sounds like Filename is our own specific type. I'm still interested in the question, but it's easier since type hints aren't changing as much as I thought

StumblyWumbly fucked around with this message at 18:23 on Mar 22, 2024

Adbot
ADBOT LOVES YOU

StumblyWumbly
Sep 12, 2007

Batmanticore!
My excuse: the Literal type came out in 3.8, and it caused some friction between the folks who like the new stuff and the folks who like running with old-ish Python and not having it crash. I was doing a PR and got a flashback when I saw the new type, before I realized adding the type was part of the PR.

StumblyWumbly
Sep 12, 2007

Batmanticore!
Any recommendations for places to start with interfacing dlls and python?
I'm interested in playing around with this and trying to make some file parsing stuff faster by reading binary data in c, then passing it to python for the higher level stuff.
I've used ctypes before, but I'm under the impression dll stuff has changed in the last 4 versions or so, and I'm worried searching will suggest bad habits.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply