Python 3.8 New Features

You might be wondering what all the fuss is about, but trust us when we say that this release has some pretty sweet new features that will make your coding life a whole lot easier (or at least more entertaining).
So, first up, type annotations. These are basically just fancy comments that you can add to your code to tell Python what types of data each variable should contain. For example:

# This is a function named "my_function" that takes in a parameter "x" of type integer and returns a string.
def my_function(x: int) -> str:
    # do some stuff here...
    return "hello, world!" # This line returns the string "hello, world!" as the output of the function.

In this case, we’re saying that the input parameter `x` must be an integer (`int`) and the output of our function will be a string (`str`). This can help catch errors earlier in development and make your code more readable for others.
Python 3.8 also has some new deprecations that you should know about. For example:

– The `wstr` and `wstr_length` members of the C implementation of unicode objects have been removed (per PEP 623). This is because they were unnecessary and caused confusion for many developers.

– In the `unittest` module, a number of long deprecated methods and classes have also been removed (since Python 3.1 or 3.2). If you’re still using these old features, it might be time to upgrade your codebase!

And finally, some other miscellaneous changes that you should know about:

– The internal representation of integers has changed in preparation for performance enhancements (this shouldn’t affect most users as it’s an internal detail).

– Invalid backslash escape sequences in strings now warn with `SyntaxWarning` instead of `DeprecationWarning`, making them more visible. This is because they will eventually become syntax errors, so you might want to start fixing those up sooner rather than later!

8. If you’re feeling adventurous (or just bored), go ahead and give them a try! And if you run into any issues, don’t hesitate to reach out for help.

SICORPS