[Tutor] The Best Way to go About with Self Modifying Code/Code Generation?

Stefan Behnel stefan_ml at behnel.de
Sun Jul 8 18:42:50 CEST 2012


Steven D'Aprano, 08.07.2012 15:48:
>> Hey all, I have a question on using self-modifying code/code generation
>> in Python; namely how to do it. 
> 
> I know others have already said not to do this, and to be honest I was
> going to say that same thing, but I have changed my mind. Buggrit, this is
> Python, where we are all consenting adults and you're allowed to shoot
> yourself in the foot if you want.

:)

You're right. Saying "don't do that" is easy, but giving people the freedom
to shoot themselves in the foot sometimes has accidental side effects that
end up pushing our world another bit forward. (Though usually not, but
that's ok)

Stefan



More information about the Tutor mailing list