[Chicago] Inheriting from a namedtuple

Aaron Elmquist elmq0022 at umn.edu
Thu Jul 7 18:58:20 EDT 2016


This is a very open ended question, but what do people think about python
code like:

class Point(namedtuple("Point", "x y")):
    # additional methods here

Is it pythonic?

Does it buy anything besides keystrokes?

Do you use it in production?

Thanks,

Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20160707/607f775b/attachment.html>


More information about the Chicago mailing list