from zope.interface import Interface
class IMyInterface(Interface):
"""This is my interface"""
def myMethod(arg1, arg2):
"""This method does something"""
from zope.interface import Interface
class IMyInterface(Interface):
"""This is my interface"""
def myMethod(arg1, arg2):
"""This method does something"""
from zope.interface import implementer
from zope.interface import Interface
class IMyInterface(Interface):
def myMethod(arg1, arg2):
pass
@implementer(IMyInterface)
class MyClass:
def myMethod(self, arg1, arg2):
return arg1 + arg2
obj = MyClass()
print(obj.myMethod(5, 7))
from zope.interface import implementer
from zope.interface import Interface
class IMyInterface(Interface):
def addToList(self, list, item):
pass
@implementer(IMyInterface)
class MyClass:
def addToList(self, list, item):
list.append(item)
return list
obj = MyClass()
myList = [1, 2, 3]
print(obj.addToList(myList, 4))
from zope.interface import implementer
from zope.interface import Interface
import threading
class IMyInterface(Interface):
def runInThread(self, func):
pass
@implementer(IMyInterface)
class MyClass:
def runInThread(self, func):
thread = threading.Thread(target=func)
thread.start()
obj = MyClass()
obj.runInThread(lambda: print('Hello, World!'))
Back-end App Developer
Front-end Web Developer
Full Stack Developer (Java)
Full Stack Developer (.Net)
Full Stack Developer (MEAN)
Full Stack Developer (MERN)
DevOps Engineer
Database Engineer (AzureSQL)
Database Engineer (Oracle)
Database Engineer (General)
Solution Architect (.NET)
Solution Architect (Java)
Solution Architect (Ruby)
Solution Architect (Python)
AI Engineer (Python)
Sr. AI Engineer (Python)
AI Strategist (Python)
Business Intelligence Engineer
Systems Analyst
Mainframe Developer (COBOL)
Mainframe Developer (General)