Python misconceptions in IBM Ruby article...

Gordon McMillan gmcm at hypernet.com
Fri Feb 18 14:47:00 CET 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