You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arbitrary 64-bit signed integers (from −2^63 to 2^63−1) should be accepted and handled losslessly. If an integer cannot be represented losslessly, an error must be thrown.
python's tomli can handle arbitrary sized integers, and I'd really like to be able to read 0x8000000000000000 from a TOML file using toml11.
It seems to me that the best way to make this doable (and optional) is to provide some template overload (similar to how comments are dealt with) to modify the parsing behavior to accept a custom function or something to retrieve/store the integer value. Then a user can define how they want to store the integer.
The text was updated successfully, but these errors were encountered:
The TOML standard specifies:
python's tomli can handle arbitrary sized integers, and I'd really like to be able to read
0x8000000000000000
from a TOML file using toml11.It seems to me that the best way to make this doable (and optional) is to provide some template overload (similar to how comments are dealt with) to modify the parsing behavior to accept a custom function or something to retrieve/store the integer value. Then a user can define how they want to store the integer.
The text was updated successfully, but these errors were encountered: