Re: [Python-Dev] Organization of ABC modules

2008-01-27 Thread Nick Coghlan
Guido van Rossum wrote: > I note that at least for built-in types there will be the naming > convention that concrete implementation classes are all lowercase, > like int, float, list, namedtuple, defaultdict, and so on, while the > ABCs all have a Capitalized[Words] name: Hashable, Number, Real, >

Re: [Python-Dev] Organization of ABC modules

2008-01-27 Thread Guido van Rossum
On Jan 27, 2008 12:29 AM, Jeroen Ruigrok van der Werven <[EMAIL PROTECTED]> wrote: > This will be a bikeshed argument until Guido speaks out his > preference/decision I guess. > > But isn't it a more common solution to name the base class just Number and > derive from it by means of using Base.Numb

Re: [Python-Dev] Organization of ABC modules

2008-01-27 Thread Jeroen Ruigrok van der Werven
-On [20080127 03:25], Terry Reedy ([EMAIL PROTECTED]) wrote: >I *think* I would prefer to any of these either >ANumber or >aNumber, >which one can read as either an abbreviation of Abstract Number or simply a >contraction of 'a Number' (a Real, an Integral, etc) taken to mean the >abstraction. T

Re: [Python-Dev] Organization of ABC modules

2008-01-26 Thread Terry Reedy
"Nick Coghlan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Raymond Hettinger wrote: | > A prefix would be better. | | I initially thought that, but found the suffix to be the least annoying | of the ideas I had for denoting abstract base classes. To try and give || INumber || AB

Re: [Python-Dev] Organization of ABC modules

2008-01-26 Thread Nick Coghlan
Raymond Hettinger wrote: >> but if Guido likes the idea of a standard naming convention (such as >> the ABC suffix) for classes that use the ABCMeta metaclass, I'd >> certainly be happy to go through and update the affected classes and >> the code which refers to them. > > A prefix would be bet

Re: [Python-Dev] Organization of ABC modules

2008-01-25 Thread Raymond Hettinger
> but if Guido > likes the idea of a standard naming convention (such as the ABC suffix) > for classes that use the ABCMeta metaclass, I'd certainly be happy to go > through and update the affected classes and the code which refers to them. A prefix would be better. Raymond __

Re: [Python-Dev] Organization of ABC modules

2008-01-25 Thread Nick Coghlan
Jeffrey Yasskin wrote: > That's a good point. Someone already convinced me to name the test for > numbers.py, test_abstract_numbers.py, so renaming the module makes > sense too, although I agree that collections, which contains some > concrete classes, should keep its current name. If others agree,

Re: [Python-Dev] Organization of ABC modules

2008-01-25 Thread Jeffrey Yasskin
On Jan 25, 2008 9:31 PM, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Raymond Hettinger wrote: > >> If you want ABCs to be more easily recognizable > >> as such, perhaps we could use a naming convention, > > > > Essentially, that's all I was asking for. It doesn't > > really matter to me whether numb

Re: [Python-Dev] Organization of ABC modules

2008-01-25 Thread Nick Coghlan
Raymond Hettinger wrote: >> If you want ABCs to be more easily recognizable >> as such, perhaps we could use a naming convention, > > Essentially, that's all I was asking for. It doesn't > really matter to me whether numbers.py gets called > abc_numbers or abc.numbers. Either one would be an >

Re: [Python-Dev] Organization of ABC modules

2008-01-25 Thread Steve Holden
Raymond Hettinger wrote: >> If you want ABCs to be more easily recognizable >> as such, perhaps we could use a naming convention, > > Essentially, that's all I was asking for. It doesn't > really matter to me whether numbers.py gets called > abc_numbers or abc.numbers. Either one would be an >

Re: [Python-Dev] Organization of ABC modules

2008-01-25 Thread Raymond Hettinger
> If you want ABCs to be more easily recognizable > as such, perhaps we could use a naming convention, Essentially, that's all I was asking for. It doesn't really matter to me whether numbers.py gets called abc_numbers or abc.numbers. Either one would be an improvement. Raymond __

Re: [Python-Dev] Organization of ABC modules

2008-01-25 Thread Guido van Rossum
On Jan 25, 2008 3:15 PM, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > All of the abstract base classes should be collected in one place. I propose > that the modules be collected into a package so that we can write: > >import abc.numbers >import abc.collections > . . . > > Besides c