We cannot do (3). It would break all software that uses the toml
package.
We can always use a different name for a toml parser in the stdlib module, e.g. tomllib
(like pathlib
or contextlib
) or tomlparser
(like configparser
). This would prevent any conflict with upstream projects.