[Python-3000] Discussions with no PEPs
Barry Warsaw
barry at python.org
Mon Mar 12 19:18:37 CET 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mar 12, 2007, at 1:02 PM, Thomas Wouters wrote:
> - Mixing interface-definition and implementation like that makes
> it hard for new programmers to pick up the difference. It will be
> harder to explain the difference between 'dict' and 'Mapping' when
> they are both in the list of bases. How can you tell one from the
> other?
I'm in agreement with everything Thomas said here, but I think this
is one of the most important points. If you're looking at a class
definition, it really should be plainly obvious what contributions to
implementation and what contributes to interface declarations,
without having to traipse through a bunch of documentation or source
code. I think separating implementation and interface declarations
aids in readability and discoverability.
- -Barry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iQCVAwUBRfWZfXEjvBPtnXfVAQLP/QP9HrhR/Vbyc94jnXNR/cwSAnxCE0X6p1jj
n+DTL4fb4zNUr0qTgK9gf82/Pa8xSPsDsLousxkFLIejrll+gqZ5UtWYM7NdKHgq
PVDMly++rJ0yeAYVWe5aZvYMBKiJETcBbZKyGyEqPGeIMs0gYcf0F3zBQ96CeYrI
q1O+rmbQ1tI=
=k1kl
-----END PGP SIGNATURE-----
More information about the Python-3000
mailing list