gum
gum
castnow used to have a similar feature but now suggest to pipe the mp4 stream found by youtube-dl toward the chromecast device (note that this seems buggy too). https://github.com/xat/castnow Just...
# Tuples ## tuple syntax ``` a = 1 # >>> a # 1 # >>> a, # (1, ) ``` ## unpacking iterable of length 1 ``` a, =...
@brennerm They sit between tricks and easy to overlook syntax. Here's another thing I only found recently: ## slice operator accepts None ``` # useful to have a value to...
@brennerm It's unrelated, ability to pass a a value to [:] is rarely shown and very valuable. (see this example).
@brennerm I think @bash-j wants to be able to use nested dicts, and asks if format has a syntax to address sub-elements.
@brennerm Oh I see, accessing both key and value. I agree it's not a great idea. Better have ... 'age' : {'value' : 24, 'type' : 'years'} ... Anyway, I...
@dharmit Funny, conditionalfunctional.py inspired writing the similar thing, albeit not interactive, more an assembler POV: ``` import operator ops = { 'add': operator.add, 'sub': operator.sub, 'mul': operator.mul, 'div': operator.truediv }...