4 ms·
I had a LOT of headache trying to make a posix compliant script with that. Output to stdout, err to stderr, nothing too esoteric. The docs even have one section
by gcb 15y ago
I had a LOT of headache trying to make a posix compliant script with that. Output to stdout, err to stderr, nothing too esoteric. The docs even have one section devoted only to that, yet was the most unpythonic time I've spent with the language... And I've done a lot of string manipulation :)
And ok, I'm dumb. But hundreds of others struggling with the same thing at stackexchange might mean something.
- jjguy 15y agoThis page http://wiki.python.org/moin/LoggingPackage http://wiki.python.org/moin/LoggingPackage gave me a lot of indirect insight into why the logging module is the way it is. The user "VinaySajip" is the author and maintainer of the package.
- ceol 15y agoHe says he's receptive[0] but then dismisses every con listed with either, "Suggest an alternative,"[1] or, "Give me some form of evidence that I won't dismiss."[2] As another user said,[3] there's just far too much going on when it should default to stderr and let the dev worry about delivery. [0]: http://wiki.python.org/moin/LoggingPackage#line-101 http://wiki.python.org/moin/LoggingPackage#line-101 [1]: http://wiki.python.org/moin/LoggingPackage#line-32 http://wiki.python.org/moin/LoggingPackage#line-32 [2]: http://wiki.python.org/moin/LoggingPackage#line-50 http://wiki.python.org/moin/LoggingPackage#line-50 [3]: http://news.ycombinator.com/item?id=3812945 http://news.ycombinator.com/item?id=3812945