Re: Is the hash field optimization still present
Joannah Nanjekye <[email protected]> Thu, 28 Dec 2023 13:00:23 -0400
| Newsgroups | gmane.comp.python.pypy |
|---|---|
| Message-ID | <CANFMCgRif6fMMAMwUgTvcM7uWz8ay15OBMZZaqov9V5x9zdLkA@mail.gmail.com> |
--===============0617142942304290108== Content-Type: multipart/alternative; boundary="00000000000091e15c060d94daa8" --00000000000091e15c060d94daa8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On looking further the functionality is there for shadow objects. On Thu, Dec 28, 2023 at 12:03=E2=80=AFPM Joannah Nanjekye <nanjekyejoannah@= gmail.com> wrote: > Hello. > > I read about the hash field optimization here: > https://www.pypy.org/posts/2009/10/gc-improvements-6174120095428192954.ht= ml > > But when I query object.__hash__(4) on the latest pypy branch, it returns= , > I expected a type error. > I stand to be corrected obviously. > > -- > Best, > Joannah Nanjekye > > *"You think you know when you learn, are more sure when you can write, > even more when you can teach, but certain when you can program." Alan J. > Perlis* > --=20 Best, Joannah Nanjekye *"You think you know when you learn, are more sure when you can write, even more when you can teach, but certain when you can program." Alan J. Perlis* --00000000000091e15c060d94daa8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">On looking further the functionality is there for shadow o= bjects.</div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail= _attr">On Thu, Dec 28, 2023 at 12:03=E2=80=AFPM Joannah Nanjekye <<a hre= f=3D"mailto:[email protected]">[email protected]</a>> wr= ote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px= 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D= "ltr">Hello.<div><br></div><div>I read about the hash field optimization he= re:=C2=A0<a href=3D"https://www.pypy.org/posts/2009/10/gc-improvements-6174= 120095428192954.html" target=3D"_blank">https://www.pypy.org/posts/2009/10/= gc-improvements-6174120095428192954.html</a></div><div><br></div><div>But w= hen I query object.__hash__(4) on the latest pypy branch, it returns, I exp= ected a type error.</div><div>I stand to be corrected obviously.<br clear= =3D"all"><div><br></div><span class=3D"gmail_signature_prefix">-- </span><b= r><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr"><div><div dir= =3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr= "><div><div><div><i><span style=3D"font-family:"Times New Roman""= ></span></i><span>Best,</span></div><div>Joannah Nanjekye</div></div></div>= </div><div dir=3D"ltr"><i><span style=3D"font-family:"Times New Roman&= quot;"><span style=3D"color:rgb(255,102,0)">"You think you know when you learn, are more sure when you can write, even=20 more when you can teach, but certain when you can program."</span> <br= > Alan J. Perlis</span></i></div></div></div></div></div></div></div></div></= div></div> </blockquote></div><br clear=3D"all"><div><br></div><span class=3D"gmail_si= gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d= iv dir=3D"ltr"><div><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div= dir=3D"ltr"><div dir=3D"ltr"><div><div><div><i><span style=3D"font-family:= "Times New Roman""></span></i><span>Best,</span></div><div>Joanna= h Nanjekye</div></div></div></div><div dir=3D"ltr"><i><span style=3D"font-f= amily:"Times New Roman""><span style=3D"color:rgb(255,102,0)">&qu= ot;You think you know when you learn, are more sure when you can write, even=20 more when you can teach, but certain when you can program."</span> <br= > Alan J. Perlis</span></i></div></div></div></div></div></div></div></div> --00000000000091e15c060d94daa8-- --===============0617142942304290108== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ pypy-dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/pypy-dev.python.org/ Member address: [email protected] --===============0617142942304290108==--