
May 7, 2011
8:46 a.m.
Bruce Leban wrote:
I'm opposed to changing int so that int('123_456') ignores the _ as that will change the behavior of existing code and could break apps.
But int('123_456', 0) should perhaps work? (On the grounds that it parses numbers using the same syntax as Python source.) -- Greg