Copy operator (was list.remove for Noivces)

Andreas Kostyrka andreas at mtg.co.at
Fri Nov 30 11:43:21 CET 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Donnerstag, 29. November 2001 01:49 schrieb Arthur Siegel:
> Andreas writes -
>
> >Well, I never had a problem with understanding the Python semantics. There
> >are other languages that do have similiar semantics. (Actually most OO
> >languages use only object references, not values)
>
> I am asking you to imagine coming to Python as a blank slate. I happen not
> to need to imagine it.  I am quite sure I would have no trouble with the
> Python semantics, if I had the concepts.  It is getting the concepts down,
> *with
> Python*, that is the subject matter.
Well if you come with a blank slate, then it's note more difficult to 
understand "reference variables" then "value variables".

> >Python 2.2b1 Standard library:
> >.py size: 183031 6110941
> >import copy: 9 times
> >shallow [:] copy: 75 times
>
> How many times did they make the wrong choice between [:] and
> =, or some such. I expect None. That's where I want to be.
Well, it's quite easy. One usually knows when one needs a copy. (Cannot tell 
about Numerics, perhaps they've got it somehow wrong *eg*)

Andreas
- -- 
Andreas Kostyrka; Raiffeisenstr. 16/9; 2320 Zwölfaxing
Tel: +43/676/4091256; Fax: +43/1/7065299
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8B2LMHJdudm4KnO0RAia7AJ9PqrFGNph+PG4uDHq3HX8l39TPyQCggAAp
caIrJtw5Cs4ZmieViml4Fnk=
=JtNq
-----END PGP SIGNATURE-----




More information about the Python-list mailing list