list.extend([]) Question

Dan Brown fsenzeru at gmail.com
Sat Jan 30 16:32:41 CET 2010


Why does extending a list with the empty list result in None?  It
seems very counterintuitive to me, at least --- I expected ['a'].extend
([]) to result in ['a'], not None.



More information about the Python-list mailing list