Re: "no variable or argument declarations are necessary."
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: "no variable or argument declarations are necessary."

From: Fredrik Lundh <fredrik@pythonware.com>
Date: Fri Oct 07 2005 - 16:15:31 CEST

"Christophe" wrote:

> I mean, why not ? Why does the compiler let me do that when you know
> perfectly that that code is incorrect :

> def f():
> return "a" + 5

probably because the following set is rather small:

    bugs caused by invalid operations involving only literals, that are not
    discovered during initial testing

</F>
Received on Sat Oct 15 04:16:08 2005