
I'm ready to apply patch 473512 : getopt with GNU style scanning, which adds getopt.gnu_getopt. Any objections? Regards, Martin

Is there a point to adding more cruft to getopt.py now that we're getting Greg Ward's Optik? Also, I happen to hate GNU style getopt. You may call me an old fogey, but I think options should precede other arguments. But other that, no objections. --Guido van Rossum (home page: http://www.python.org/~guido/)

Guido van Rossum <guido@python.org> writes:
Is there a point to adding more cruft to getopt.py now that we're getting Greg Ward's Optik?
Perhaps ease-of-use - people wanting to use GNU getopt style only need to change the function name in their existing application.
Also, I happen to hate GNU style getopt. You may call me an old fogey, but I think options should precede other arguments.
That certainly is debatable. However, since the patch is a pure addition, every application author will have to make the choice herself, and no existing application will break. Regards, Martin

So I'm a neutral 0 on the patch. --Guido van Rossum (home page: http://www.python.org/~guido/)

[Martin v. Loewis]
I'm ready to apply patch 473512 : getopt with GNU style scanning, which adds getopt.gnu_getopt. Any objections?
GNU getopt changes once in a while. Will `getopt.gnu_getopt' track and reflect these changes as they occur? I mean, is it the intent? If yes, the name might be fine. Otherwise, it might be better to name this other `getopt' after some of its properties, instead of using `gnu' as a prefix. If GNU it has to be, maybe it should be capitalised? Some existing modules suggest capitals where underlines would probably have been sufficient, maybe we should use capitals where they are more naturally mandated. Not a big matter for me, but probably worth a thought nevertheless? Have a good day, everybody! -- François Pinard http://www.iro.umontreal.ca/~pinard

pinard@iro.umontreal.ca (François Pinard) writes:
GNU getopt changes once in a while.
In what way? When has it changed last, and what was that change?
Assuming that bug fixes are made to GNU getopt, it would certainly be reasonable to reflect them in getopt.gnu_getopt.
I've no opinion on that except that function names are traditionally all lower-case. I'll ask the author of the patch. Regards, Martin

I'm -1 on capitalizing GNU here -- the module name and function name are all lowercase. --Guido van Rossum (home page: http://www.python.org/~guido/)

I'm ready to apply patch 473512 : getopt with GNU style scanning, which adds getopt.gnu_getopt.
I'm +1 on that. I've written a wrapper by myself a few times. Having it in the library will help. Even with Optik, this should be a small patch, and I don't think getopt will be deprecated any time soon. -- Gustavo Niemeyer [ 2AAC 7928 0FBF 0299 5EB5 60E2 2253 B29A 6664 3A0C ]

Is there a point to adding more cruft to getopt.py now that we're getting Greg Ward's Optik? Also, I happen to hate GNU style getopt. You may call me an old fogey, but I think options should precede other arguments. But other that, no objections. --Guido van Rossum (home page: http://www.python.org/~guido/)

Guido van Rossum <guido@python.org> writes:
Is there a point to adding more cruft to getopt.py now that we're getting Greg Ward's Optik?
Perhaps ease-of-use - people wanting to use GNU getopt style only need to change the function name in their existing application.
Also, I happen to hate GNU style getopt. You may call me an old fogey, but I think options should precede other arguments.
That certainly is debatable. However, since the patch is a pure addition, every application author will have to make the choice herself, and no existing application will break. Regards, Martin

So I'm a neutral 0 on the patch. --Guido van Rossum (home page: http://www.python.org/~guido/)

[Martin v. Loewis]
I'm ready to apply patch 473512 : getopt with GNU style scanning, which adds getopt.gnu_getopt. Any objections?
GNU getopt changes once in a while. Will `getopt.gnu_getopt' track and reflect these changes as they occur? I mean, is it the intent? If yes, the name might be fine. Otherwise, it might be better to name this other `getopt' after some of its properties, instead of using `gnu' as a prefix. If GNU it has to be, maybe it should be capitalised? Some existing modules suggest capitals where underlines would probably have been sufficient, maybe we should use capitals where they are more naturally mandated. Not a big matter for me, but probably worth a thought nevertheless? Have a good day, everybody! -- François Pinard http://www.iro.umontreal.ca/~pinard

pinard@iro.umontreal.ca (François Pinard) writes:
GNU getopt changes once in a while.
In what way? When has it changed last, and what was that change?
Assuming that bug fixes are made to GNU getopt, it would certainly be reasonable to reflect them in getopt.gnu_getopt.
I've no opinion on that except that function names are traditionally all lower-case. I'll ask the author of the patch. Regards, Martin

I'm -1 on capitalizing GNU here -- the module name and function name are all lowercase. --Guido van Rossum (home page: http://www.python.org/~guido/)

I'm ready to apply patch 473512 : getopt with GNU style scanning, which adds getopt.gnu_getopt.
I'm +1 on that. I've written a wrapper by myself a few times. Having it in the library will help. Even with Optik, this should be a small patch, and I don't think getopt will be deprecated any time soon. -- Gustavo Niemeyer [ 2AAC 7928 0FBF 0299 5EB5 60E2 2253 B29A 6664 3A0C ]
participants (5)
-
Guido van Rossum
-
Gustavo Niemeyer
-
Martin v. Loewis
-
martin@v.loewis.de
-
pinard@iro.umontreal.ca