News for hackers. Stuff that matters.
Re:What is the most intrusive wart on your favourite program... by cabalamat on Monday December 08, 2008 @07:46AM (#389789)
I agree. Join should word the same as split:

   >>> "abcbe".split("b")
   ['a', 'c', 'e']
So to get back the original string you should be able to say:

   ['a', 'c', 'e'].join("b")   #!!! WRONG !!!
but this doesn't work and instead you have to say:

   >>> "b".join(['a', 'c', 'e'])
   'abcbe'

There are no comments on this comment yet.