2016-06-22 15:10 GMT+02:00 Marco De Paoli :
>
> [...]
>> urlparse('redis://localhost:65535').port
>> > 65535
>> urlparse('redis://localhost:65536').port is None
>> > True
>> >
>>
>> Nell' RFC3986 non è prescritto nessun limite per la porta:
>>
>> port = *DIGIT
>
>
> più prosa
Il giorno 22 giugno 2016 14:43, Manlio Perillo
ha scritto:
> 2016-06-22 12:43 GMT+02:00 Marco De Paoli :
> > pare che urlparse nella lib standard abbia un comportamento un po'
> strano...
> >
> > [...]
> >
> > Daccordo che il port number è un intero a 16-bit, per cui oltre 65535
> non ha
> > sens
Il giorno 22 giugno 2016 12:43, Marco De Paoli ha
scritto:
> pare che urlparse nella lib standard abbia un comportamento un po'
> strano...
>
> Python 2.7.6 (default, Jun 22 2015, 17:58:13)
> [GCC 4.8.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from
Il giorno 22 giugno 2016 14:43, Manlio Perillo
ha scritto:
> 2016-06-22 12:43 GMT+02:00 Marco De Paoli :
> > pare che urlparse nella lib standard abbia un comportamento un po'
> strano...
> >
> > [...]
> >
> > Daccordo che il port number è un intero a 16-bit, per cui oltre 65535
> non ha
> > sens
2016-06-22 12:43 GMT+02:00 Marco De Paoli :
> pare che urlparse nella lib standard abbia un comportamento un po' strano...
>
> [...]
>
> Daccordo che il port number è un intero a 16-bit, per cui oltre 65535 non ha
> senso, però forse mi sarei aspettato un eccezione, mentre invece la port
> oltre un
Il giorno 22 giugno 2016 12:43, Marco De Paoli ha
scritto:
> pare che urlparse nella lib standard abbia un comportamento un po'
> strano...
>
> Python 2.7.6 (default, Jun 22 2015, 17:58:13)
> [GCC 4.8.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from
pare che urlparse nella lib standard abbia un comportamento un po' strano...
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from urlparse import urlparse
>>> u = urlparse('redis://localhost:6380')
>>> u