'Comparing types boto3 (python)

When I execute this print(type(boto3.resource("s3")) == type(boto3.resource("s3"))) I'm getting False. Is it possible type() __eq__ to be overwrite. Does anyone can explain why I'm getting False



Solution 1:[1]

You're trying to print type of boto3.resource("s3"), but it has no type so it gives you false. for example if you give type('a') it will give you string same way boto3.resource("s3") is used to connect to aws services. which does not have any type according to my knowledge.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 alexpdev