Source

If you could change something in Python what would it be?

Hi there guys. Recently I posted a question on Reddit. The question was that if you could change something in Python what would it be? I got some really interesting answers from other programmers. Here are some of the top answers till now.

  1. Make building a stand alone executable part of the spec. The two main projects that do it are hacks
  2. the namespaces in the datetime module. its really annoying to have to remember if I used
  import datetime 
  # vs.
  from datetime import datetime
  1. optional static typing. as in i would add the ability to statically type things in python, but not make it mandatory.
  2. “slef” should be a universal alias for self
  3. Get rid of the GIL
  4. A good, consistent, Pythonic, cross-platform, batteries-included graphic library. Tkinter is the closest, but the execution loop makes it challenging to do advanced stuff, and the adherence to Tk makes it challenging for a beginner to do basic stuff.I appreciate it’s not easy to design and write such a thing, but I can still wish.
  5. Compile to native codeCombine 2 and 3 into one version moving forward

If you would like to receive such posts as well as other interesting tutorials then do follow my blog. That’s it for now. Stay tuned for my next post!

Newsletter

×

If you liked what you read then I am sure you will enjoy a newsletter of the content I create. I send it out every other month. It contains new stuff that I make, links I find interesting on the web, and occasional discount coupons for my book. Join the 5000+ other people who receive my newsletter:

I send out the newsletter once every other month. No spam, I promise + you can unsubscribe at anytime

✍️ Comments

metin

I would be add a maven-like extension to python

Fernando

Visual Python

ljgww

concurrence

Say something

Send me an email when someone comments on this post.

Thank you!

Your comment has been submitted and will be published once it has been approved. 😊

OK