Re: [Python-Dev] standard library mimetypes module pathologically broken?

2009-08-02 Thread Jacob Rus
Jacob Rus wrote: Brett Cannon wrote: Jacob Rus wrote: At the very least, I think some changes can be made to this code without altering its basic function, which would clean up the actual mime types it returns, comment the exceptions to Apache and explain why they're there, and make the

Re: [Python-Dev] standard library mimetypes module pathologically broken?

2009-08-02 Thread Michael Foord
Jacob Rus wrote: Jacob Rus wrote: Brett Cannon wrote: Jacob Rus wrote: At the very least, I think some changes can be made to this code without altering its basic function, which would clean up the actual mime types it returns, comment the exceptions to Apache and explain why

Re: [Python-Dev] standard library mimetypes module pathologically broken?

2009-08-02 Thread Paul Moore
2009/8/2 Michael Foord fuzzy...@voidspace.org.uk: [...] In this version, tests would want to call the _init_singleton() function to reset to defaults. [...] Please post the patches to the Python bug tracker:   http://bugs.python.org Thanks The patch you post should also patch the test

Re: [Python-Dev] standard library mimetypes module pathologically broken?

2009-08-02 Thread Robert Lehmann
On Sat, 01 Aug 2009 23:37:18 -0700, Jacob Rus wrote: Here is a somewhat more substantively changed version. This one does away with the 'inited' flag and the 'init' function, which might be impossible given that their documented (though I would be extremely surprised if anyone calls them in

Re: [Python-Dev] [regex] memory leak

2009-08-02 Thread MRAB
John Machin wrote: Hi Matthew, Your post in c.l.py about your re rewrite didn't mention where to report bugs etc so I dug this address out of Google Groups ... Environment: Python 2.6.2, Windows XP SP3, your latest (29 July) regex from the Python bugtracker. Problem is repeated calls of

Re: [Python-Dev] pylinting the stdlib

2009-08-02 Thread Mark Dickinson
On Sat, Aug 1, 2009 at 11:40 PM, Vincent Legollvincent.leg...@gmail.com wrote: Hello, I've fed parts of the stdlib to pylint and after some filtering there appears to be some things that looks strange, I've filled a few bugs to the tracker for them. buglist snipped Is this useless and

[Python-Dev] standard library mimetypes module pathologically broken?

2009-08-02 Thread Jim Jewett
[It may be worth creating a patch; I think most of these comments would be better on the bug-tracker.] (1) In a few cases, it looked like you were changing parameter names between files and filenames. This might break code that was calling it with keyword arguments -- as I typically would for

Re: [Python-Dev] standard library mimetypes module pathologically broken?

2009-08-02 Thread Jacob Rus
Jim Jewett wrote: [It may be worth creating a patch; I think most of these comments would be better on the bug-tracker.] I'm going to do that shortly. (1)  In a few cases, it looked like you were changing parameter names between files and filenames.  This might break code that was calling

Re: [Python-Dev] standard library mimetypes module pathologically broken?

2009-08-02 Thread Jacob Rus
Robert Lehmann wrote: Jacob Rus wrote: Here is a somewhat more substantively changed version. This one does away with the 'inited' flag and the 'init' function, which might be impossible given that their documented (though I would be extremely surprised if anyone calls them in third-party

Re: [Python-Dev] standard library mimetypes module pathologically broken?

2009-08-02 Thread Glyph Lefkowitz
On Sun, Aug 2, 2009 at 4:17 PM, Jacob Rus jacobo...@gmail.com wrote: Robert Lehmann wrote: Jacob Rus wrote: Here is a somewhat more substantively changed version. This one does away with the 'inited' flag and the 'init' function, which might be impossible given that their documented