Re: Underscore data hiding (was python development practices?)
by Cliff Wells other posts by this author
Nov 2 2001 5:34PM messages near this date
Re: Underscore data hiding (was python development practices?)
|
RE: Underscore data hiding (was python development practices?)
On Friday 02 November 2001 04:19, Steve Holden wrote:
> I don't see why. It's a documented part of the language, so a change would
> create backward incompatibility known to be anathema to the development
> team.
People keep insisting that the Python development team won't introduce
changes that break backward compatability. This may be true for the most
part, but it is definitely not written in stone (or even Python). From the
2.0 docs for socket.bind():
"Bind the socket to address. The socket must not already be bound. (The
format of address depends on the address family -- see above.) Note: This
method has historically accepted a pair of parameters for AF_INET addresses
instead of only a tuple. This was never intentional and is no longer be
available in Python 2.0. "
There are a couple of other places (which I don't recall at the moment) where
things were "fixed" in such a way that you would have to change existing
code. Granted this is a rather trivial example. However, I would definitely
be wary of making my code depend upon something like the name-mangling scheme
which is clearly a hack and actually seems a likely place to see a future
change.
Regards,
--
Cliff Wells
Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308
(800) 735-0555 x308
--
http://mail.python.org/mailman/listinfo/python-list
Thread:
Peter Wang
Peter Hansen
Toby Dickenson
Tim Peters
Steve Holden
Steve Holden
Cliff Wells
Tim Peters
Martijn Faassen
Cliff Wells
Cliff Wells
Martijn Faassen
Martijn Faassen
Paul Rubin
Russell E. Owen
Barry A. Warsaw
Martijn Faassen
Peter Wang
Skip Montanaro
John Roth
David Bolen
Peter Wang
Peter Wang
Skip Montanaro
Chris Tavares
Darren Collins
David Bolen
Paul Rubin
Paul Rubin
Peter Wang
F Basegmez
Richard Jones
Richard Jones
Neal Norwitz
Graham Ashton
Peter Wang
Russell E. Owen
Skip Montanaro
Cliff Wells
Hung Jung Lu
Wade Leftwich
Peter Wang
Peter Wang
Peter Wang
Chris Gonnerman
Paul Rubin
Andrew Dalke
Paul Rubin
Luigi Ballabio
Paul Rubin
Tim Peters
John Roth
Paul Rubin
Richard Jones
|