
vectorpropio
u/vectorpropio

Hola expatriados. Tengo la ciudadanía española tramitada en el consulado de bs as. Quería tramitar la de mis hijos, no encuentro el costo ni cuanto tarda en la pagina del consulado. Alguien sabe la posta? Gracias
Hi to all.
I'm adding to some code a configuration file (ini via configparse), command line options (with argparse) and logging (with the respective module).
I'm wondering if it's better to do all the initialization and configuration directly in main() or to put them in functions (like ini_reading(), args_reading(), configure_log()) or even one big function calling all the others (like do_the_config() )
Thanks
Hi to all.
I make an independent file to read a configuration file with configparse, also i want this module to create a minimum config file while used standalone (with the if name == 'main' magic) .
I need to import another lib only for the sake of this use, is ok to put that import in the if, or the main function?
Minimal no funcional example
import normales tuff
def main():
import io # this is the import in interested
do_the_thing()
def func1()
.
.
.
if __name__ == '__main__':
import io # this is my second option
main()
Is there a standard practice in this cases?
Al que le pueda servir, acaban de reabrir los turnos de renovación de pasaporte.
La última vez que miré no estaba todavía el trámite de ciudadanía, pero estaban agregando así que revisen.
Los turnos son para febrero.
Suerte!


