Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python dependency injection

from some_package import A

class B:
	def __init__(self, a=A()):
    	self._a = a
    
    ...
Source by python-dependency-injector.ets-labs.org #
 
PREVIOUS NEXT
Tagged: #python #dependency #injection
ADD COMMENT
Topic
Name
8+4 =