Asyncio is really hip. Also twisted, tornado, curio and trio. They're all super cool.
#PyConUS2022@jessejiryudavis In all these excitements, there was a message that was lost.
All of this was already with threads.
#PyConUS2022@jessejiryudavis
When should you use threads or asyncio?
These are two ways to do concurrency.
Neither threads nor asyncio can use multiple CPUs
#PyConUS2022@jessejiryudavis Asyncio is not compatible with most popular Python web frameworks.
If you want to use asyncio, you'll probably have to spend effort to rewrite your code into the compatible framework.
#PyConUS2022@jessejiryudavis Disagrees with @glyph that "Threads are bad".
Glyph's point was that we should use asyncio not because it was faster, but because it was less tricky.
#PyConUS2022@jessejiryudavis
Threads: Speed
Compatibility: already compatible with popular Python web frameworks
Asyncio: more memory efficient, but less tricky.
But it doesn't have to be this way.
#PyConUS2022@jessejiryudavis is now showing how to write less tricky code with threads and giving sample codes using concurrent.futures (available since Python 3.2) and Executors
Go read the slides and watch the recording!
My first visit to a real @Google office since joining!
Visited @googlefiber in Salt Lake City! Thanks Bill Yoshimi for taking me along for a tour! Now I feel like a real Googler 😄
The office just opened in January, and it looks very cozy!
There's a room with a message chair so yes I made use of it 💆♀️
#PyConUS2022 Python SC (Steering Council) panel.
We have @pyblogsal and @Yhg1s from the SC joining us today.
Agenda:
- What is the SC?
- Highlights of the year?
- What's new in Python 3.11
- pre-recorded Q&A
#PyConUS2022 Python SC Agenda:
SC is defined in PEP 13: in charge of the python programming language, and CPython implementation
Govern by consensus. Fosters the community and the core devs.
Final decision on PEPs (Python Enhancement Proposals), except those delegated.
#PyConUS2022 Python SC
The SC meets weekly. SC is separate from PSF but have very good working relationship.
Monthly updates published in github.com/python/steerin…
Write to them at steering-council at python dot org
#PyConUS2022 D&I WG Panel:
is a group of 20 members led by @marlene_zw , founded in 2020.
It was created, there were 4 open seats for PSF Board of Directors.
26 nominees, from all over the world.
1151 PSF members, only 40% voted.
Yet all 4 four elected were North Americans.
#PyConUS2022 D&I WG Panel:
In 2021 We elected more people outside of North America, yet none from Asia despite there were 9 nominations.
#PyConUS2022@masonegger
What is tech writing?
TFW when you follow an online tutorial or docs and the code works on the first run.
Then think of the hours spent wasted following outdated docs.
The difference is Tech writing.
Currently attending #PyConUS2022@pyblogsal on Making Python better one error message at a time.
(Not sure i'll be able to live-tweet but will try. Pablo speaks very fast!)
Pablo shows several examples of SyntaxErrors prior to Python 3.9 that weren't helpful. The error simply says "invalid syntax", when the real problems are things like not closing "}" or ")"