Use "isinstance(b, (int, long))" instead of "type(b) is int" in numbers.py
Use "isinstance(b, (int, long))" instead of "type(b) is int" in numbers.py

See issue 1946.

flacjacket/sympy,sunny94/temp,souravsingh/sympy,jaimahajan1997/sympy,yukoba/sympy,pandeyadarsh/sympy,jbbskinny/sympy,saurabhjn76/sympy,AkademieOlympia/sympy,shikil/sympy,minrk/sympy,bukzor/sympy,toolforger/sympy,yashsharan/sympy,sahilshekhawat/sympy,liangjiaxing/sympy,jamesblunt/sympy,iamutkarshtiwari/sympy,hrashk/sympy,sahmed95/sympy,atsao72/sympy,mcdaniel67/sympy,maniteja123/sympy,farhaanbukhsh/sympy,oliverlee/sympy,kevalds51/sympy,jerli/sympy,abloomston/sympy,wanglongqi/sympy,vipulroxx/sympy,sampadsaha5/sympy,meghana1995/sympy,cswiercz/sympy,MridulS/sympy,MechCoder/sympy,diofant/diofant,moble/sympy,jamesblunt/sympy,postvakje/sympy,cswiercz/sympy,wanglongqi/sympy,ahhda/sympy,madan96/sympy,rahuldan/sympy,sampadsaha5/sympy,moble/sympy,asm666/sympy,lindsayad/sympy,kaushik94/sympy,jaimahajan1997/sympy,oliverlee/sympy,sahilshekhawat/sympy,lidavidm/sympy,amitjamadagni/sympy,kmacinnis/sympy,AkademieOlympia/sympy,chaffra/sympy,grevutiu-gabriel/sympy,grevutiu-gabriel/sympy,saurabhjn76/sympy,jaimahajan1997/sympy,beni55/sympy,farhaanbukhsh/sympy,Titan-C/sympy,jbbskinny/sympy,abhiii5459/sympy,kmacinnis/sympy,hrashk/sympy,yashsharan/sympy,kaichogami/sympy,wanglongqi/sympy,madan96/sympy,MechCoder/sympy,hrashk/sympy,MechCoder/sympy,VaibhavAgarwalVA/sympy,sampadsaha5/sympy,lindsayad/sympy,shipci/sympy,srjoglekar246/sympy,Davidjohnwilson/sympy,maniteja123/sympy,wyom/sympy,kevalds51/sympy,garvitr/sympy,maniteja123/sympy,postvakje/sympy,liangjiaxing/sympy,meghana1995/sympy,hargup/sympy,Titan-C/sympy,AkademieOlympia/sympy,sahilshekhawat/sympy,oliverlee/sympy,Davidjohnwilson/sympy,kaushik94/sympy,grevutiu-gabriel/sympy,VaibhavAgarwalVA/sympy,Designist/sympy,bukzor/sympy,cswiercz/sympy,moble/sympy,pernici/sympy,shipci/sympy,hargup/sympy,debugger22/sympy,atreyv/sympy,pbrady/sympy,emon10005/sympy,yukoba/sympy,Mitchkoens/sympy,Mitchkoens/sympy,Shaswat27/sympy,abloomston/sympy,Curious72/sympy,abhiii5459/sympy,beni55/sympy,bukzor/sympy,sahmed95/sympy,yukoba/sympy,Gadal/sympy,saurabhjn76/sympy,Shaswat27/sympy,garvitr/sympy,aktech/sympy,emon10005/sympy,Designist/sympy,wyom/sympy,mafiya69/sympy,kaushik94/sympy,Arafatk/sympy,Sumith1896/sympy,skidzo/sympy,ga7g08/sympy,Curious72/sympy,kaichogami/sympy,Vishluck/sympy,rahuldan/sympy,asm666/sympy,skirpichev/omg,meghana1995/sympy,lidavidm/sympy,AunShiLord/sympy,beni55/sympy,MridulS/sympy,pandeyadarsh/sympy,minrk/sympy,Sumith1896/sympy,lindsayad/sympy,ga7g08/sympy,kumarkrishna/sympy,debugger22/sympy,kaichogami/sympy,souravsingh/sympy,jamesblunt/sympy,Curious72/sympy,drufat/sympy,drufat/sympy,mcdaniel67/sympy,dqnykamp/sympy,shikil/sympy,dqnykamp/sympy,ChristinaZografou/sympy,atreyv/sympy,toolforger/sympy,mafiya69/sympy,Gadal/sympy,dqnykamp/sympy,vipulroxx/sympy,atreyv/sympy,drufat/sympy,yashsharan/sympy,kevalds51/sympy,abloomston/sympy,garvitr/sympy,liangjiaxing/sympy,cccfran/sympy,Arafatk/sympy,Sumith1896/sympy,skidzo/sympy,souravsingh/sympy,wyom/sympy,kumarkrishna/sympy,lidavidm/sympy,atsao72/sympy,AunShiLord/sympy,ahhda/sympy,Shaswat27/sympy,VaibhavAgarwalVA/sympy,chaffra/sympy,Vishluck/sympy,abhiii5459/sympy,Titan-C/sympy,postvakje/sympy,ga7g08/sympy,toolforger/sympy,emon10005/sympy,Davidjohnwilson/sympy,sahmed95/sympy,aktech/sympy,jerli/sympy,pandeyadarsh/sympy,skidzo/sympy,amitjamadagni/sympy,Designist/sympy,ChristinaZografou/sympy,Gadal/sympy,shikil/sympy,jerli/sympy,farhaanbukhsh/sympy,chaffra/sympy,madan96/sympy,cccfran/sympy,pbrady/sympy,pbrady/sympy,mafiya69/sympy,iamutkarshtiwari/sympy,iamutkarshtiwari/sympy,AunShiLord/sympy,Mitchkoens/sympy,shipci/sympy,ahhda/sympy,mcdaniel67/sympy,aktech/sympy,atsao72/sympy,kmacinnis/sympy,rahuldan/sympy,debugger22/sympy,ChristinaZografou/sympy,asm666/sympy,sunny94/temp,vipulroxx/sympy,MridulS/sympy,Arafatk/sympy,hargup/sympy,sunny94/temp,kumarkrishna/sympy,Vishluck/sympy,jbbskinny/sympy,cccfran/sympy