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.

classification
Title: sementic errors?
Type: Stage: resolved
Components: Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: dejere, vstinner
Priority: normal Keywords:

Created on 2019-09-25 11:54 by dejere, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg353184 - (view) Author: Derbe Ejere (dejere) Date: 2019-09-25 11:54
a = "hello"
b = "4.3" 

1.Both variables a  and b are type of object String (can be checked with type()
2.Change both to float using float(). 
variable a cannot be changed to float since it is str object. However,
variable b can be changed to float giving 4.3 eventhough it is also a str object. 

CONTRADICTION?!

Thanks,

Derbe Ejere
msg353185 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-09-25 12:04
Sorry but the Python bug tracker is not the right place to ask questions on the Python language. See https://www.python.org/community/lists/ instead, like https://mail.python.org/mailman/listinfo/tutor
History
Date User Action Args
2022-04-11 14:59:20adminsetgithub: 82455
2019-09-25 12:04:15vstinnersetstatus: open -> closed

nosy: + vstinner
messages: + msg353185

resolution: not a bug
stage: resolved
2019-09-25 11:54:57dejerecreate