-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Jul 7, 2008, at 11:13 AM, Ian Eiloart wrote:
We're having to use name mangling to access some private attributes of smtpd.SMTPChannel. It seems that virtually everything in SMTPChannel is private, making it quite hard to override any of its methods.
Yep, this sucks. The code was written back when we thought this was a good idea. Fixing it requires changes in Python, and it's probably too late to get this into Python 2.6 and 3.0.
The best thing I can suggest is to make them public in the LMTP subclass, probably using properties that do the name mangling.
- -Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iEYEARECAAYFAkhyNgMACgkQ2YZpQepbvXGlzQCgpxBZQrYtbxKs74yWyT0Nx489 o1YAoLW6AwXlcLXy6mqy4xutX3hekeIC =9b1/ -----END PGP SIGNATURE----- _______________________________________________ Mailman-Developers mailing list [email protected] http://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://wiki.list.org/x/AgA3 Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org Security Policy: http://wiki.list.org/x/QIA9
