On Thu, 2019-12-05 at 16:38 +0000, Mark Shannon wrote:
> Hi Everyone,
> 
> Thanks for all your feedback on my proposed PEP. I've editing the PEP
> in 
> light of all your comments and it is now hopefully more precise and
> with 
> better justification.
> 
> https://github.com/python/peps/pull/1249

Other program languages have limits in their standards.  For example:

Values for #line in the C preprocessor:
"If lineno is 0 or greater than 32767 (until C99) 2147483647 (since
C99), the behavior is undefined."
  https://en.cppreference.com/w/c/preprocessor/line

Similar for C++'s preprocessor (but for C++11)
  https://en.cppreference.com/w/cpp/preprocessor/line


(These days I maintain GCC's location-tracking code, and we have a
number of implementation-specific limits and heuristics for packing
file/line/column data into a 32-bit type; see
https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=libcpp/include/line-map.h 
and in particular LINE_MAP_MAX_LOCATION_WITH_COLS,
LINE_MAP_MAX_LOCATION, LINE_MAP_MAX_COLUMN_NUMBER, etc)


Hope this is constructive
Dave
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/7N3CF4MDOBSPKANRZJSZOY6JVAGOCHXF/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to