On 2020-02-04 02:37, Steven D'Aprano wrote:
Sometimes I'm tempted to write numbers like that as follows:
P = int('29674495668685510550154174642905332730771991'
'79985304335099507553127683875317177019959423'
'8596428121188033664754218345562493168782883')
which is nicer to read, except for the minor annoyance of the call to
int and the string delimiters.
This variant seems to work pretty well, and I find it easy to understand.
If I had this problem often enough and end-users I'd probably put them in an
.ini file (values broken with newlines), with a short function to load and
assemble them properly.
-Mike
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/python-ideas@python.org/message/X25LSCBDZ2G24ILGMPUC2LH3T725GV4O/
Code of Conduct: http://python.org/psf/codeofconduct/