Python grammar..

Delaney, Timothy tdelaney at avaya.com
Wed Jun 13 20:05:21 EDT 2001


> "Delaney, Timothy" <tdelaney at avaya.com> wrote in message
> news:mailman.992393599.3573.python-list at python.org...
>     ...
> > way to do it - a subroutine may or may not return a value, at its
> > discretion, and I should be able to ignore any returned value.
> 
> Yes, but if I were designing a language today, I think I would
> request you to be EXPLICIT about "ignoring the return value" --
> explicit is better than implicit.  It IS an occasional cause of
> errors in Python (particularly with newbies) that an expression
> statement's value is silently and implicitly ignored...
> 
> 
> Alex

So you would prefer that functions whose return value is ignored must be
called with a keyword ... such as in VB

	call aFunction()

?

Personally, I absolutely hate this.

Tim Delaney




More information about the Python-list mailing list