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
Matt Chaput added the comment:
Oops! Yes, I accidentally included a bunch of other crap.
--
___
Python tracker
<http://bugs.python.org/issue21198>
___
___
Pytho
Changes by Matt Chaput :
Removed file: http://bugs.python.org/file34824/issue21198.patch
___
Python tracker
<http://bugs.python.org/issue21198>
___
___
Python-bugs-list m
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
Matt Chaput added the comment:
The patch looks good to me.
--
nosy: +maatt
___
Python tracker
<http://bugs.python.org/issue21146>
___
___
Python-bugs-list mailin
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
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
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
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
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
Matt Chaput added the comment:
Passed all tests OK.
--
___
Python tracker
<http://bugs.python.org/issue12986>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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.
--
_
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
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
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
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
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
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
23 matches
Mail list logo