Movatterモバイル変換


[0]ホーム

URL:


[Python-Dev] namedtuple implementation grumble

Steven D'Apranosteve at pearwood.info
Sat Jun 7 16:29:55 CEST 2014


On Fri, Jun 06, 2014 at 07:50:57PM +0100, Chris Withers wrote:> Hi All,>> I've been trying to add support for explicit comparison of namedtuples> into testfixtures and hit a problem which lead me to read the source and> be sad.>> Rather than the mixin and class assembly in the function I expected to> find, I'm greeted by an exec of a string.>> Curious as to what lead to that implementation approach? What does it> buy that couldn't have been obtained by a mixin providing the functionality?namedtuple started off as a recipe on ActiveState by Raymond Hettinger. Start here:http://code.activestate.com/recipes/500261-named-tuples/?in=user-178123-- Steven


More information about the Python-Devmailing list

[8]ページ先頭

©2009-2025 Movatter.jp