Skip to content
Snippets Groups Projects

hgdemandimport: add collections.abc to the ignore list because Python 3.13 rc3

Merged Pierre-Yves David requested to merge topic/stable/3.13-abc into branch/stable
  1. Oct 07, 2024
    • kiilerix's avatar
      hgdemandimport: add collections.abc to the ignore list because Python 3.13 rc3 · 141ed0bf
      kiilerix authored
      It worked in Python 3.13 rc2, but something changed for rc3.
      
      Now, when i18n.py imports typing and it touches collections.abc.Hashable , we
      get:
      
        ValueError: module object for collections.abc substituted in sys.modules during a lazy load
      
      This seems to be a general problem, released in the final Python 3.13 . I have
      not analyzed the problem in details.
      
      We *could* work around the problem by disabling demand import of typing. But
      that would effectively disable demand import of collections.abc too. Instead,
      just disable demand import for collections.abc .
      141ed0bf
Loading