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
    
  3. optional static typing. as in i would add the ability to statically type things in python, but not make it mandatory.

  4. “slef” should be a universal alias for self

  5. Get rid of the GIL

  6. 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.

  7. 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 am also publishing my "Practical Python Projects" book soon. To stay updated regarding the book and new posts, join 5000+ other people who receive my newsletter:

I send out the newsletter once every couple of weeks. No spam, I promise

✍️ 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