
MongoDB - Mark Smith
Django Chat
00:00
The Funniest Python Tricks
I find it fun when you can stick a sort of proxy around something. You've got a dictionary, but you say once it to be case insensitive. So you stick a wrapper around a dict and then you just make everything lower case when it goes in. It's using Dundas sub behind the scenes to return a kind of another object called a true ish that's, that does fuzzy matching on other types. And somebody suggested that that could actually be useful in testing, for example. I'm not convinced it's actually a good idea, but it's, it's a fun thing. The problem with like teaching these tricks with a straight face is at some point somebody's going to
Play episode from 39:38
Transcript


