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
@array93 Thanks for reporting, you are right the documentation was not correct. The issue was recently fixed in #118311. That change will take some time though before it ends up in the official documentation.
Documentation
Section describing
__new__(cls, *args, **kwds)
says:While
class int(x, base=10)
suggests the value would be26
since1A
hex is26
decimal.Also wouldn't the enum in the example need to inherit from
int
to get its__new__
implementation? I'm confused about the mixed-in.The text was updated successfully, but these errors were encountered: