Idea: requiring per-package opt-in for installation of implicit startup files

Effectively yes. In my mind we also separate the processing of these TOML files into two phases: a discovery/parsing phase and an execution phase. That would let us do some interesting things[1] such as apply a policy to path extension and code execution.

It should be as easy as .pth discovery, since in my mind, this TOML file would sit exactly where the .pth file would sit.

Yep. It would probably be generated by packaging tools, but I do think human readability[2] is important. Now that we have TOML parsing in the stdlib, I think this is a totally reasonable approach. We can even lazy import tomllib :winking_face_with_tongue:

Yep!

I am! I’m actually working on a pre-PEP and a prototype to explore the schema and semantics, but I think it all falls out pretty naturally[3]. I can create a separate topic once I have something a bit more concrete to share, but reach out if you want to collaborate.


  1. likely deferred to the future ↩︎

  2. and maybe writeability ↩︎

  3. :prohibited::bicycle::derelict_house:! :smiley: ↩︎

1 Like