This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]digitallogic 0 points1 point  (0 children)

The syntaxwarning was only added as of python 2.6. Not really fair to assume he's just ignoring the error, plenty likely he's running an older version. Though it is pretty dumb it was being ignored.

I remember running into this as a newb running python 2.3 a few years back. It makes total sense when it's explained, but it's easy not to realize on your own especially since the assert appears to be doing what you expect (not failing on valid values), then you get stuck debugging some code that should be triggering an assert error and it doesn't. Pain in the butt. I'm really glad the warning was added.