) Plesse close that parentheses
) Plesse close that parentheses
Such an iconic video
I just pay the qobuz subscription and use this inofficial script which can download the high res flac files from qobuz. (You can also buy music on qobuz and you get the flac file without drm or so as a download, compared to other services which don’t give you the file itself)
And then I use jellyfin to host my music library. Jellyfin has many music player apps which you can use.
https://github.com/vitiko98/qobuz-dl
https://jellyfin.org/downloads/clients/all
But most of the time I’m just streaming through qobuz directly.
Sure, but I really like to look at this when I’m deciding on wether an open source project is worth to use, if you can see that the author is relatively active.
If you have a variable called exit
you’ve overwritten the function in that scope, and won’t be able to execute it.
e.g.
>>> exit=1
>>> exit()
Traceback (most recent call last):
File "", line 1, in
TypeError: 'int' object is not callable
>>>
This is the code (Github link):
class Quitter(object):
def __init__(self, name, eof):
self.name = name
self.eof = eof
def __repr__(self):
return 'Use %s() or %s to exit' % (self.name, self.eof)
def __call__(self, code=None):
# Shells like IDLE catch the SystemExit, but listen when their
# stdin wrapper is closed.
try:
sys.stdin.close()
except:
pass
raise SystemExit(code)
What happens is that the python repl calls __repr__
automatically on each variable/statement that you type into the repl (except assignments e.g. x = 1
).
But this basically only happens in the repl. So “executing” only exit
wouldn’t work in a python script as it is not calling __repr__
automatically, so better you learn how to do it right than using just exit
in your python scripts and scratching your head why it works in the repl but not in your code.
On custom roms like grapheneos you can change the domain it connects to. Om grapheneos it defaults to servers hosted by grapheneos.