From "life before main" to "common life in main"

Is anyone planning to write an RFC on #[distributed_slice] (or would be interested in collaborating on one)?

pyo3 currently uses inventory for the implementation of its multiple-pymethods feature. I think to get the best support for the implementation of pyo3's proc-macros, what is really needed is:

impl SomePythonClass {
    #[distributed_slice]
    pub(crate) static PYMETHODS: [PyMethods] = [..];
}

... that is, a crate-private associated static, which each #[pymethods] impl SomePythonClass block would add an element to.

(I believe that would also need an RFC for associated statics :smile:)