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
Ah yeah, I should have spent more time reading the guide as opposed to skimming through it, sorry, it's clear to me now why isinstance() wouldn't work with the drop in int().
For people new to programming they might not know, but I guess if you have any knowledge of classes it's quite clear.
I was also previously unaware that import fastnumbers did not import the drop in replacements, I think this is the right behavior though as people might not want them especially when they already have access to the fast conversions etc
I am not sure if it's worth looking into because when importing fastnumbers by simply stating:
import fastnumbers
An error does not occur, but...This code causes an error (Python 3.63 windows 10 64bit):
the error is:
if isinstance(x,int):
TypeError: isinstance() arg 2 must be a type or tuple of types
The text was updated successfully, but these errors were encountered: