Changes between Version 1 and Version 2 of Ticket #4073, comment 6


Ignore:
Timestamp:
Dec 22, 2020, 7:13:38 PM (5 years ago)
Author:
Tom Goddard

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4073, comment 6

    v1 v2  
    11Most of the C++ modules also have a Python part.  Instead of a shim map_cpp that imports _map after loading libarrays another approach is just in {{{map/__init__.py}}} load libarrays.  This is the current approach used by atomic_lib, atomic/mobject.py and geometry.  It is a little less cumbersome and about as clear in cases when the C++ library is imported in {{{__init__.py}}}.
     2
     3Or if the C++ module is only imported in one place, then load libarrays right before the import.