Question about "__extend__" hacks (in pypyjit module)
Hi, In the __init__.py for the ‘pypyjit’ module there’s a comment in the ‘setup_after_space_initialization’ method "force the __extend__ hacks to occur early” (line 34) followed by two imports. What are these __extend__ hacks? Many thanks, Magnus
__extend__ hacks add extra methods to classes On Tue, Feb 9, 2016 at 12:01 AM, Magnus Morton <m@magnusmorton.com> wrote:
Hi,
In the __init__.py for the ‘pypyjit’ module there’s a comment in the ‘setup_after_space_initialization’ method "force the __extend__ hacks to occur early” (line 34) followed by two imports. What are these __extend__ hacks?
Many thanks, Magnus
_______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev
On 9 February 2016 at 10:24, Maciej Fijalkowski <fijall@gmail.com> wrote:
__extend__ hacks add extra methods to classes
See rpython.tool.pairtype and rpython.tool.test.test_pairtype for more information on this pattern. -- William Leslie Notice: Likely much of this email is, by the nature of copyright, covered under copyright law. You absolutely MAY reproduce any part of it in accordance with the copyright law of the nation you are reading this in. Any attempt to DENY YOU THOSE RIGHTS would be illegal without prior contractual agreement.
participants (3)
-
Maciej Fijalkowski
-
Magnus Morton
-
William ML Leslie