(Shortest import: from brian2.core.base import weakproxy_with_fallback)
from brian2.core.base import weakproxy_with_fallback)
Attempts to create a weakproxy to the object, but falls back to the object if not possible.
weakproxy