homepage

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 josh.r
Recipients cheryl.sabella, cvrebert, josh.r, martin.panter, ncoghlan, pitrou, rhettinger, scoder
Date 2018年02月13日.04:12:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1518495126.84.0.467229070634.issue20632@psf.upfronthosting.co.za>
In-reply-to
Content
Do data classes let you define some fields as being excluded from the equality/ordering/hashing? I got the impression that if a field existed, it was part of the "key" no matter what, which isn't necessarily correct in the general case. Simple examples would be attributes that equivalent C++ would tag with the mutable keyword; they're not part of the logical state of the instance (e.g. debugging counters or whatever), so they shouldn't be included in the "key".
History
Date User Action Args
2018年02月13日 04:12:06josh.rsetrecipients: + josh.r, rhettinger, ncoghlan, pitrou, scoder, cvrebert, martin.panter, cheryl.sabella
2018年02月13日 04:12:06josh.rsetmessageid: <1518495126.84.0.467229070634.issue20632@psf.upfronthosting.co.za>
2018年02月13日 04:12:06josh.rlinkissue20632 messages
2018年02月13日 04:12:06josh.rcreate

AltStyle によって変換されたページ (->オリジナル) /