Python Forum
Lists: concatenate vs. extend vs. chain
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lists: concatenate vs. extend vs. chain
#6
That won't work in Python 3.x, because you can't add or extend ranges. It only works in 2.x because one and two are lists. I think that's also a large part of the performance gain: chain isn't creating a list.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Lists: concatenate vs. extend vs. chain - by buran - Oct-09-2017, 08:44 AM
RE: Lists: concatenate vs. extend vs. chain - by ichabod801 - Oct-09-2017, 03:21 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020