Python __dunder__ Functions [video]
neckbeardrepublic.com
neckbeardrepublic.com
I usually hear it used to replace the phrase "double underscore". For example: "a dunder call method can be used to make an object callable".
Good work, Python!
I have three monitors right now, my build-in MBP one and two others hooked up to it. I would like to watch this video in full screen on the MBP display, while doing other stuff in the other two.
Clicking on "Full Screen" activates OSX's shitty built-in "full screen" mode, which moves the video full screen to the center monitor, and hides away every other window on my desktop.
This is awful.
Your browser probably has some native plugin to play the video, so you can try watching the mp4 directly in that, which might identify if the full screen issue is the browser or the sublime video player part.
FWIW, it works sensibly on windows. It seems strange that Macs have such a problem with multiple monitors. My colleagues are always wasting 10-15min of every meeting trying to figure out how to attach the projector, or use the screen sharing tools(adobe connect) to share the right monitor.
Wait, what are we talking about again?
Python never fails to amaze me. Everything in the language is a thing that you can redefine. The more I learn about it, the more it reminds me of Lisp, which I had the pleasure (and trauma) of first using more than 25 years ago. Once I wrapped my head around the basics of Lisp, I realized it's a mind-altering experience. I'm long overdue to return to learning more about functional programming.
Pretty much goes for any dynamic language, perl/ruby/javascript/etc...
Compare and contrast: http://docs.python.org/3/reference/datamodel.html#special-me...
Ruby provides roughly the same level of hooking (not sure it allows overriding instance or subclass checks, but it allow overriding things Python does not as well), but JS most definitely does not.
Also I definitely need to learn more about Python. It's always deeper than I realize.