I’m not even sorry for this



This content originally appeared on DEV Community and was authored by IO_Node

verify_params=lambda p:print("Verifying the parameters of the script...") or (lambda: [print(f"Script path: {extract_full_path('python_code_checker',p[0])}"), (lambda lp: lp==2 and (fix_path_from_param(p), (lambda f:(check_outside_cwd(f), (lambda: (f.exists() or (_ for _ in ()).throw(FileNotFoundError(f"File not found: '{p[1]}'"))), (lambda: (lambda c:(lambda: c["config"])(json.load(open(f,'r',encoding='utf-8'))))((lambda: (print('Unrecognized config filename, checking for python script instead.') or (print_analyze_menu(f) if f.parts[-1].endswith('.py') else print('Unrecognized python script file')) or json.load(open(f,'r',encoding='utf-8'))))()) ) )() )() )(extract_full_path('python_code_checker',p[1]))) or (lp==3 and print('This test only supports 1 config argument')) or (lp>3 and print('Final script only supports 2 arguments')) or (lp==1 and (print('Script executed without argument, easter egg triggered'),default_config)) or (lp==0 and print('Error: system is unable to find any active script')) or (lp>0 and default_config)])(len(p)))

yes I figured out how to play golf in python. Enjoy this cringe-fest. 1000 lines scripts? pffft more like 1 line XD


This content originally appeared on DEV Community and was authored by IO_Node