On 4/27/2020 11:47 PM, Soni L. wrote:
[snip]
> tbh my particular case doesn't make a ton of practical sense. I have config 
> files and there may be errors opening or deserializing them, and I have a 
> system to manage configs and overrides. which means you can have multiple 
> config files, and you may wanna log errors. you can also use a config manager 
> as a config file in another config manager, which is where the error logging 
> gets a bit weirder. I'm currently returning lists of errors, but another 
> option would be to yield the errors instead. but, I'm actually not sure what 
> the best approach here is. so yeah. I can't *use* that motivating example, 
> because if I did, everyone would dismiss me as crazy. (which I am, but please 
> don't dismiss me based on that :/)
>
Maybe you could start by actually writing the code, and then demonstrate how 
your idea would make the code easier to read or understand, or less error 
prone, or whatever other improvement it would bring.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/RRRRLDC7PIA5B3NOTPF5KJFUZJVNHFC5/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to