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

(e)Book errata #2

Open
gravityFlower opened this issue Oct 3, 2017 · 0 comments
Open

(e)Book errata #2

gravityFlower opened this issue Oct 3, 2017 · 0 comments

Comments

@gravityFlower
Copy link

Somehow i couldn't find the errata link to the book, neither on Apress nor Springer, so i'm posting it here.
Maybe others will stumble upon it in search for answers (and/or maybe provide their findings).

Page 5 - Octal number literals: the book claims that octal number literals can be written as >>> 010. On execution, you will be presented with an SyntaxError: invalid token error.
PEP 3127 -- Integer Literal Support and Syntax from 2007-05-14 proposes that it should contain an additional o or O between the 0 and the octal number (similar to binary with 0b and hexadecimal with 0xprefix), therefore resulting in 0o10 or 0O10. This has been proposed for Python 3.0, and for backward compatibility, to Python 2.6.

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

No branches or pull requests

1 participant