Filipe Laíns 🇵🇸
Filipe Laíns 🇵🇸
@vstinner, would you mind giving this a look?
> I hope you fix the problems with clear_memo before making this doc public Did you read my comment about it on the original isue? The function is public already...
> The documentation is a copy of the docstring, but perhaps we could make it even clearer by replacing `This method is useful when re-using picklers.` with something like `When...
Tangentially related: we should also fail earlier if `PYTHONHOME`, `PYTHONPLATLIBDIR`, etc. are not directories in the fist place.
Related to GH-125873, where this failure mode is triggered by specifying a bad `home` in `pyvenv.cfg`. A custom error message should be used for that case, though.
IMO, this should be implemented by adding `MULTIARCH` — which represents a target triple — in `sys.get_config_vars()` on windows, while we don't have a better API. I don't think `sys.implementation`...
Still needs tests, but I'll wait to see the feedback on the issue.
I've updated the method to take a module spec, instead of a module object, as in some cases the parent might have failed to import. In a follow-up, I will...