Re: Why does super(bool) give None

2020-04-23 Thread Chris Angelico
On Fri, Apr 24, 2020 at 4:16 PM Cecil Westerhof wrote: > > issubclass(bool, int) gives True > but > super(bool) gives > > Do I not understand the meaning of super, or is this inconsistent? > > (Until now I have not down much work with classes in Python.) > One-arg super is an unbound object, and

Why does super(bool) give None

2020-04-23 Thread Cecil Westerhof
issubclass(bool, int) gives True but super(bool) gives Do I not understand the meaning of super, or is this inconsistent? (Until now I have not down much work with classes in Python.) -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof -- https://ma

Re: How to test the data type of a variable

2020-04-23 Thread Souvik Dutta
He is talking about this. https://mail.python.org/mailman/listinfo/python-list Scroll down to the bottom of the page and you will find overview of all.. Souvik flutter dev On Fri, Apr 24, 2020, 7:50 AM Deac-33 Lancaster wrote: > On Thursday, April 23, 2020 at 7:14:16 PM UTC-7, DL Neil wrote

Re: How to test the data type of a variable

2020-04-23 Thread Deac-33 Lancaster
On Thursday, April 23, 2020 at 7:14:16 PM UTC-7, DL Neil wrote: > ... Is there a way to see all of the groups? > > Yes! Follow the link at the bottom of this email msg. Then follow the > link at the bottom of this list's web-page ... > -- > Regards =dn Sorry, I don't see the link. -deac33 -- h

Re: How to test the data type of a variable

2020-04-23 Thread DL Neil via Python-list
... Is there a way to see all of the groups? Yes! Follow the link at the bottom of this email msg. Then follow the link at the bottom of this list's web-page ... -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: How to test the data type of a variable

2020-04-23 Thread Deac-33 Lancaster
On Thursday, April 23, 2020 at 7:11:47 PM UTC-7, DL Neil wrote: > On 24/04/20 1:24 PM, Deac-33 Lancaster wrote: > > I'm aware that you can find the type of a variable with > > type(var) > > > > But are there Boolean operators in Python3.8 to test the data type, e.g. > >is_floate(var) > >

Re: How to test the data type of a variable

2020-04-23 Thread DL Neil via Python-list
On 24/04/20 1:24 PM, Deac-33 Lancaster wrote: I'm aware that you can find the type of a variable with type(var) But are there Boolean operators in Python3.8 to test the data type, e.g. is_floate(var) is_string(var) etc. ? There is also a 'pythonic' answer (what is the 'Python way'?)

Re: How to test the data type of a variable

2020-04-23 Thread Deac-33 Lancaster
On Thursday, April 23, 2020 at 6:47:04 PM UTC-7, DL Neil wrote: > On 24/04/20 1:24 PM, Deac-33 Lancaster wrote: > > I'm aware that you can find the type of a variable with > > type(var) > > > > But are there Boolean operators in Python3.8 to test the data type, e.g. > >is_floate(var) > >

Re: How to test the data type of a variable

2020-04-23 Thread Deac-33 Lancaster
On Thursday, April 23, 2020 at 6:46:14 PM UTC-7, Alan Bawden wrote: > Deac-33 Lancaster writes: > > > I'm aware that you can find the type of a variable with > >type(var) > > (Strictly speaking, variables don't have types. This gives you the type of > the variable's current value. But we

Re: How to test the data type of a variable

2020-04-23 Thread Alan Bawden
Deac-33 Lancaster writes: > I'm aware that you can find the type of a variable with >type(var) (Strictly speaking, variables don't have types. This gives you the type of the variable's current value. But we know what you meant.) > But are there Boolean operators in Python3.8 to test the

Re: How to test the data type of a variable

2020-04-23 Thread Deac-33 Lancaster
ChrisA, Most awesome, thank you very much, I just couldn't find that in the docs. Still learning! Much thanks, -deac33 -- https://mail.python.org/mailman/listinfo/python-list

Re: How to test the data type of a variable

2020-04-23 Thread DL Neil via Python-list
On 24/04/20 1:24 PM, Deac-33 Lancaster wrote: I'm aware that you can find the type of a variable with type(var) But are there Boolean operators in Python3.8 to test the data type, e.g. is_floate(var) is_string(var) etc. ? You are close! https://docs.python.org/3/library/functions.htm

Re: How to test the data type of a variable

2020-04-23 Thread Chris Angelico
On Fri, Apr 24, 2020 at 11:26 AM Deac-33 Lancaster wrote: > > I'm aware that you can find the type of a variable with >type(var) > > But are there Boolean operators in Python3.8 to test the data type, e.g. > is_floate(var) > is_string(var) > etc. ? > > (If this is the wrong group for this

How to test the data type of a variable

2020-04-23 Thread Deac-33 Lancaster
I'm aware that you can find the type of a variable with type(var) But are there Boolean operators in Python3.8 to test the data type, e.g. is_floate(var) is_string(var) etc. ? (If this is the wrong group for this question, what group should I use.) thanks much, -deac33 -- https://mail.p

Re: Problem in importing pandas

2020-04-23 Thread MRAB
On 2020-04-23 18:57, Amit Jain wrote: Dear Sir/Madam, After *successful installation of PIP for PANDAS *when I try to *import pandas*, It gives error as given below - import pandas as pd Traceback (most recent call last): File "", line 1, in import pandas as pd File "C:\Users\Ami

Problem in importing pandas

2020-04-23 Thread Amit Jain
Dear Sir/Madam, After *successful installation of PIP for PANDAS *when I try to *import pandas*, It gives error as given below - >>> import pandas as pd Traceback (most recent call last): File "", line 1, in import pandas as pd File "C:\Users\Amit\AppData\Local\Programs\Python\Python38-3

Re: news.bbs.nz is spewing duplicates to comp.lang.python

2020-04-23 Thread Skip Montanaro
> > Have tracked-down and communicated with the site owner/operator. He > advised a loop-back problem which has now been blocked. > I believe this has been corrected in the past, more than once, though my memory is a bit hazy now. It's not clear to me why this particular site keeps messing up thei

Re: news.bbs.nz is spewing duplicates to comp.lang.python

2020-04-23 Thread DL Neil via Python-list
Have tracked-down and communicated with the site owner/operator. He advised a loop-back problem which has now been blocked. -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list