problems defining an empty list

Sean 'Shaleh' Perry shalehperry at attbi.com
Wed Sep 25 03:40:12 EDT 2002


On Wednesday 25 September 2002 00:06, Manuel Hendel wrote:
> This is what I'm trying to do:
>
>     # empty list for lines per domain
>     linesperdomain = []
>     linesperdomain = [domain, domainlines]
>     print linesperdomain
>
> domainlines is also a list.
>
> Error:
>
> linesperdomain = []
>                   ^
> IndentationError: unindent does not match any outer indentation level
>

it sounds like you have a hidden piece of whitespace.  Perhaps the code is 
indented when it should not be?  If the code is not in a loop, class, if 
structure, etc then it should not be indented.




More information about the Python-list mailing list