Re: trying to run peak-rules on python3

HervĂ© Coatanhay <[email protected]> Mon, 18 Mar 2013 22:39:13 -0700
Newsgroups gmane.comp.python.peak
Message-ID <CAPq7H1Y3-2EkfQ8Sajxs8RTqLw5rvBce1jb69jNjXj8c_RNmKg@mail.gmail.com>
--===============0030830865==
Content-Type: multipart/alternative; boundary=047d7b5dbce2881d7904d84086ed

--047d7b5dbce2881d7904d84086ed
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Ok I totally missed the tests in README.txt.
I have to make them python3 friendly before running them.
I'll come up with something more consistent as soon as it is done.



On Mon, Mar 18, 2013 at 9:04 PM, PJ Eby <pje-Wh6+Hckhi6HFNGf7iClzIwC/[email protected]> wrote:

> On Mon, Mar 18, 2013 at 1:56 PM, Herv=C3=A9 Coatanhay
> <[email protected]> wrote:
> >
> "/Users/herve/Documents/workspace/nagare/python3-ports/peak-py3/PEAK-Rule=
s-0.5a1.dev-r2713/peak/rules/criteria.py",
> > line 145, in <module>
> >     inequalities =3D {
> > TypeError: nonempty __slots__ not supported for subtype of 'int'
> >
> > Does anyone tried to port peak-rules to python3 ? Do you have any advic=
e
> on
> > the right way to do it ? Or even hints on what I'm missing ?
>
> Well, the nonempty slots thing is probably about the
> peak.rules.criteria.IsObject class, which would need some refactoring
> to not be based on the integer type.  I couldn't tell you how many
> other things might not work; for example, did you get
> BytecodeAssembler to pass all its test?  For that matter, which of
> PEAK-Rules' own tests are not working?
>



--=20
dyslectics have more fnu

--047d7b5dbce2881d7904d84086ed
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div><div>Ok I totally missed the tests in README.txt=
.<br></div>I have to make them python3 friendly before running them.<br></d=
iv>I&#39;ll come up with something more consistent as soon as it is done.<b=
r>
<br></div></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quot=
e">On Mon, Mar 18, 2013 at 9:04 PM, PJ Eby <span dir=3D"ltr">&lt;<a href=3D=
"mailto:pje-Wh6+Hckhi6HFNGf7iClzIwC/[email protected]" target=3D"_blank">pje-Wh6+Hckhi6HFNGf7iClzIwC/[email protected]</a>&=
gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div class=3D"im">On Mon, Mar 18, 2013 at 1:=
56 PM, Herv=C3=A9 Coatanhay<br>
&lt;<a href=3D"mailto:[email protected]">[email protected]<=
/a>&gt; wrote:<br>
&gt; &quot;/Users/herve/Documents/workspace/nagare/python3-ports/peak-py3/P=
EAK-Rules-0.5a1.dev-r2713/peak/rules/criteria.py&quot;,<br>
&gt; line 145, in &lt;module&gt;<br>
&gt; =C2=A0 =C2=A0 inequalities =3D {<br>
&gt; TypeError: nonempty __slots__ not supported for subtype of &#39;int&#3=
9;<br>
&gt;<br>
&gt; Does anyone tried to port peak-rules to python3 ? Do you have any advi=
ce on<br>
&gt; the right way to do it ? Or even hints on what I&#39;m missing ?<br>
<br>
</div>Well, the nonempty slots thing is probably about the<br>
peak.rules.criteria.IsObject class, which would need some refactoring<br>
to not be based on the integer type. =C2=A0I couldn&#39;t tell you how many=
<br>
other things might not work; for example, did you get<br>
BytecodeAssembler to pass all its test? =C2=A0For that matter, which of<br>
PEAK-Rules&#39; own tests are not working?<br>
</blockquote></div><br><br clear=3D"all"><br>-- <br>dyslectics have more fn=
u
</div>

--047d7b5dbce2881d7904d84086ed--

--===============0030830865==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
PEAK mailing list
[email protected]
http://www.eby-sarna.com/mailman/listinfo/peak
--===============0030830865==--