Every line of 'python class to string' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
33 def classstr(klass): 34 return classmap.get(klass, repr(klass))
16 def __repr__(self): 17 return "Class " + self.name + ", line " + str(self.line_nb)
352 def __str__(self): 353 return "ClassMemberFunction(%s,%s,%s)" % ( 354 self.python_class_type.cls, 355 self.attr, 356 ",".join(["%s=%s" % t for t in self.python_class_type.element_types]) 357 )
72 def __str__(self): 73 """ 74 String representation of the Java class 75 """ 76 return self.__repr__()
583 def __repr__(self): 584 return 'class {}'.format(self.name)
44 def strcls(class_name): 45 global_symbol_table = globals() 46 return global_symbol_table[class_name]
38 def to_string(self): 39 return str(libcirca.to_string(self.ptr))
33 def __str__(self): 34 return '詞:{0}'.format(self.內底字)
57 def type_to_str(obj): 58 """ 59 Make a string out `obj`'s type robustly. 60 """ 61 typ = type(obj) 62 if typ.__name__ == "vtkobject": 63 typ = obj.__class__ 64 if type.__module__ == "__builtin__": 65 # Make things like int and str easier to read. 66 return typ.__name__ 67 else: 68 name = "%s.%s" % (typ.__module__, typ.__name__) 69 return name
209 def __str__(self): 210 base = '' if self.baseclass is None else (' : public '+self.baseclass+' ') 211 with self: 212 return "class " + self.classname + base + "{\npublic:\n" + self.members.get(1) + "\n};"