This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mark.Shannon
Recipients Mark.Shannon, brandtbucher
Date 2021-12-16.11:06:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639652770.25.0.708221453944.issue46097@roundup.psfhosted.org>
In-reply-to
Content
Because functions are mutable, specifically because the __code__ attribute is mutable, we need to version functions when specializing.

However, some specializations (for special methods mainly) only have space for 16 bit versions.

It is likely that programs will have more than 2**16 functions versions, but it is much less likely that they will have more than 2**16 versions of special methods.

We should partition the version space into 1-0xffff for use by special methods and 0x1000+ for use by other methods.

See https://github.com/python/cpython/pull/30129 for an example of why this is needed.
History
Date User Action Args
2021-12-16 11:06:10Mark.Shannonsetrecipients: + Mark.Shannon, brandtbucher
2021-12-16 11:06:10Mark.Shannonsetmessageid: <1639652770.25.0.708221453944.issue46097@roundup.psfhosted.org>
2021-12-16 11:06:10Mark.Shannonlinkissue46097 messages
2021-12-16 11:06:10Mark.Shannoncreate