Heh. Coming at it from a Java perspective, your question is obvious. It should throw an error.
But if you came at it from a Perl perspective, it's not obvious at all. You're setting a variable to no value, big deal.
It's all about the typing. Like Java, Python is strongly typed, but unlike Java, it is also dynamically typed. Most dynamically typed languages allow shenanigans like this.