[issue25472] Typing: Specialized subclasses of generics cannot be unpickled

2015-10-25 Thread Matt Chaput
New submission from Matt Chaput: If I try to pickle and unpickle an object of a class that has specialized a generic superclass, when I try to unpickle I get this error: TypeError: descriptor '__dict__' for 'A' objects doesn't apply to 'B' object Tes

[issue21198] Minor tarfile documentation bug

2014-04-14 Thread Matt Chaput
Matt Chaput added the comment: Oops! Yes, I accidentally included a bunch of other crap. -- ___ Python tracker <http://bugs.python.org/issue21198> ___ ___ Pytho

[issue21198] Minor tarfile documentation bug

2014-04-14 Thread Matt Chaput
Changes by Matt Chaput : Removed file: http://bugs.python.org/file34824/issue21198.patch ___ Python tracker <http://bugs.python.org/issue21198> ___ ___ Python-bugs-list m

[issue20491] textwrap: Non-breaking space not honored

2014-04-14 Thread Matt Chaput
Matt Chaput added the comment: Patch on top of dbudinova's that attempts to replace the concatenation of strings with a verbose regex. -- nosy: +maatt Added file: http://bugs.python.org/file34827/issue20491_verbose.patch ___ Python tracker

[issue21146] update gzip usage examples in docs

2014-04-14 Thread Matt Chaput
Matt Chaput added the comment: The patch looks good to me. -- nosy: +maatt ___ Python tracker <http://bugs.python.org/issue21146> ___ ___ Python-bugs-list mailin

[issue21198] Minor tarfile documentation bug

2014-04-14 Thread Matt Chaput
Matt Chaput added the comment: Simple patch to remove the underscore in tarfile.rst. -- keywords: +patch nosy: +maatt Added file: http://bugs.python.org/file34824/issue21198.patch ___ Python tracker <http://bugs.python.org/issue21

[issue6623] Lib/ftplib.py Netrc class should be removed.

2014-04-14 Thread Matt Chaput
Matt Chaput added the comment: This patch is the same as my previous one, except instead of removing Netrc usage from the ftplib.test() function, it replaces it with the netrc.netrc object. Note that there are no existing tests for the ftplib.test() function. Also did some very minor cleanups

[issue6623] Lib/ftplib.py Netrc class should be removed.

2014-04-13 Thread Matt Chaput
Matt Chaput added the comment: Created patch to remove the Netrc class and its unit tests (for Python 3.5). -- nosy: +maatt Added file: http://bugs.python.org/file34806/remove_Netrc_class.patch ___ Python tracker <http://bugs.python.org/issue6

[issue11240] Running unit tests in a command line tool leads to infinite loop with multiprocessing on Windows

2014-03-04 Thread Matt Chaput
Matt Chaput added the comment: IIRC the root issue turned out to be that when you execute any multiprocessing statements at the module/script level on Windows, you need to put it under if __name__ == "__main__", otherwise it will cause infinite spawning. I think this is mentio

[issue14447] marshal.load() reads entire remaining file instead of just next value

2012-03-29 Thread Matt Chaput
New submission from Matt Chaput : In Python 3.2, if you write several values to a file with multiple calls to marshal.dump(), and then try to read them back, the first marshal.load() returns the first value, but reads to the end of the file, so subsequent calls to marshal.load() raise an

[issue12986] Using getrandbits() in uuid.uuid4() is faster and more readable

2011-09-16 Thread Matt Chaput
Matt Chaput added the comment: Passed all tests OK. -- ___ Python tracker <http://bugs.python.org/issue12986> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2636] Adding a new regex module (compatible with re)

2011-09-15 Thread Matt Chaput
Matt Chaput added the comment: Not sure if this is better as a separate feature request or a comment here, but... the new version of .NET includes an option to specify a time limit on evaluation of regexes (not sure if this is a feature in other regex libs). This would be useful especially

[issue12986] Using getrandbits() in uuid.uuid4() is faster and more readable

2011-09-15 Thread Matt Chaput
New submission from Matt Chaput : Currently the 'uuid' module uses os.urandom (in the absence of a system UUID generation function) to generate random UUIDs in the uuid.uudi4() function. This patch changes the implementation of uuid4() to use random.getrandbits() as the source of

[issue12870] Regex object should have introspection methods

2011-09-07 Thread Matt Chaput
Matt Chaput added the comment: Yes, it's an optimization of my code, not the regex, as I said. Believe me, it's not premature. I've listed two general use cases for the two methods. To me it seems obvious that having to test a large number of regexes against a string, and h

[issue12870] Regex object should have introspection methods

2011-09-06 Thread Matt Chaput
Matt Chaput added the comment: Ezio, no offense, but I think it's safe to say you've completely misunderstood this bug. It is not about "explaining what a regex matches" or optimizing the regex. Read the last sentences of the two paragraphs explaining the proposed metho

[issue12870] Regex object should have introspection methods

2011-08-31 Thread Matt Chaput
New submission from Matt Chaput : Several times in the recent past I've wished for the following methods on the regular expression object. These would allow me to speed up search and parsing code, by limiting the number of regex matches I need to try. literal_prefix(): Returns any li

[issue11240] Running unit tests in a command line tool leads to infinite loop with multiprocessing on Windows

2011-02-18 Thread Matt Chaput
Matt Chaput added the comment: If I do "c:\python27\python run_nose.py" it works correctly. If I do "nosetests" I get the process explosion. Maybe the bug is in how distutils and nose work from the command line? I'm confused. -- _

[issue11240] Running unit tests in a command line tool leads to infinite loop with multiprocessing on Windows

2011-02-18 Thread Matt Chaput
Matt Chaput added the comment: I don't know what to tell you... to the best of my knowledge there's absolutely no way for my code to kick off the entire test suite -- I always do that through PyDev (which doesn't cause the bug, by the way). The closest thing is the boilerplat

[issue11240] Running unit tests in a command line tool leads to infinite loop with multiprocessing on Windows

2011-02-17 Thread Matt Chaput
Matt Chaput added the comment: Thank you, I understand all that, but I don't think you understand the issue. My code is not __main__. I am not starting the test suite. It's the distutils/nose code that's doing that. It seems as if the multiprocessing module is starting new Wi

[issue11240] Running unit tests in a command line tool leads to infinite loop with multiprocessing on Windows

2011-02-17 Thread Matt Chaput
New submission from Matt Chaput : If you start unit tests with a command line such as "python setup.py test" or "nosetests", if the tested code starts a multiprocessing.Process on Windows, each new process will act as if it was started as "python setup.py test&qu

[issue1172711] long long support for array module

2011-01-12 Thread Matt Chaput
Matt Chaput added the comment: This is an important feature to me. Now I get to redo a bunch of code to have two completely different code paths to do the same thing because nobody could be bothered to keep array up-to-date. -- nosy: +mattchaput

[issue2027] Module containing C implementations of common text algorithms

2008-02-07 Thread Matt Chaput
Matt Chaput added the comment: The Porter stemming and Levenshtein edit-distance algorithms are not "fast-moving" nor are they fusion reactors... they've been around forever, and are simple to implement, but are still useful in various common scenarios. I'd say this

[issue2027] Module containing C implementations of common text algorithms

2008-02-06 Thread Matt Chaput
New submission from Matt Chaput: Add a module to the standard library containing fast (C) implementations of common text/language related algorithms, to begin specifically Porter (and perhaps other) stemming and Levenshtein (and perhaps other) edit distance. Both these algorithms are useful