4 ms·
That works but it's kind of a pain that the natural pythonic syntax: ['a'].extend(some-list) doesn't return a list.
by sureshv 14y ago
That works but it's kind of a pain that the natural pythonic syntax: ['a'].extend(some-list) doesn't return a list.
- andylei 14y agothat is not the natural pythonic syntax. for concatenating lists, "+" is standard
- sureshv 14y agoThanks - looks like plus operator concat was in there in the beginning as well: http://docs.python.org/release/1.4/lib/node10.html#SECTION00315000000000000000 http://docs.python.org/release/1.4/lib/node10.html#SECTION00...