Newbie question.

Pablo Prieto pablo.prieto at dulcesol.es
Tue Jun 6 08:19:44 EDT 2000


> Now, I'm not saying that's the best way to provide this interface.
> But it fixes your example.  Another idea:
> 
>    class Environment:
> 
>      def Set( val ):
>        self.ays = val
> 
>      def Get():
>        return self.ays
> 
> Now:
> 
>    env = Environment()
>    env.Set( "NUMBER 9" )
>    print env.Get()
> 
> --
> Randall Hopper
> aa8vb at yahoo.com

Yes. The class solution looks pretty fine to me. I'll use it.
Great Thanks a lot.

Yours sincerely,
Pablo, from Spain.




More information about the Python-list mailing list