jansky
Re:Django: Reformatted code with Black
on Wednesday February 09, 2022 @06:52AM (#30271600)
this is great. Imagine i declare global variable which is used in function which is defined AFTER this global variable is declared (filled by value) and then function is executed later. Why does ssort put my declaration/filling of global variable before that function declaration?
def myfunc(): global globalvar str(globalvar)
globalvar='abc'
myfunc()
will be transfered to
globalvar='abc'
def myfunc(): global globalvar str(globalvar)
myfunc()
I understand why is it done but i dont want to have function definition block filled with this declaration of variables (which i do later) since it has no impact to my code and it makes is just a bit "cleaner". Dont tell me to not use global variables :D
Re:Tqdm (Python)
on Friday December 17, 2021 @05:21AM (#29590251)
rich is great - exactly this library i used to solve same problem as tqdm does and it includes estimation (ETA) too!
Rich is just amazing library