Python AttributeError: class object has no attribute - Stack ...
stackoverflow.com › questions › 32823858Sep 28, 2015 · The specific error is as follows: self.marker = self.markers [marker [1:]] AttributeError: 'TTYFigureData' object has no attribute 'markers'. Here is part of the class I'm writing: class TTYFigureData (object): """ data container of TTYFigure """ def __init__ ( self, x, # x values y, # y values marker = "_.", # datum marker plot_slope = True ): self.x = x self.y = y self.plot_slope = plot_slope self.set_marker (marker) self.markers = { "-" : u"None" , "," : u"\u2219" } def ...