Martin v. Löwis added the comment:

I don't think they are actually the *same* issue.

For the limitations wrt. code objects (maximum size of byte code, maximum 
number of local variables, maximum number of parameters, etc.), I recommend the 
following thorough procedure:

1. document in a single text file all the limitations
2. check for each one whether an int is sufficient to represent them at runtime.
3. if yes: leave all structure definitions as-is. Local variables might be  
changed to size_t where this simplifies the code. Otherwise, Py_SAFE_DOWNCAST 
should be used where the actual value ought to be valid already. Runtime errors 
where a value may come from the outside that might be out of range.
4. if not: widen the structures to Py_ssize_t.

----------
nosy: +loewis

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

Reply via email to