<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 09.09.2015 22:17, Guido van Rossum wrote:<br>
    <blockquote
cite="mid:CAP7+vJLLmQ8Ws4fBvzf97WLujxvY9DF+ngUAU68NF6pvTb2ttg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Jukka wrote up a proposal for structural subtyping.
        It's pretty good. Please discuss.<br>
        <br>
        <a moz-do-not-send="true"
href="https://github.com/ambv/typehinting/issues/11#issuecomment-138133867">https://github.com/ambv/typehinting/issues/11#issuecomment-138133867</a><br>
      </div>
    </blockquote>
    <br>
    <meta http-equiv="content-type" content="text/html;
      charset=windows-1252">
    <strong style="box-sizing: border-box; font-weight: bold; color:
      rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, 'Segoe
      UI', Arial, freesans, sans-serif; font-size: 14px; font-style:
      normal; font-variant: normal; letter-spacing: normal; line-height:
      22.3999996185303px; orphans: auto; text-align: start; text-indent:
      0px; text-transform: none; white-space: normal; widows: 1;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 255);">15) How would<span
        class="Apple-converted-space"> </span><code style="box-sizing:
        border-box; font-family: Consolas, 'Liberation Mono', Menlo,
        Courier, monospace; font-size: 11.8999996185303px; padding:
        0.2em 0px; margin: 0px; border-radius: 3px; background-color:
        rgba(0, 0, 0, 0.0392157);">Protocol</code><span
        class="Apple-converted-space"> </span>be implemented?<br>
    </strong><span style="box-sizing: border-box; color: rgb(51, 51,
      51); font-family: 'Helvetica Neue',Helvetica,'Segoe
      UI',Arial,freesans,sans-serif; font-size: 14px; font-style:
      normal; font-variant: normal; letter-spacing: normal; line-height:
      22.4px; text-align: start; text-indent: 0px; text-transform: none;
      white-space: normal; widows: 1; word-spacing: 0px;
      background-color: rgb(255, 255, 255);">"Implement metaclass
      functionality to detect whether a class is a protocol or not.
      Maybe add a class attribute such as __protocol__ = True if that's
      the case"<br>
    </span><br>
    If you consider the __protocols__ attribute I mentioned in an
    earlier post, I would like to see <span style="box-sizing:
      border-box; color: rgb(51, 51, 51); font-family: 'Helvetica
      Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif; font-size:
      14px; font-style: normal; font-variant: normal; letter-spacing:
      normal; line-height: 22.4px; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; widows: 1;
      word-spacing: 0px; background-color: rgb(255, 255, 255);">__protocol__</span>
    renamed to <span style="box-sizing: border-box; color: rgb(51, 51,
      51); font-family: 'Helvetica Neue',Helvetica,'Segoe
      UI',Arial,freesans,sans-serif; font-size: 14px; font-style:
      normal; font-variant: normal; letter-spacing: normal; line-height:
      22.4px; text-align: start; text-indent: 0px; text-transform: none;
      white-space: normal; widows: 1; word-spacing: 0px;
      background-color: rgb(255, 255, 255);">__is_protocol__</span>. I
    think that would make it more readable in the long run.<br>
    <br>
    Best,<br>
    Sven<br>
    <span style="box-sizing: border-box; font-weight: bold; color:
      rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, 'Segoe
      UI', Arial, freesans, sans-serif; font-size: 14px; font-style:
      normal; font-variant: normal; letter-spacing: normal; line-height:
      22.3999996185303px; orphans: auto; text-align: start; text-indent:
      0px; text-transform: none; white-space: normal; widows: 1;
      word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 255);"></span>
  </body>
</html>