This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Julian
Recipients Julian, rhettinger
Date 2012-10-18.19:59:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1350590383.92.0.380750579544.issue16279@psf.upfronthosting.co.za>
In-reply-to
Content
I find the following to be unintuitive:

Python 3.3.0rc1 (default, Sep  6 2012, 16:02:32) 
[GCC 4.2.1 Compatible Apple Clang 3.1 (tags/Apple/clang-318.0.58)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from collections import namedtuple
>>> F = namedtuple("F", "x")
>>> G = namedtuple("G", "y")
>>> F(12) == G(12)
True

I'm OK with not taking the class name into account, that sounds reasonable, but I think field names should make those unequal.
History
Date User Action Args
2012-10-18 19:59:43Juliansetrecipients: + Julian, rhettinger
2012-10-18 19:59:43Juliansetmessageid: <1350590383.92.0.380750579544.issue16279@psf.upfronthosting.co.za>
2012-10-18 19:59:43Julianlinkissue16279 messages
2012-10-18 19:59:43Juliancreate