★ wanayoo — archive 1999 http://mail.python.org/pipermail/pythonmac-sig/2000-September/002537.htmlNouvelle recherche | Portail wanayoo

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

TattooMabonzoK. TattooMabonzoK.
Thu, 21 Sep 2000 11:11:12 +0200


Thanks Jack! It was indeed obvious %-).

=3D tmk =3D

On Thursday, September 21, 2000, at 10:26 AM, Jack Jansen wrote:

> =20
> > class foo:=20
> > 	def __init__(self):=20
> > 		self.from =3D 'fubar'=20
> > =20
> > It generates a syntax error somewhere within self.from.=20
> =20
> Yep, from is a reserved word ("from foo import *") so you can't use it =
as an =20
> identifier.=20
> --=20
> Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal =
++++=20
> Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your =
sig ++++=20
> www.oratrix.nl/~jack    | see =
http://www.xs4all.nl/~tank/spg-l/sigaction.htm =20
> =20
> =20
> =20
> _______________________________________________=20
> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org=20
> http://www.python.org/mailman/listinfo/pythonmac-sig=20
> =20
> =20