Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
string_2, cat,dog
#3
It's not good idea to use str as name.

>>> str(42)
'42'
>>> str = 'oh my god'
>>> str(42)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'str' object is not callable
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
string_2, cat,dog - by Dixon - Dec-20-2019, 10:25 PM
RE: string_2, cat,dog - by Clunk_Head - Dec-20-2019, 11:02 PM
RE: string_2, cat,dog - by perfringo - Dec-21-2019, 12:44 PM
RE: string_2, cat,dog - by Dixon - Dec-21-2019, 05:09 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020