<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="&#1;" xmlns="http://www.w3.org/TR/REC-html40">

<head>

<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white lang=IS link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='color:#1F497D'>Ok, I&#8216;ll do some experiments.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Yes, &#8222;flextype&#8220; has always been
a mystery to me.  It may be &#8222;flexible&#8220; somehow, but it certainly isn´t easy to
understand </span><span style='font-family:Wingdings;color:#1F497D'>J</span><span
style='color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>K<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'>From:</span></b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>
Christian Tismer [mailto:tismer@stackless.com] <br>
<b>Sent:</b> 12. apríl 2010 06:16<br>
<b>To:</b> The Stackless Python Mailing List<br>
<b>Cc:</b> Kristján Valur Jónsson<br>
<b>Subject:</b> Re: [Stackless] stackless.stackless<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>On 3/26/10 11:40 AM, Kristján Valur Jónsson wrote: <o:p></o:p></p>

<p class=MsoNormal>I just noticed that the stackless module has a an attribute
&#8222;stackless&#8220; that points to itself.<o:p></o:p></p>

<p class=MsoNormal>This is highly irregular.&nbsp; I noticed this because some
of the tests in stackless/test do<o:p></o:p></p>

<p class=MsoNormal>from stackless import *<o:p></o:p></p>

<p class=MsoNormal>and then proceed to do stuff such as<o:p></o:p></p>

<p class=MsoNormal>r = stackless.channel()<o:p></o:p></p>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<p class=MsoNormal>I&#8216;d like to remove this module self reference if no one
objects.<o:p></o:p></p>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><tt><span style='font-size:10.0pt'>The purpose of this
irregularity was to be able to use</span></tt><span style='font-size:10.0pt;
font-family:"Courier New"'><br>
<tt>'from stackless import *'</tt><br>
<tt>and then to have access to the stackless module, still.</tt><br>
<tt>The module is irregular itself, because it has computed</tt><br>
<tt>attributes stackless.current and stackless.main.</tt><br>
<tt>They were added because they are slightly faster than</tt><br>
<tt>stackless.getcurrent() and stackless.getmain().</tt><br>
<br>
<tt>This was done in pre-property early days.</tt><br>
<tt>I think to remove computed attribute access from the</tt><br>
<tt>stackless module, but maybe add a python object</tt><br>
<tt>with the name stackless, instead, which has properties</tt><br>
<tt>main and current added? This would be very fast with</tt><br>
<tt>the new psyco support, which optimizes attribute access.</tt><br>
<br>
<tt>Well, I can imagine you won't like that, either.</tt><br>
<tt>Feel free to remove stackless.stackless, but then please</tt><br>
<tt>also remove the extra attribute access code and&nbsp; make</tt><br>
<tt>stackless a real module.</tt><br>
<tt>The idea of computed module attributes was related to do</tt><br>
<tt>some additions, like having certain checks done, to prevent</tt><br>
<tt>overwriting of things and so on, but I don't think I did</tt><br>
<tt>much more than considering.</tt><br>
<br>
<tt>Btw., I don't like modules very much as they are. They</tt><br>
<tt>really should have the layout of a singleton class instance</tt><br>
<tt>with full control over attributes.</tt><br>
<br>
<tt>And while we are at it: We should also try to get rid of</tt><br>
<tt>the flextype module. It was done to provide faster access</tt><br>
<tt>to overridable attributes. But I think it is no longer</tt><br>
<tt>woth being carried around, and the concept was never</tt><br>
<tt>understood by anybody, I think.</tt><br>
<br>
<tt>It gives a bit of speedup for overridden methods, still,</tt><br>
<tt>but again, in the light of coming psyco for stackless,</tt><br>
<tt>this will become irrelevant, because in psyco, all those</tt><br>
<tt>method lookups will be resolved at compile time.</tt><br>
<br>
<tt>cheers - chris</tt><br>
<br>
</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>-- <br>
<br>
<o:p></o:p></span></p>

<pre>Christian Tismer             :^)   <a href="mailto:tismer@stackless.com">&lt;mailto:tismer@stackless.com&gt;</a><o:p></o:p></pre><pre>tismerysoft GmbH             :     Have a break! Take a ride on Python's<o:p></o:p></pre><pre>Johannes-Niemeyer-Weg 9A     :    *Starship* <a
href="http://starship.python.net/">http://starship.python.net/</a><o:p></o:p></pre><pre>14109 Berlin                 :     PGP key -&gt; <a
href="http://wwwkeys.pgp.net/">http://wwwkeys.pgp.net/</a><o:p></o:p></pre><pre>work +49 30 802 86 56  mobile +49 173 24 18 776  fax +49 30 80 90 57 05<o:p></o:p></pre><pre>PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04<o:p></o:p></pre><pre>      whom do you want to sponsor today?   <a
href="http://www.stackless.com/">http://www.stackless.com/</a><o:p></o:p></pre></div>

</div>

</body>

</html>