Re: [Tutor] The Whole Tree

2013-06-17 Thread Jim Mooney
On 16 June 2013 22:02, eryksun wrote: > http://docs.python.org/3/library/abc > http://docs.python.org/3/library/numbers Thanks. My left eye burns when I stare at the monitor too long, so I think I'll print out the Data Model and those for bathroom reading. I can be the Potty Progammer ;') Jim _

Re: [Tutor] The Whole Tree

2013-06-16 Thread eryksun
On Sun, Jun 16, 2013 at 3:17 PM, Steven D'Aprano wrote: > > plus some more exotic built-ins, which I haven't shown. Some types that didn't make it into Steven's list: zip map filter enumerate reversed memoryview slice ellipsis, type(...) super classmetho

Re: [Tutor] The Whole Tree

2013-06-16 Thread Dave Angel
On 06/16/2013 01:21 PM, Jim Mooney wrote: My first impression of Python was that it had dynamic types but didn't mix them. so if I was wrong on equality, is there a general rule of what different types can still be equal? Is it an inheritance thing? Several other good replies, but I'll give my

Re: [Tutor] The Whole Tree

2013-06-16 Thread Oscar Benjamin
On 16 June 2013 20:49, Jim Mooney wrote: > On 16 June 2013 11:32, Andreas Perstinger wrote: > >> I'm not sure if that's what you are looking for but the language reference >> describes the standard type hierarchy: >> http://docs.python.org/3/reference/datamodel.html#the-standard-type-hierarchy >

Re: [Tutor] The Whole Tree

2013-06-16 Thread Jim Mooney
On 16 June 2013 11:32, Andreas Perstinger wrote: > I'm not sure if that's what you are looking for but the language reference > describes the standard type hierarchy: > http://docs.python.org/3/reference/datamodel.html#the-standard-type-hierarchy Yes, that's what I meant. I was thinking of an ac

Re: [Tutor] The Whole Tree

2013-06-16 Thread Steven D'Aprano
On 17/06/13 03:21, Jim Mooney wrote: My first impression of Python was that it had dynamic types but didn't mix them. so if I was wrong on equality, is there a general rule of what different types can still be equal? Is it an inheritance thing? The general rule is, types can define equality wha

Re: [Tutor] The Whole Tree

2013-06-16 Thread Andreas Perstinger
On 16.06.2013 19:21, Jim Mooney wrote: Speaking of which, I put "Python class hierarchy" in Google but just got a bunch of specific wheeze. What I want is a list of the whole tree. Is there such, or a way I can generate it? I'm not sure if that's what you are looking for but the language refer

Re: [Tutor] The Whole Tree

2013-06-16 Thread Alan Gauld
On 16/06/13 18:21, Jim Mooney wrote: My first impression of Python was that it had dynamic types but didn't mix them. Umm yes, sort of. It depends on how you define some of those terms though. "mix them"??? so if I was wrong on equality, is there a general rule of what different types can

[Tutor] The Whole Tree

2013-06-16 Thread Jim Mooney
My first impression of Python was that it had dynamic types but didn't mix them. so if I was wrong on equality, is there a general rule of what different types can still be equal? Is it an inheritance thing? Speaking of which, I put "Python class hierarchy" in Google but just got a bunch of specif