私はこのクラスを持っています:
class Point(PointAbstract):
"""
Class used to expand shapely.geometry.Point functionality
"""
def __unicode__(self):
return '%s, %s' % (self.x, self.y)
def __repr__(self):
return '%s, %s' % (self.x, self.y)
def __str__(self):
return '%s, %s' % (self.x, self.y)
ipdb を介してインスタンスを評価しようとすると、次のようになります。
> /home/...
151 p = Point(float(each[4]), float(each[3]))
--> 152 for i, _each in enumerate(headers):
153 if not _each in headers_to_ignore:
ipdb> p
*** SyntaxError: SyntaxError('unexpected EOF while parsing', ('<string>', 0, 0, ''))
私は次のようなものを期待します:
123.0, 321.0
私は何が欠けていますか?