I understand the following:<br><br><span style="background-color:rgb(102,255,153)">In [79]: instansie</span><br style="background-color:rgb(102,255,153)"><span style="background-color:rgb(102,255,153)">instansie</span><br style="background-color:rgb(102,255,153)">
<span style="background-color:rgb(102,255,153)">Out[79]: 'Mangosuthu Technikon'</span><br style="background-color:rgb(102,255,153)"><br style="background-color:rgb(102,255,153)"><span style="background-color:rgb(102,255,153)">In [80]: t = [x.alt_name for x in lys]</span><br style="background-color:rgb(102,255,153)">
<span style="background-color:rgb(102,255,153)">t = [x.alt_name for x in lys]</span><br style="background-color:rgb(102,255,153)"><br style="background-color:rgb(102,255,153)"><span style="background-color:rgb(102,255,153)">In [81]: t</span><br style="background-color:rgb(102,255,153)">
<span style="background-color:rgb(102,255,153)">t</span><br style="background-color:rgb(102,255,153)"><span style="background-color:rgb(102,255,153)">Out[81]: []</span><br style="background-color:rgb(102,255,153)"><br style="background-color:rgb(102,255,153)">
<span style="background-color:rgb(102,255,153)">In [82]: t.append(instansie)</span><br style="background-color:rgb(102,255,153)"><span style="background-color:rgb(102,255,153)">t.append(instansie)</span><br style="background-color:rgb(102,255,153)">
<br style="background-color:rgb(102,255,153)"><span style="background-color:rgb(102,255,153)">In [83]: t</span><br style="background-color:rgb(102,255,153)"><span style="background-color:rgb(102,255,153)">t</span><br style="background-color:rgb(102,255,153)">
<span style="background-color:rgb(102,255,153)">Out[83]: ['Mangosuthu Technikon']</span><br><br>But then why does the following behave like this:<br><br><span style="background-color:rgb(255,102,0)">In [84]: t = [x.alt_name for x in lys].append(instansie)</span><br style="background-color:rgb(255,102,0)">
<span style="background-color:rgb(255,102,0)">t = [x.alt_name for x in lys].append(instansie)</span><br style="background-color:rgb(255,102,0)"><br style="background-color:rgb(255,102,0)"><span style="background-color:rgb(255,102,0)">In [85]: t</span><br style="background-color:rgb(255,102,0)">
<span style="background-color:rgb(255,102,0)">t</span><br style="background-color:rgb(255,102,0)"><br style="background-color:rgb(255,102,0)"><span style="background-color:rgb(255,102,0)">In [86]: type t</span><br style="background-color:rgb(255,102,0)">
<span style="background-color:rgb(255,102,0)">type t</span><br style="background-color:rgb(255,102,0)"><span style="background-color:rgb(255,102,0)">-------> type(t)</span><br style="background-color:rgb(255,102,0)"><span style="background-color:rgb(255,102,0)">Out[86]: NoneType</span><br clear="all">
<br>Regards<br>Johann<br>-- <br>Because experiencing your loyal love is better than life itself, <br>my lips will praise you.  (Psalm 63:3)<br><br>