loading...
Cover image for 🐍 Python4: What should it do differently?

🐍 Python4: What should it do differently?

theycallmemac profile image James McDermott ・1 min read

Dev discussion on what Python4 should do differently from it's predecessor.

I'll start - I'm hoping that migrating from 3to4 is simpler than 2to3 was 🤞

Discussion

markdown guide
 

I know this won't happen, but I would love to see type hints become enforced or enforceable, even if it's just at runtime. It's compatible with being interpreted, like a function call could throw a type error if you pass it the wrong stuff.

 

I have been falling deeper in love with type hinting in python!

 

I actually quite enjoy it, I never thought I'd come around to it but I'd like to see it enforced from now too!

 

I think turning on the pywright extension in vscode helped warm me up and get ready for full strict mypy.

 

I think turning on the pywright extension in vscode helped warm me up and get ready for full strict mypy.

 

My take would be on performance. Saw a lot of people/companies ditching Python stating that it was not performant.

 

Personally would like to see some overall performance increase, unsure how much room there is left in that with Python though.

 

How does it compete with something like node that uses the v8 engine and gets orders of magnitude more development funding per year?

 

Get rid of unprintable semantics 😁

 

Yeah in all honesty this irks me a lot, would like to see a change :P