Skip to content
This repository was archived by the owner on Mar 23, 2023. It is now read-only.

Add ToInt() function for converting int args#167

Merged
trotterdylan merged 2 commits intogoogle:masterfrom
trotterdylan:master
Jan 19, 2017
Merged

Add ToInt() function for converting int args#167
trotterdylan merged 2 commits intogoogle:masterfrom
trotterdylan:master

Conversation

@trotterdylan
Copy link
Copy Markdown
Contributor

Also fix some unsafe conversions.

@S-YOU
Copy link
Copy Markdown
Contributor

S-YOU commented Jan 19, 2017

Will this be replacement for IntType.Call?

@trotterdylan
Copy link
Copy Markdown
Contributor Author

Yes, I realized that IntType.Call() isn't quite right since you could provide a string value which would be implicitly converted to a number. That's not how CPython does it.

@S-YOU S-YOU mentioned this pull request Jan 19, 2017
@trotterdylan trotterdylan merged commit 7b116b7 into google:master Jan 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants