I'm pretty new to Python and am completely confused by .join() which I have read is the preferred method for concatenating strings.
I try:
strid = repr(595)
print array.array('c', random.sample(string.ascii_letters, 20 - len(strid)))
.tostring().join(strid)
and get something like:
5wlfgALGbXOahekxSs9wlfgALGbXOahekxSs5
Why does it work like this? Shouldn't the '595' just be automatically appended?