Coolest Python recipe of all time
Ian Kelly
ian.g.kelly at gmail.com
Tue May 3 01:17:21 EDT 2011
On Mon, May 2, 2011 at 11:04 PM, Stefan Behnel <stefan_ml at behnel.de> wrote:
> The bad thing about this recipe is that it requires quite a bit of
> background knowledge in order to infer that the code the developer is
> looking at is actually correct. At first sight, it looks like an evil hack,
> and the lack of documentation doesn't help either.
What do you mean, "looks like"? For crying out loud, it abuses
complex numbers to represent 2-element vectors, and it passes
unvalidated input to eval(). It is *absolutely* an evil hack! Albeit
a clever one...
More information about the Python-list
mailing list