Thanks to Peter Kovac pointing-out deficiencies in the keyword
argument checking. Because of his comments, the recipe has evolved to
its current exec-style where we get all of Python's high-speed builtin
argument checking for free. The new style of building and exec-ing a
template made both the __new__ and __repr__ functions faster and
cleaner than in previous versions of this recipe.
雷蒙德·赫廷格在他的original ActiveState recipe中简短地提到了这一点:
相关问题 更多 >
编程相关推荐