Sto provando a formare URL da parti diverse e ho difficoltà a capire il comportamento di questo metodo. Per esempio:Python: confusioni con l'urljoin
Python 3.x
from urllib.parse import urljoin
>>> urljoin('some', 'thing')
'thing'
>>> urljoin('http://some', 'thing')
'http://some/thing'
>>> urljoin('http://some/more', 'thing')
'http://some/thing'
>>> urljoin('http://some/more/', 'thing') # just a tad/after 'more'
'http://some/more/thing'
urljoin('http://some/more/', '/thing')
'http://some/thing'
si può spiegare l'esatto comportamento di questo metodo?
Nota a chi si imbatte in questa domanda: l'istruzione di importazione precedente è per Python 3.x. Usa "da urlparse import urljoin" per python 2.x. –