This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Khalid Moh'd.
Recipients Khalid Moh'd.
Date 2018-05-18.19:30:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1526671827.02.0.682650639539.issue33574@psf.upfronthosting.co.za>
In-reply-to
Content
Consider conversion of an integer to string:
a=5 #number
str #outputs <class 'str'>
str(a) #works perfectly and prints '5'

Now, consider:
str="Hello World" #reads the string
str #prints "Hello World"
str(5) #gives an error


Interpreter considers variable str before parenthesis not str from <class 'str'>
There must be a way to distinguish user defined variable str and conversion operation str().
History
Date User Action Args
2018-05-18 19:30:27Khalid Moh'd.setrecipients: + Khalid Moh'd.
2018-05-18 19:30:27Khalid Moh'd.setmessageid: <1526671827.02.0.682650639539.issue33574@psf.upfronthosting.co.za>
2018-05-18 19:30:26Khalid Moh'd.linkissue33574 messages
2018-05-18 19:30:26Khalid Moh'd.create