[April Fools 2021] Python 4.0! New old print, mandatory static typing, StackOverflow integration
Skills:
RAG Basics60%
Key Takeaways
Python 4.0 features new old print syntax, mandatory static typing, and StackOverflow integration as announced in PEP401, although this is an April Fools' joke.
Full Transcript
hello everyone i'm james murphy and as you can see i am on python.org with some huge news python 4.0 has just been released let's take a look pep401 outlined some of the major changes coming in python 4 and here are the big ones we have new old print syntax mandatory static typing and stack overflow integration i've already taken a quick look at these but i'm just going to go through sort of the abstract reasoning and sort of give you my impressions as we read through it so let's just read through it together okay so it's going to tell us about the new features coming in python 4. the 4.0 series is reserved for groundbreaking changes in the python language and this is nothing less than that okay good ever since the original breaking changes made in the 2-7-3-0 transition the community has been primarily split down version lines agree surveys have found the average python programmer spends over fifty percent of their work time converting two to three with over ninety percent of that time um putting parentheses around print statement arguments definitely in python four the old print syntax is going to be reintroduced so that you don't have to change that old code anymore it will just start working again that's awesome and of course the newer print function is going to still be supported next we have a fundamental change to the type system uh python was initially developed as a dynamic type system but it was too flexible to allow offline optimizations by optimizing the pilers in python 4 type annotations will become mandatory on all function arguments return types and variables that cannot be statically deduced the standard library will be typed completely with the exception of the explicit duct type and so most code depending solely on standard library functions and types will not need much change this is a huge change it's completely overhauling the type system type annotations are now mandatory but what do we get for this an average speed increase of over thirty 000 percent and memory usage decrease of 50 percent across the entire standard library again huge change huge benefit finally python has long been known for how easy it is to develop and yada yada yada we're partnering with stack overflow to bring automated stack overflow report yields uh in short any time an unhandled exception reaches the interpreter the source code accessible state of the stack and heap all variables and values in scope will automatically be uploaded and published to stack overflow along with the relevant stack trace as a question to a dedicated python overflow section of the site for other users to debug that means when you have an error you don't even have to post it on stack overflow anymore it's already covered and like i said before this was just accepted last night apparently it was a unanimous vote by the python language committee and it's coming soon to a python near you this just all happens so fast i mean there are so many new features coming huge changes coming um i'm not even sure exactly what to say i mean it all sounds really really good so i just wanted to give you my take uh my first impression on these changes it's probably going to be like a year before you know the release actually happens um but i'm always looking ahead always looking forward to that next release so let me know what you think of these changes down in the comments don't forget to like comment and subscribe i'll see you next april fools yes obviously this is an april fool's joke there is no python 4 yet and none of these things are ever going to be implemented in python
Original Description
Some big changes are coming to Python!
Obviously this is an APRIL FOOLS JOKE (2021).
(For those unfamiliar with US traditions, once a year on April 1st, it is traditional to spread ridiculous or outrageous obviously false statements in the name of good fun.)
This video is entirely satirical and None of the changes claimed have actually been stated by any official Python representative in any way.
The website is not real, I just right-click inspected an existing PEP and changed it locally on my machine.
― mCoding with James Murphy (https://mcoding.io)
SUPPORT ME ⭐
---------------------------------------------------
Patreon: https://patreon.com/mCoding
Paypal: https://www.paypal.com/donate/?hosted_button_id=VJY5SLZ8BJHEE
Other donations: https://mcoding.io/donate
BE ACTIVE IN MY COMMUNITY 😄
---------------------------------------------------
Discord: https://discord.gg/Ye9yJtZQuN
Github: https://github.com/mCodingLLC/
Reddit: https://www.reddit.com/r/mCoding/
Facebook: https://www.facebook.com/james.mcoding
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from mCoding · mCoding · 17 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
▶
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Goodbye, List! Type hinting standard collections - New in Python 3.9
mCoding
Python's comma equals ,= operator?
mCoding
Finding Primes in Python with the Sieve of Eratosthenes
mCoding
Find the First Missing Positive Int | Hard Interview Question on LeetCode
mCoding
JSON Tutorial Python | Basic Python Recipes
mCoding
Simulating Brownian Motion in Python
mCoding
The Single Most Useful Decorator in Python
mCoding
The Fastest Way to Loop in Python - An Unfortunate Truth
mCoding
Numpy Array Broadcasting In Python Explained
mCoding
Brownian Motion Single Path Zoom
mCoding
Brownian Motion Fractal Zoom
mCoding
Magic Methods - Making Python builtins work with your classes
mCoding
50 Million Primes In 5 Seconds - Segmented Sieve of Eratosthenes
mCoding
The Hottest New Feature Coming In Python 3.10 - Structural Pattern Matching / Match Statement
mCoding
How Fast is Python's Sort? Performance Testing
mCoding
C++ First Missing Int, faster than 100%!
mCoding
[April Fools 2021] Python 4.0! New old print, mandatory static typing, StackOverflow integration
mCoding
Python dataclasses will save you HOURS, also featuring attrs
mCoding
C++ Sudoku Solver in 7 minutes using Recursive Backtracking
mCoding
Every PROOF you've seen that .999... = 1 is WRONG
mCoding
Python's sharpest corner is ... plus equals? (+=)
mCoding
Binary Search - A Different Perspective | Python Algorithms
mCoding
The Best Way to Check for Optional Arguments in Python
mCoding
Local and Global Variable Lookup Weirdness in Python
mCoding
Efficient Exponentiation
mCoding
How To Install Python for Data Science
mCoding
0.1 + 0.2 is NOT 0.3 in Most Programming Languages
mCoding
Python 3.10's new type hinting features
mCoding
Python 3.10's Quality of Life improvements
mCoding
Introducing mZips! Python Zip and Zip Longest
mCoding
Match statement tips
mCoding
Using except: is a HUGE mistake
mCoding
Python + YouTube API | Automating descriptions
mCoding
Anaphones, phonetic anagrams
mCoding
Cracking passwords using ONLY response times | Secure Python
mCoding
Python f-strings can do more than you thought. f'{val=}', f'{val!r}', f'{dt:%Y-%m-%d}'
mCoding
Diagnose slow Python code. (Feat. async/await)
mCoding
Python MD5 implementation
mCoding
Salting, peppering, and hashing passwords
mCoding
x to bool conversion in Python, C++, and C
mCoding
You should put this in all your Python scripts | if __name__ == '__main__': ...
mCoding
Find the Skyline Problem with C++ Solution Explained
mCoding
The ONLY C keyword with no C++ equivalent
mCoding
Should you use "not not x" instead of "bool(x)" in Python? (NO!)
mCoding
Multiple Assignments in Python
mCoding
Why I don't like Python's chained comparisons
mCoding
Automated Testing in Python with pytest, tox, and GitHub Actions
mCoding
You can pip install directly from GitHub
mCoding
__new__ vs __init__ in Python
mCoding
Metaclasses in Python
mCoding
The easy way to keep your repos tidy.
mCoding
Which Python @dataclass is best? Feat. Pydantic, NamedTuple, attrs...
mCoding
Python __slots__ and object layout explained
mCoding
C++ cache locality and branch predictability
mCoding
Avoiding import loops in Python
mCoding
25 nooby Python habits you need to ditch
mCoding
Python staticmethod and classmethod
mCoding
Building a Python app with Anvil to email me if my website goes down (includes paid features)
mCoding
31 nooby C++ habits you need to ditch
mCoding
Interviewing the creator of C++, Bjarne Stroustrup
mCoding
More on: RAG Basics
View skill →Related AI Lessons
⚡
⚡
⚡
⚡
Your AI Keeps Making Things Up. RAG Is How You Make It Use Real Facts Instead.
Medium · RAG
Evaluation Metrics for RAG: Measure Retrieval, Generation, and End-to-End Quality With Numbers That…
Medium · AI
Evaluation Metrics for RAG: Measure Retrieval, Generation, and End-to-End Quality With Numbers That…
Medium · Data Science
When Does HyDE Help RAG? I Tested 3 Query Types and It Failed on Two
Medium · AI
🎓
Tutor Explanation
DeepCamp AI