Python misconceptions in IBM Ruby article...
Gordon McMillan
gmcm at hypernet.com
Fri Feb 18 08:47:00 EST 2000
Quinn Dunkan wrote:
> On Thu, 17 Feb 2000 22:31:34 -0500, Gordon McMillan <gmcm at hypernet.com> wrote:
> >In a language where variables don't have to be declared,
> >creating scoping rules that could tell the difference between an
> >instance variable and a local would be a, um, challenge.
>
> You might have to do something weird like stick a '@' in front of your
> variable.
Ah, and then:
s/@/self./g
Gotcha! And while we're at it:
s/;//g
- Gordon
More information about the Python-list
mailing list