recursion problem

Uwe Schmitt schmitt at num.uni-sb.de
Mon Sep 17 13:07:44 EDT 2001


Duncan Booth <duncan at nospamrcp.co.uk> wrote:
| Uwe Schmitt <schmitt at num.uni-sb.de> wrote in 
| news:9o51uk$441g6$1 at hades.rz.uni-sb.de:

|> and then i get a message like "None object has no attribute append()"...
|> 
|> 
|> Where does the "None" in the last line come from ? I don't understand
|> this behaviour of my routine. Each return-statement in my
|> script returns a list...
| Nope. One of them returns the result of calling the append method on a 
| list. The append method modifies the list and returns None.
|> 
|> Is this a python bug ? Is it possible that the stack is corrupted ???
|> Or am i just stupid ?
| No, no, and probably also no.

thanks for that fast answer. greetings, uwe.



-- 
Uwe.Schmitt at num.uni-sb.de      Universität des Saarlandes
phone: +49 (0)681/302-2468     Geb. 36.1, Zi. 4.17, PF 151150
                               D-66041  Saarbrücken
http://www.rocksport.de        http://www.rocksport.de/first_ride.mp3




More information about the Python-list mailing list