question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Investigate an upgrade to Python 3.9.4

See original GitHub issue

Description

Python 3.9.1 has been released today (yay!), which means that it’s mature enough for us to start looking into upgrading the Python version of sir-lancebot. We’ll obviously have to make sure all our dependencies support 3.9 and everything works well, but it would be nice to use the new language features.

Reasoning

It’s better to keep up with Python version, adjusting our code base as required, than making a major leap in major versions with a potential more sizeable migration. Also, Python 3.9 introduces those neat built-in type generics, meaning that those ugly typing.List[Typing.Dict[str, str]] annotations can be replaced by list[dict[str, str]].

Additional Details

We should not rush the upgrade! Take your time and have a look at our dependencies: Do they support Python 3.9? Are there know issues that are relevant for us? If too man roadblocks appear on the horizon, we can simply wait until they’re solved!

Would you like to implement this yourself?

  • I’d like to implement this feature myself
  • Anyone can implement this feature

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
ks129commented, Jan 9, 2021

I have already slowly started upgrading Python and discord.py.

1reaction
ks129commented, Dec 27, 2020

discord.py doesn’t officially support 3.9 yet, because it’s dependencies doesn’t support it too. discord.py 1.6.0 will bring support for 3.9 (at least based on that what is said in server), so we need to wait until this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Release Python 3.9.4
Python 3.9.4 is a hotfix release addressing an unintentional ABI incompatibility introduced in Python 3.9.3. Upgrading is highly recommended ...
Read more >
How to Upgrade Python to 3.9 { Windows, macOS and Linux}
Install Python 3.9 from the Microsoft Store · 1. Go to Microsoft Store and type Python in the search field. · 2. Select...
Read more >
Python 3.9: Cool New Features for You to Try
In this tutorial, you'll learn about: Accessing and calculating with time zones; Merging and updating dictionaries effectively; Using decorators ...
Read more >
How to set default python3 to python 3.9 instead of python 3.8 ...
I want to change that default pip3 behavior by updating the symbolic link /usr/bin/python3 to /usr/bin/python3.9. How to do that? # update- ...
Read more >
Top 4 Features To Learn About Python 3.9 - Analytics Vidhya
Try implementing your existing applications employing Python 3.9 and observe if upgrading to the latest version will be worth it for you or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found