top 10 new things in python3.9 (beginner - intermediate) anthony explains #093
Description
today I discuss and demo my top favorite new things in python3.9!
links:
- getting python3.9 early via deadsnakes: https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa
- what's new in python3.9: https://docs.python.org/3.9/whatsnew/3.9.html
- stdin / stdout / stderr video: https://www.youtube.com/watch?v=5za6eRdHjpw
- decorators: https://www.youtube.com/watch?v=WDMr6WolKUM
- 0:00 - (intro) / how I have python3.9 already
- 01:18 - builtin generic types (for type annotations)
- 03:05 - dictionary merge operators
- 04:58 - str.removeprefix / str.removesuffix
- 06:38 - sys.stderr is now line buffered everywhere
- 08:30 - ast.unparse function
- 10:00 - new PEG parser and secret bonus new with syntax
- 13:13 - __file__ of interactive scripts is now an absolute path
- 14:37 - new functions in curses for tabsize / escdelay
- 15:45 - decorators can be any expression
- 17:00 - new modules (zoneinfo, graphlib)
playlist: https://www.youtube.com/playlist?list=PLWBKAf81pmOaP9naRiNAqug6EBnkPakvY
==========
twitch: https://twitch.tv/anthonywritescode
twitter: https://twitter.com/codewithanthony
github: https://github.com/asottile
stream github: https://github.com/anthonywritescode
I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!
Comments