Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win32stat: Change python2 syntax octal integers to also work with py3k #223

Merged
merged 1 commit into from Mar 16, 2014

Conversation

Ormod
Copy link
Contributor

@Ormod Ormod commented Mar 15, 2014

No description provided.

@tamland
Copy link
Collaborator

tamland commented Mar 15, 2014

Thanks! Maybe use 0o prefix? I think that should work in all versions.

@Ormod
Copy link
Contributor Author

Ormod commented Mar 16, 2014

I personally prefer this syntax since I believe way more people can understand with a glance what int(string, base) does and I think far fewer people know the alternative 0onumber syntax.

Anyhow, if you feel strongly about it I can update the PR

@tamland
Copy link
Collaborator

tamland commented Mar 16, 2014

Well, I completely disagree with that being easier. 0 is the standard notation in all languages. If you understand 0x and 0b I think it should be immediately obvious what 0o means.

@Ormod
Copy link
Contributor Author

Ormod commented Mar 16, 2014

I updated the PR now to use the 0oxxx form.

@tamland
Copy link
Collaborator

tamland commented Mar 16, 2014

ty

tamland added a commit that referenced this pull request Mar 16, 2014
win32stat: Change python2 syntax octal integers to also work with py3k
@tamland tamland merged commit 1807b38 into gorakhargosh:master Mar 16, 2014
CCP-Aporia pushed a commit to CCP-Aporia/watchdog that referenced this pull request Aug 13, 2020
win32stat: Change python2 syntax octal integers to also work with py3k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants