hw <h...@adminart.net> writes: > Hi, > > I'm starting to learn python and have made a little example program > following a tutorial[1] I'm attaching. > > Running it, I'm getting: > > > Traceback (most recent call last): > File "[...]/hworld.py", line 18, in <module> > print(isinstance(int, float)) > TypeError: isinstance() arg 2 must be a type or tuple of types > > > I would understand to get an error message in line 5 but not in 18. > Is this a bug or a feature? > > > [1]: https://www.learnpython.org/en/Variables_and_Types >
OK man i saw your code other messages. That is simple. You wrote 'Python's default keywords' so that occurs conflict. Bomb. To avoid conflict, i append some prefix like as "_" or "__" when i write down var/func names sometimes... Sincerely, Gnus fan Byung-Hee -- ^고맙습니다 _救濟蒼生_ 감사합니다_^))// -- https://mail.python.org/mailman/listinfo/python-list