Python deep dive every Monday 🐍🚀 -> https://mathspp.com/insider
Short daily drop of Python knowledge 🐍💧 -> https://mathspp.com/drops
If you're new-ish to OOP I expect this article to fundamentally change the way you understand OOP.
(For the better!)
If it doesn't, I failed.
You can read it here 👉 mathspp.com/blog/why-oop...
If you're new-ish to OOP I expect this article to fundamentally change the way you understand OOP.
(For the better!)
If it doesn't, I failed.
You can read it here 👉 mathspp.com/blog/why-oop...
“Functions either return something or they blow up”
— A student of mine
“Functions either return something or they blow up”
— A student of mine
Do I know anyone here who can help me get to him?
Thanks 🙏
Do I know anyone here who can help me get to him?
Thanks 🙏
mathspp.com/blog/uv-skills
mathspp.com/blog/uv-skills
ngrok.com/blog/quantiz...
ngrok.com/blog/quantiz...
The joys of programming. 😂
The joys of programming. 😂
(Abuses of the Python syntax are valid answers.)
(Abuses of the Python syntax are valid answers.)
openai.com/index/openai...
openai.com/index/openai...
Steal this for when you're writing your own decorators.
Steal this for when you're writing your own decorators.
Today I already wrote 2.
Go figure. 🤷
Today I already wrote 2.
Go figure. 🤷
2, I recommend you use them (although 1 doesn't work!)
The other 2 are really cool — they use fixed points and `itertools.groupby` — but they'll be overkill 99.9% of times.
That is, shorter runs of 2+ consecutive spaces so there's only 1 space there?
I can't come up with a simple/straightforward way to do it with `str.join` and I'm surprised...
What am I missing?
2, I recommend you use them (although 1 doesn't work!)
The other 2 are really cool — they use fixed points and `itertools.groupby` — but they'll be overkill 99.9% of times.
That is, shorter runs of 2+ consecutive spaces so there's only 1 space there?
I can't come up with a simple/straightforward way to do it with `str.join` and I'm surprised...
What am I missing?
That is, shorter runs of 2+ consecutive spaces so there's only 1 space there?
I can't come up with a simple/straightforward way to do it with `str.join` and I'm surprised...
What am I missing?
On Thursday, pyctrl will be talking about exceptions. We'll cover the origin of exceptions, their usage in OOP, how best to manage them, and more. It's going to be exceptional! 💎
On Thursday, pyctrl will be talking about exceptions. We'll cover the origin of exceptions, their usage in OOP, how best to manage them, and more. It's going to be exceptional! 💎
PLEASE reply with how you'd read it, I'm trying to prove someone wrong 🤣
Reposts are appreciated :D
PLEASE reply with how you'd read it, I'm trying to prove someone wrong 🤣
Reposts are appreciated :D
I wrote a lil' tool that extracts the attention matrices out of open models and creates this typing visual, with each token's opacity changing according to its average attention score as the prompt progresses. Dimmer words are considered less important to the model.
I wrote a lil' tool that extracts the attention matrices out of open models and creates this typing visual, with each token's opacity changing according to its average attention score as the prompt progresses. Dimmer words are considered less important to the model.
Useful when you need to filter an iterable of data based on a second iterable of flags or selectors.
Useful when you need to filter an iterable of data based on a second iterable of flags or selectors.
Today I got all of it!
First, my computer froze and I couldn't even share my screen.
Then, at some point my internet connection went POOF and I dropped off the call... 🤦
Hopefully now I'm good again for a dozen more talks.
Today I got all of it!
First, my computer froze and I couldn't even share my screen.
Then, at some point my internet connection went POOF and I dropped off the call... 🤦
Hopefully now I'm good again for a dozen more talks.
#Python #Berlin
discuss.python.org/t/pep-814-ad...
discuss.python.org/t/pep-814-ad...
How many are there, and what are they?
It's nice that the number is so small that you can actually probably remember all of them fairly easily.
How many are there, and what are they?