New statement proposal for Python

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Sat Jun 16 16:01:55 EDT 2001


Fri, 15 Jun 2001 04:39:05 GMT, Rainer Deyke <root at rainerdeyke.com> pisze:

> 'def', while not an assignment per se, has the same semantics as assignment,
> i.e. a name bound with 'def' can be rebound with assignment and vice versa.

Which has bitten me recently when I accidentally gave two methods
the same name. The one written later silently replaced the other.

Fortunately they had different numbers of parameters so the error
was caught on a call to one of them.

-- 
 __("<  Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK



More information about the Python-list mailing list