weakproxy_with_fallback function

(Shortest import: from brian2 import weakproxy_with_fallback)

brian2.core.base.weakproxy_with_fallback(obj)[source]

Attempts to create a weakproxy to the object, but falls back to the object if not possible.