<div dir="ltr">Cool. Is there gonna be a 1.5.1 release with stuff like this?<br><br><div class="gmail_quote">On Tue, May 3, 2011 at 1:36 PM, Carl Friedrich Bolz <span dir="ltr">&lt;<a href="mailto:cfbolz@gmx.de">cfbolz@gmx.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Ram,<br>
<div><div></div><div class="h5"><br>
On 05/03/2011 01:25 PM, cool-RR wrote:<br>
&gt; In my project I made an `abstract_static_method` class:<br>
&gt;<br>
&gt; <a href="https://github.com/cool-RR/GarlicSim/blob/master/garlicsim/garlicsim/general_misc/abc_tools.py#L7" target="_blank">https://github.com/cool-RR/GarlicSim/blob/master/garlicsim/garlicsim/general_misc/abc_tools.py#L7</a><br>

&gt;<br>
&gt; &lt;<a href="https://github.com/cool-RR/GarlicSim/blob/master/garlicsim/garlicsim/general_misc/abc_tools.py#L7" target="_blank">https://github.com/cool-RR/GarlicSim/blob/master/garlicsim/garlicsim/general_misc/abc_tools.py#L7</a>&gt;A<br>

&gt; similar one has been made in Python 3.2:<br>
&gt;<br>
&gt; <a href="http://hg.python.org/cpython/file/default/Lib/abc.py#l48" target="_blank">http://hg.python.org/cpython/file/default/Lib/abc.py#l48</a><br>
&gt;<br>
&gt;<br>
&gt; &lt;<a href="http://hg.python.org/cpython/file/default/Lib/abc.py#l48" target="_blank">http://hg.python.org/cpython/file/default/Lib/abc.py#l48</a>&gt;In Pypy this<br>
&gt; currently cannot be done, because if you subclass `staticmethod` into<br>
&gt; `abstractstaticmethod`, any instances will have a class<br>
&gt; of `staticmethod` instead of `abstractstaticmethod`:<br>
&gt;<br>
&gt;      &gt;&gt;&gt;&gt; class A(staticmethod):<br>
&gt;     ....   pass<br>
&gt;     ....<br>
&gt;      &gt;&gt;&gt;&gt; def f():<br>
&gt;     ....   pass<br>
&gt;     ....<br>
&gt;      &gt;&gt;&gt;&gt; a = A(f)<br>
&gt;      &gt;&gt;&gt;&gt; a<br>
&gt;     &lt;staticmethod object at 0x00f2ade0&gt;<br>
&gt;      &gt;&gt;&gt;&gt; type(a)<br>
&gt;     &lt;type &#39;staticmethod&#39;&gt;<br>
&gt;<br>
&gt;<br>
&gt; What can be done? I want to have `abstract_static_method` in my code.<br>
<br>
<br>
</div></div>This is a bug in PyPy, I fixed it in the repo, tomorrow you can use a<br>
fresh nightly build from here:<br>
<br>
<a href="http://buildbot.pypy.org/nightly/trunk/" target="_blank">http://buildbot.pypy.org/nightly/trunk/</a><br>
<br>
Carl Friedrich<br>
_______________________________________________<br>
<a href="mailto:pypy-dev@codespeak.net">pypy-dev@codespeak.net</a><br>
<a href="http://codespeak.net/mailman/listinfo/pypy-dev" target="_blank">http://codespeak.net/mailman/listinfo/pypy-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Sincerely,<br>Ram Rachum<br>
</div>