<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hi,<br>
    <br>
    I know what it does, I just don't get why it was used in smtp.py.
    But you are right, I should have mentioned that in the subject
    (adding ... in smtp.py).<br>
    <br>
    On 02/15/2011 11:33 PM, Jason Rennie wrote:
    <blockquote
      id="mid_AANLkTimXNPAVK0jnL-xch7bXTCMARxYkwB2nVLmaFcje_mail_gmail_com"
cite="mid:AANLkTimXNPAVK0jnL-xch7bXTCMARxYkwB2nVLmaFcje@mail.gmail.com"
      type="cite">In case you haven't seen it, here's what the python
      tutorial says about double-underscore:
      <div><br>
      </div>
      <div><a moz-do-not-send="true"
          href="http://docs.python.org/tutorial/classes.html#private-variables">http://docs.python.org/tutorial/classes.html#private-variables</a></div>
      <div><br>
      </div>
      <div>Jason<br>
        <br>
        <div class="gmail_quote">On Tue, Feb 15, 2011 at 5:36 AM, Attila
          Nagy <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:bra@fsn.hu">bra@fsn.hu</a>&gt;</span> wrote:<br>
          <blockquote id="StationeryCiteGenerated_2" class="gmail_quote"
            style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid
            rgb(204, 204, 204); padding-left: 1ex;">
            Hi,<br>
            <br>
            I'm trying to do an LMTP implementation based on smtp.py and
            came to the<br>
            issue of class private variables with double underscores.<br>
            Examples:<br>
            <a moz-do-not-send="true"
href="http://twistedmatrix.com/trac/browser/trunk/twisted/mail/smtp.py#L746"
              target="_blank">http://twistedmatrix.com/trac/browser/trunk/twisted/mail/smtp.py#L746</a><br>
            <a moz-do-not-send="true"
href="http://twistedmatrix.com/trac/browser/trunk/twisted/mail/smtp.py#L815"
              target="_blank">http://twistedmatrix.com/trac/browser/trunk/twisted/mail/smtp.py#L815</a><br>
            and a lot of occurrences in this file.<br>
            <br>
            This makes me a problem, because I override some functions
            in a class,<br>
            named LMTP, so these cannot work together.<br>
            <br>
            What's the rationale of using these, instead of static
            names?<br>
            <br>
            Thanks,<br>
            <br>
            <br>
            _______________________________________________<br>
            Twisted-Python mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
            <a moz-do-not-send="true"
              href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python"
              target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        Jason Rennie<br>
        Research Scientist, ITA Software<br>
        617-714-2645<br>
        <a moz-do-not-send="true" href="http://www.itasoftware.com/">http://www.itasoftware.com/</a><br>
        <br>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Twisted-Python mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a>
<a class="moz-txt-link-freetext" href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>