New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:

Some C code in 3.10+ uses literal 2 for the size of the code unit. It should 
use sizeof(_Py_CODEUNIT) instead.

1. It is self-documented and allows to distinguish this 2 from other 2 
constants.
2. It will help if we change from 16-bit code units to 24-, 32- or 64-bit code 
units.

----------
components: Interpreter Core
messages: 403101
nosy: Mark.Shannon, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Use sizeof(_Py_CODEUNIT) instead of literal 2 for the size of the code 
unit
versions: Python 3.10, Python 3.11

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45355>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to