[issue2631] IMPORT_NAME Documentation is incomplete

2008-04-14 Thread Paul Bonser
New submission from Paul Bonser <[EMAIL PROTECTED]>: The documentation for IMPORT_NAME at http://docs.python.org/lib/bytecodes.html doesn't mention the fact that the instruction requires two parameters to be on the stack. TOS and TOS1 should map to the fromlist and level parame

[issue18873] "Encoding" detected in non-comment lines

2013-08-28 Thread Paul Bonser
New submission from Paul Bonser: lib2to3.pgen2.tokenize:detect_encoding looks for the regex "coding[:=]\s*([-\w.]+)" in the first two lines of the file without first checking if they are comment lines. You can get 2to3 to fail with "SyntaxError: unknown encoding: 0" with