[Pythonmac-SIG] weird syntax error (bug?): self.from

Jack Jansen jack@oratrix.nl
Thu, 21 Sep 2000 10:26:51 +0200


> class foo:
> 	def __init__(self):
> 		self.from =3D 'fubar'
> =

> It generates a syntax error somewhere within self.from.

Yep, from is a reserved word ("from foo import *") so you can't use it as=
 an =

identifier.
--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++=

Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig =
++++
www.oratrix.nl/~jack    | see http://www.xs4all.nl/~tank/spg-l/sigaction.=
htm =