references/pointers in Python?

Richard Jones richard at bizarsoftware.com.au
Wed Sep 12 19:15:26 EDT 2001


On Thursday 13 September 2001 06:40, Anton Lavrik wrote:
> On Wed, Sep 12, 2001 at 12:06:06PM -0700, Cliff Wells wrote:
> > On Wednesday 12 September 2001 10:09, you wrote:
> > > And does this all mean that I should move on to Perl or any other
> > > language, if I need effective implementation of references :) ?
> >
> > Without knowing more about the problem you are trying to solve, it is
> > difficult to say, but if you try and program in Python as if you are
> > programming in Perl (or C or any other language), then you will probably
> > not be using the most efficient method.  I wonder if you really need
> > references or if there is a more "Pythonish" way of accomplishing your
> > goal.
>
> You are right! I'v already found one wonderfull solution for the
> problem. Actually references were not the only way for making it.
> But anyway, I can't understend why such powerfull Perl-like references
> haven't been implemented in Python.

Because, as you've already found out in this one example, there's usually a 
way to make it work without resorting to torturing references :)


    Richard




More information about the Python-list mailing list