Exemplo n.º 1
0
#<ImportSpecificModules>
from ShareYourSystem.Classors.Representer import _print
from ShareYourSystem.Objects import Mapper
#</ImportSpecificModules>

#Print a version of the class
_print(dict(Mapper.MapperClass.__dict__.items()))

#Print a version of this object
_print(Mapper.MapperClass())

#Print a version of his __dict__
_print(Mapper.MapperClass().__dict__)

#Test
_print(Mapper.attest_map(),**{'RepresentingAlineaIsBool':False})
Exemplo n.º 2
0
#ImportModules
from ShareYourSystem.Classors.Representer import _print
from ShareYourSystem.Objects import Appender

#Print a version of the class
_print(dict(Appender.AppenderClass.__dict__.items()))

#Print a version of this object
_print(Appender.AppenderClass())

#Print a version of his __dict__
_print(Appender.AppenderClass().__dict__)

#Test
_print(Appender.attest_append(),**{'RepresentingAlineaIsBool':False})
Exemplo n.º 3
0
#Import modules
from ShareYourSystem.Classors.Representer import _print
from ShareYourSystem.Functers import Argumenter,Switcher
from ShareYourSystem.Objects import Setter

#Print a version of the class
_print(dict(Switcher.SwitcherClass.__dict__.items()))

#Print a version of this object
_print(Switcher.SwitcherClass())

#Print a version of his __dict__
_print(Switcher.SwitcherClass().__dict__)

#Test
class MakerClass(Setter.SetterClass):

	def default_init(self):

		#Call the based method
		Setter.SetterClass.__init__(self)

		#Call the init
		self.init()

	def init(self):

		#Definition a default Int
		self.MakingInt=1
		self.MadeInt=0
Exemplo n.º 4
0
#Import Modules
from ShareYourSystem.Classors import Representer,Doer
from ShareYourSystem.Classors.Representer import _print
from ShareYourSystem.Functers import Argumenter

#Print a version of the class
_print(dict(Argumenter.ArgumenterClass.__dict__.items()))

#Print a version of this object
_print(Argumenter.ArgumenterClass())

#Print a version of his __dict__
_print(Argumenter.ArgumenterClass().__dict__)

#Definition a class that is going to have a method with an argumenting decoration
class MakerClass(object):

	def __init__(self,**_KwargVariablesDict):
		self.MakingInt=1
		self.MakingFloat=2.
		self.MakingStr=""

	@Argumenter.ArgumenterClass()
	def make(self,_Int=None,_Str=None,**_KwargVariablesDict):

		#debug
		print('self.MakingInt is '+str(self.MakingInt))
		print('self.MakingFloat is '+str(self.MakingFloat))
		print('self.MakingStr is '+str(self.MakingStr))

Exemplo n.º 5
0
#<ImportSpecificModules>
from ShareYourSystem.Classors.Representer import _print
from ShareYourSystem.Objects import Walker
#</ImportSpecificModules>

#Print a version of the class
_print(dict(Walker.WalkerClass.__dict__.items()))

#Print a version of this object
_print(Walker.WalkerClass())

#Print a version of his __dict__
_print(Walker.WalkerClass().__dict__)

#Test
_print(Walker.attest_walk(),**{'RepresentingAlineaIsBool':False})
Exemplo n.º 6
0
#<ImportSpecificModules>
from ShareYourSystem.Classors.Representer import _print
from ShareYourSystem.Objects import Sharer
#</ImportSpecificModules>

#Print a version of the class
_print(dict(Sharer.SharerClass.__dict__.items()))

#Print a version of this object
_print(Sharer.SharerClass())

#Print a version of his __dict__
_print(Sharer.SharerClass().__dict__)

#Test
print(Sharer.attest_share())