New submission from Lele Gaifax: The documentation of namedtuple, near the end, talks about implementing enumerated constants and says “Enumerated constants can be implemented with named tuples, but it is simpler and more efficient to use a simple class declaration“.
Maybe it should mention the recently added Enum type instead/too. ---------- assignee: docs@python components: Documentation messages: 225303 nosy: docs@python, lelit priority: normal severity: normal status: open title: namedtuple documentation could/should mention the new Enum type _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22196> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com