Author dbinger
Recipients dbinger
Date 2008-10-05.22:15:17
SpamBayes Score 7.47212e-07
Marked as misclassified No
Message-id <>
The parser module validates st instances that it builds from 
list or tuple structures.  This validation fails for parse
trees that include relative imports because it fails to correctly
count the dots that immediately follow the "from" token.

Here is a test and a patch.

This bug probably extends back to all Python 2 versions that support
relative import, but I have not checked it.

Fixing this has immediate value to me because the QPY package 
depends on the parser module to convert list structures into st 
instances.  (In the long run, I wonder if the verification
part of the sequence2st() function could be made optional or dropped,
since the current pattern requires to parser module to be updated
every time the language grammer changes.)
Date User Action Args
2008-10-05 22:15:20dbingersetrecipients: + dbinger
2008-10-05 22:15:20dbingersetmessageid: <>
2008-10-05 22:15:19dbingerlinkissue4048 messages
2008-10-05 22:15:18dbingercreate