Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
string to integer problem
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Gerrit, post: 1749600"] Passing a string to 'eval' is equal in having it as a part of an expression, for example as having in at the right side of an assignment operator (=), except for the quotes. The string returned happens to be valid Python syntax: numbers seperated by comma's with ( and ) around it create a tuple. It is valid to simply onter (1,2,3) at the Python interactive interpreter: this is why it is valid to pass '(1,2,3)' to eval. The result is the same. Hope this helps, yours, Gerrit. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
string to integer problem
Top