-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Windows Specific Issue and work-around: Chapter 17: flags2_common.py #2
Comments
What is the error you get. The only thing different here is that you've removed the line wrap on the assert statement which a) shouldn't be a problem or throw an error and b) puts the line longer than 80 characters which is a violation of PEP 8 as seen here: |
Oddly enough, a syntax error, reproducing it minus personal information which I've substituted - we get this. This is a workaround - not a fix. 80 width on an editor may be an issue, since this is 82 characters. Error: `Traceback (most recent call last):
SyntaxError: invalid syntax` so... say I'm running flags2_threadpool.py: Then you change flags2_common.py to my version, which is 2 characters in violation of PEP 8, therefor not a fix, but a workaround... `PS C:\countries> py -3 flags2_threadpool.py
|
First of all - a well written and complete book for intermediate to advanced Python users. It covers a lot of territory and for the most part will work as is on a variety of systems. I did find one bug in chapter 17 that prevents you from moving through the last part of the chapter. The error is in flags2_common.py on Windows 8-10: Not sure if this effects other systems too. The code provided is this...
For windows, this will throw an error: This code works better...
Let me know if you need clarification.
The text was updated successfully, but these errors were encountered: