Re: [Python-Dev] Naming conventions in Py3K

2005-12-30 Thread Thomas Wouters
On Fri, Dec 30, 2005 at 10:16:43AM -0500, Barry Warsaw wrote: > On Thu, 2005-12-29 at 22:29 -0600, Ka-Ping Yee wrote: > > In a fair number of cases, Python doesn't follow its own recommended > > naming conventions. Changing these things would break backward > > compatibility, so they are out of th

Re: [Python-Dev] Naming conventions in Py3K

2005-12-30 Thread Guido van Rossum
I think the discussion is coming to a clear conclusion here not to do this (except for the standard library classes like anydbm.error). I'm piping in with my own -1 (for all the sane reasons) to hopefully stop this thread quickly. We don't need more noise here. --Guido On 12/29/05, Ka-Ping Yee <[

Re: [Python-Dev] Naming conventions in Py3K

2005-12-30 Thread Barry Warsaw
On Thu, 2005-12-29 at 22:29 -0600, Ka-Ping Yee wrote: > In a fair number of cases, Python doesn't follow its own recommended > naming conventions. Changing these things would break backward > compatibility, so they are out of the question for Python 2.*, but > it would be nice to keep these in min

Re: [Python-Dev] Naming conventions in Py3K

2005-12-30 Thread Ka-Ping Yee
On Fri, 30 Dec 2005, Fred L. Drake, Jr. wrote: > On Friday 30 December 2005 06:31, Ka-Ping Yee wrote: > > Is there a really good reason to do that? It's not obvious to me. > > No more than there is to rename None to none or NONE. For that, there is a reason: None is not a class. -- ?!ng __

Re: [Python-Dev] Naming conventions in Py3K

2005-12-30 Thread Michael Chermside
?!ng proposes: > Constants in all caps: > NONE, TRUE, FALSE, ELLIPSIS > > Classes in initial-caps: > Object, Int, Float, Str, Unicode, Set, List, Tuple, Dict, > and lots of classes in the standard library, e.g. > anydbm.error, csv.excel, imaplib.error, mutex.

Re: [Python-Dev] Naming conventions in Py3K

2005-12-30 Thread Fred L. Drake, Jr.
On Friday 30 December 2005 06:31, Ka-Ping Yee wrote: > Is there a really good reason to do that? It's not obvious to me. No more than there is to rename None to none or NONE. -Fred -- Fred L. Drake, Jr. ___ Python-Dev mailing list Python-Dev@p

Re: [Python-Dev] Naming conventions in Py3K

2005-12-30 Thread Stephan Richter
On Friday 30 December 2005 06:10, Ka-Ping Yee wrote: > > In fact, I like it that the basic Python functions > > I didn't say anything about renaming functions.  Functions in lowercase > are one of the naming conventions that Python does follow consistently. well, it is not consistent when looking

Re: [Python-Dev] Naming conventions in Py3K

2005-12-30 Thread Martin v. Löwis
Ka-Ping Yee wrote: > On Fri, 30 Dec 2005, "Martin v. Löwis" wrote: > >>Ka-Ping Yee wrote: >> >>>That would be cool. If so, it would make sense for them to be all in >>>lowercase. >> >>And rename None to null in the process :-) > > > Is there a really good reason to do that? It's not obvious to

Re: [Python-Dev] Naming conventions in Py3K

2005-12-30 Thread Ka-Ping Yee
On Fri, 30 Dec 2005, "Martin v. Löwis" wrote: > Ka-Ping Yee wrote: > > That would be cool. If so, it would make sense for them to be all in > > lowercase. > > And rename None to null in the process :-) Is there a really good reason to do that? It's not obvious to me. -- ?!ng __

Re: [Python-Dev] Naming conventions in Py3K

2005-12-30 Thread Martin v. Löwis
Ka-Ping Yee wrote: >>Actually, I thought some of them would become reserved words in P3k, >>anyway. > > > That would be cool. If so, it would make sense for them to be all in > lowercase. And rename None to null in the process :-) Regards, Martin ___

Re: [Python-Dev] Naming conventions in Py3K

2005-12-30 Thread Ka-Ping Yee
Brett Cannon wrote: > I am fine with changing the built-in types, but changing the built-in > singletons just looks *really* odd to me. So odd that I just don't > want to see them changed. I mean when I think of constants, I think > of a variable that references an object and that reference never

Re: [Python-Dev] Naming conventions in Py3K

2005-12-30 Thread Ka-Ping Yee
On Fri, 30 Dec 2005, Reinhold Birkenfeld wrote: > Ka-Ping Yee wrote: > > Constants in all caps: > > NONE, TRUE, FALSE, ELLIPSIS > > That's ugly. I know it looks ugly to you now. But there's a good reason why we use capitalization for class names -- anyone reading code who comes across

Re: [Python-Dev] Naming conventions in Py3K

2005-12-30 Thread Martin v. Löwis
Brett Cannon wrote: > I am fine with changing the built-in types, but changing the built-in > singletons just looks *really* odd to me. So odd that I just don't > want to see them changed. I mean when I think of constants, I think > of a variable that references an object and that reference never

Re: [Python-Dev] Naming conventions in Py3K

2005-12-30 Thread Reinhold Birkenfeld
Ka-Ping Yee wrote: > In a fair number of cases, Python doesn't follow its own recommended > naming conventions. Changing these things would break backward > compatibility, so they are out of the question for Python 2.*, but > it would be nice to keep these in mind for Python 3K. > > Constants

Re: [Python-Dev] Naming conventions in Py3K

2005-12-29 Thread Brett Cannon
On 12/29/05, Ka-Ping Yee <[EMAIL PROTECTED]> wrote: > In a fair number of cases, Python doesn't follow its own recommended > naming conventions. Changing these things would break backward > compatibility, so they are out of the question for Python 2.*, but > it would be nice to keep these in mind

[Python-Dev] Naming conventions in Py3K

2005-12-29 Thread Ka-Ping Yee
In a fair number of cases, Python doesn't follow its own recommended naming conventions. Changing these things would break backward compatibility, so they are out of the question for Python 2.*, but it would be nice to keep these in mind for Python 3K. Constants in all caps: NONE, TRU