@treyhunner This is awesome momentum for the Mastodon Python community and exactly why I started building @fedidevs almost a year ago!
If anyone wants to see all Mastodon posts in one place and be able to filter/sort through them, check out the #PyCon24 page: https://fedidevs.com/pycon24/
• math.prod (like sum, but for multiplication)
• clearing the REPL with globals().clear()... this would break things in Python 3.7!
• argparse's add_argument method has an "extend" action
My students often ask me whether they can see a list of every dunder method that #Python has. I've been meaning to compile a categorized list for years.
I finally did it.
Here's every dunder method in Python... all 115 of them! 🤯
@treyhunner@fohrloop That does look awesome. Any chance those changes will come to python3 -m asyncio as well, or for the latter to just become the default?
@jugmac00@treyhunner@hynek Yeah, I don't have a global pip either (homebrew). I do have a global pip3, but I'd never accidentally (or intentionally) type that. :)
Guess which Norwegian, needleworking, library-indexing, BeeWare contributing folks are now on Mastodon in preparation for a future Python conference. 🇳🇴🧵📚🐝
I attended my first Python conference 10 years and 10 days ago.
I wrote a meandering and nostalgic blog post (complete with links to old group selfie tweets) about the last 10 years of being part of the wider #Python community.
I'm really grateful I decided to attend PyCon 2014 and that I came back for PyCon 2015 and went to DjangoCon 2015 as well.
@treyhunner@ThePSF@kjaymiller I can't claim any credit here (participating would have been a conflict of interest). Jay did a fantastic job on this project, and it was definitely valuable for me as a voter.
If you see someone mentioning a technology (or something else) you want to check out later, set a bookmark (Inside your client) in addition to boosting it, because it's hard to find what you boosted a few weeks later.
You are other people's algorithm. Make sure to boost interesting posts, otherwise they will not get visibility beyond an audience following the hashtag.
For those on iOS, have a look at #IceCubes, you can set in into a Twitter-like single column mode.
class-based views (CBVs) or function-based views (FBVs)? 🤔
I started with function-based views, but after a few years of using Django I pretty much moved fully to class-based views. Both have pros & cons (and vocal advocates).
The Django docs introduce FBVs first and then discusses CBVs as well as Django's built-in "generic class-based views" (GCBVs).
Django-REST-Framework also makes heavy use of CBVs.
• interacting with folks without discussing #Python
• playing (my version of) #Cabo
• how great chatting with other teachers & learners is
• getting feedback and validation
• contributing during sprints