Hi Antonio,

This is a strange error ! I have tried to recreate it but the problem I'm
having is that both bpython and regular python give me this result:

>>> w = whois.whois('google.com')
>>> w.expiration_date
[]

i.e. an empty list. Can you tell me what version of python-whois you're
using ?

Thanks,


On 29 May 2013 11:15, Antonio Mignolli <[email protected]> wrote:

> Hi people, is it possible something's wrong with type() function?
>
> I'm running bpython 0.11-1 (debian package).
>
> I was using the python-whois module.
> Here the issue, compared to other python interpreter:
>
> python:
> >>> w=whois.whois('google.com')
> >>> w.expiration_date
> datetime.datetime(2020, 9, 14, 0, 0)
>
>
> ipython:
> In [9]: w=whois.whois('google.com')
> In [10]: type(w.expiration_date)
> Out[10]: datetime.datetime
>
> bpython:
> >>> w=whois.whois('google.com')
> >>> type(w.expiration_date)
> <type 'str'>
>
> Why a STRING where others correctly says it's a datetime object?
>
> Thanks.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "bpython" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/bpython?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"bpython" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/bpython?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to