On Fri, 2026-07-17 at 15:42 +0100, Nathan Williams via dev wrote:
> 1. What is the reason Buildstream uses a custom warning system over: 
> https://docs.python.org/3/library/warnings.html?
> - At a guess this is because Buildstream pre-dates the warnings std 
> Python lib, or it's a performance optimisation, the commit messages 
> aren’t very clear, could someone shed some light?

It may have been related to BuildStream using forked child processes in
the past, which required non-trivial coordination for proper output in
the main process. I'm not sure whether this was the main or only
reason, maybe Tristan remembers more details.

> 
> 2. Could we consider replacing the custom warnings implementation with 
> the standard warnings library?

I wouldn't rule it out completely but I suspect it would require a non-
trivial effort to migrate completely with full compatibility and I
don't know whether it would be worth it.

Jürg

Reply via email to