py/parsenum: Provide detailed error for int parsing with escaped bytes.
py/parsenum: Provide detailed error for int parsing with escaped bytes.

This patch adds more fine grained error message control for errors when
parsing integers (now has terse, normal and detailed).  When detailed is
enabled, the error now escapes bytes when printing them so they can be
more easily seen.

mhoffma/micropython,jmarcelino/pycom-micropython,misterdanb/micropython,vitiral/micropython,dmazzella/micropython,neilh10/micropython,praemdonck/micropython,dxxb/micropython,ruffy91/micropython,noahwilliamsson/micropython,dhylands/micropython,EcmaXp/micropython,AriZuu/micropython,omtinez/micropython,mianos/micropython,kerneltask/micropython,chrisdearman/micropython,puuu/micropython,micropython/micropython-esp32,adamkh/micropython,TDAbboud/micropython,henriknelson/micropython,alex-march/micropython,oopy/micropython,mhoffma/micropython,adafruit/micropython,hosaka/micropython,Timmenem/micropython,galenhz/micropython,Timmenem/micropython,dmazzella/micropython,feilongfl/micropython,martinribelotta/micropython,chrisdearman/micropython,cloudformdesign/micropython,tobbad/micropython,neilh10/micropython,tobbad/micropython,oopy/micropython,ryannathans/micropython,adafruit/circuitpython,MrSurly/micropython,jmarcelino/pycom-micropython,mianos/micropython,PappaPeppar/micropython,ernesto-g/micropython,matthewelse/micropython,torwag/micropython,torwag/micropython,danicampora/micropython,pfalcon/micropython,turbinenreiter/micropython,swegener/micropython,feilongfl/micropython,chrisdearman/micropython,HenrikSolver/micropython,dinau/micropython,supergis/micropython,xhat/micropython,martinribelotta/micropython,toolmacher/micropython,oopy/micropython,TDAbboud/micropython,blmorris/micropython,toolmacher/micropython,MrSurly/micropython,selste/micropython,HenrikSolver/micropython,adafruit/micropython,ryannathans/micropython,MrSurly/micropython,cwyark/micropython,xhat/micropython,tralamazza/micropython,turbinenreiter/micropython,kerneltask/micropython,TDAbboud/micropython,adamkh/micropython,henriknelson/micropython,mianos/micropython,toolmacher/micropython,xhat/micropython,MrSurly/micropython,tobbad/micropython,feilongfl/micropython,alex-robbins/micropython,mpalomer/micropython,kerneltask/micropython,infinnovation/micropython,drrk/micropython,adafruit/circuitpython,infinnovation/micropython,dinau/micropython,ernesto-g/micropython,redbear/micropython,micropython/micropython-esp32,cloudformdesign/micropython,EcmaXp/micropython,lowRISC/micropython,mpalomer/micropython,bvernoux/micropython,bvernoux/micropython,ryannathans/micropython,galenhz/micropython,PappaPeppar/micropython,dinau/micropython,micropython/micropython-esp32,ChuckM/micropython,kerneltask/micropython,micropython/micropython-esp32,trezor/micropython,martinribelotta/micropython,hiway/micropython,martinribelotta/micropython,pozetroninc/micropython,chrisdearman/micropython,tuc-osg/micropython,Peetz0r/micropython-esp32,Timmenem/micropython,HenrikSolver/micropython,SHA2017-badge/micropython-esp32,alex-robbins/micropython,alex-march/micropython,toolmacher/micropython,omtinez/micropython,hiway/micropython,adafruit/circuitpython,supergis/micropython,EcmaXp/micropython,neilh10/micropython,neilh10/micropython,pozetroninc/micropython,ruffy91/micropython,tuc-osg/micropython,selste/micropython,mhoffma/micropython,pfalcon/micropython,emfcamp/micropython,misterdanb/micropython,tobbad/micropython,cloudformdesign/micropython,TDAbboud/micropython,swegener/micropython,mpalomer/micropython,supergis/micropython,bvernoux/micropython,lowRISC/micropython,oopy/micropython,lowRISC/micropython,SHA2017-badge/micropython-esp32,noahwilliamsson/micropython,praemdonck/micropython,dhylands/micropython,hiway/micropython,Peetz0r/micropython-esp32,ganshun666/micropython,AriZuu/micropython,alex-robbins/micropython,MrSurly/micropython-esp32,trezor/micropython,kerneltask/micropython,dmazzella/micropython,blmorris/micropython,infinnovation/micropython,Timmenem/micropython,chrisdearman/micropython,mianos/micropython,hiway/micropython,deshipu/micropython,trezor/micropython,ganshun666/micropython,ernesto-g/micropython,puuu/micropython,lowRISC/micropython,puuu/micropython,ernesto-g/micropython,adafruit/circuitpython,AriZuu/micropython,blmorris/micropython,swegener/micropython,Peetz0r/micropython-esp32,vitiral/micropython,tralamazza/micropython,henriknelson/micropython,drrk/micropython,HenrikSolver/micropython,puuu/micropython,MrSurly/micropython-esp32,ChuckM/micropython,adamkh/micropython,PappaPeppar/micropython,vitiral/micropython,vitiral/micropython,SHA2017-badge/micropython-esp32,ryannathans/micropython,mpalomer/micropython,bvernoux/micropython,infinnovation/micropython,praemdonck/micropython,danicampora/micropython,emfcamp/micropython,trezor/micropython,SHA2017-badge/micropython-esp32,alex-robbins/micropython,ruffy91/micropython,alex-march/micropython,danicampora/micropython,lowRISC/micropython,toolmacher/micropython,EcmaXp/micropython,redbear/micropython,redbear/micropython,blmorris/micropython,vitiral/micropython,dhylands/micropython,tuc-osg/micropython,infinnovation/micropython,mianos/micropython,danicampora/micropython,PappaPeppar/micropython,micropython/micropython-esp32,pramasoul/micropython,turbinenreiter/micropython,supergis/micropython,emfcamp/micropython,blazewicz/micropython,matthewelse/micropython,feilongfl/micropython,redbear/micropython,neilh10/micropython,tobbad/micropython,hosaka/micropython,Peetz0r/micropython-esp32,tuc-osg/micropython,torwag/micropython,martinribelotta/micropython,blazewicz/micropython,adafruit/micropython,deshipu/micropython,pfalcon/micropython,pramasoul/micropython,matthewelse/micropython,matthewelse/micropython,pozetroninc/micropython,deshipu/micropython,ganshun666/micropython,omtinez/micropython,pramasoul/micropython,dinau/micropython,cloudformdesign/micropython,blazewicz/micropython,turbinenreiter/micropython,ruffy91/micropython,deshipu/micropython,MrSurly/micropython-esp32,henriknelson/micropython,dmazzella/micropython,adafruit/circuitpython,pfalcon/micropython,dxxb/micropython,praemdonck/micropython,hosaka/micropython,ChuckM/micropython,MrSurly/micropython,matthewelse/micropython,PappaPeppar/micropython,MrSurly/micropython-esp32,alex-robbins/micropython,puuu/micropython,selste/micropython,swegener/micropython,galenhz/micropython,emfcamp/micropython,omtinez/micropython,misterdanb/micropython,deshipu/micropython,torwag/micropython,AriZuu/micropython,jmarcelino/pycom-micropython,Timmenem/micropython,mhoffma/micropython,hosaka/micropython,torwag/micropython,ernesto-g/micropython,blazewicz/micropython,misterdanb/micropython,misterdanb/micropython,pramasoul/micropython,Peetz0r/micropython-esp32,adamkh/micropython,feilongfl/micropython,ganshun666/micropython,dhylands/micropython,jmarcelino/pycom-micropython,trezor/micropython,selste/micropython,blmorris/micropython,drrk/micropython,ChuckM/micropython,selste/micropython,TDAbboud/micropython,pozetroninc/micropython,xhat/micropython,dxxb/micropython,swegener/micropython,tralamazza/micropython,supergis/micropython,pozetroninc/micropython,AriZuu/micropython,emfcamp/micropython,adafruit/micropython,matthewelse/micropython,MrSurly/micropython-esp32,mhoffma/micropython,cwyark/micropython,oopy/micropython,mpalomer/micropython,drrk/micropython,adafruit/circuitpython,pfalcon/micropython,SHA2017-badge/micropython-esp32,danicampora/micropython,tuc-osg/micropython,cwyark/micropython,blazewicz/micropython,EcmaXp/micropython,alex-march/micropython,adafruit/micropython,drrk/micropython,omtinez/micropython,HenrikSolver/micropython,jmarcelino/pycom-micropython,tralamazza/micropython,hosaka/micropython,bvernoux/micropython,galenhz/micropython,adamkh/micropython,henriknelson/micropython,ruffy91/micropython,xhat/micropython,alex-march/micropython,dinau/micropython,hiway/micropython,cwyark/micropython,turbinenreiter/micropython,ganshun666/micropython,pramasoul/micropython,praemdonck/micropython,dxxb/micropython,noahwilliamsson/micropython,redbear/micropython,galenhz/micropython,ryannathans/micropython,cloudformdesign/micropython,cwyark/micropython,dhylands/micropython,noahwilliamsson/micropython,dxxb/micropython,noahwilliamsson/micropython,ChuckM/micropython