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 in

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 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 a

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 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
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: 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. That was

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. fdrake at acm.org ___ Python-Dev mailing

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 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 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 the

[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,

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 for