[issue12554] Failed imports clean up module, but not sub modules

2011-07-13 Thread Calvin Spealman
New submission from Calvin Spealman : I came across this behavior when it was related to the shadowing of a small typo bug and took me forever to find. In my case, the original error was shadowed in a way that is unrelated to this bug, but lead to the module being imported twice (because it

[issue11683] unittest discover should recurse into packages which are already in sys.path

2011-03-26 Thread Calvin Spealman
Calvin Spealman added the comment: Doesn't it already go into multiple directories? Isn't that a requirement of a recursive directory walk, which I understand discover does? I am also thinking the current documentation just doesn't make these details clear, so should that be

[issue11683] unittest discover should recurse into packages which are already in sys.path

2011-03-26 Thread Calvin Spealman
New submission from Calvin Spealman : For example, if I had a project with a "src/" directory and inside that directory is a package named "foo", then I can run "python3 -m unittest discover -s ." and the tests will be not be found, but I can run "python3 -m

[issue5191] Partial function application 'from the right'

2009-02-09 Thread Calvin Spealman
Changes by Calvin Spealman : -- nosy: +ironfroggy ___ Python tracker <http://bugs.python.org/issue5191> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5174] xmlrpclib docs include incorrect file closing

2009-02-06 Thread Calvin Spealman
Calvin Spealman added the comment: The patch attached uses a with statement for proper file closing in the examples. ___ Python tracker <http://bugs.python.org/issue5

[issue5174] xmlrpclib docs include incorrect file closing

2009-02-06 Thread Calvin Spealman
New submission from Calvin Spealman : The following example from the xmlrpclib docs has an obviously erronous call to close() after the actual return. (http://docs.python.org/library/xmlrpclib.html) def python_logo(): handle = open("python_logo.jpg") return xmlrpc

[issue4573] zsh-style subpattern matching for fnmatch/glob

2008-12-07 Thread Calvin Spealman
Changes by Calvin Spealman <[EMAIL PROTECTED]>: -- versions: +Python 2.7 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4573> ___ _

[issue4573] zsh-style subpattern matching for fnmatch/glob

2008-12-07 Thread Calvin Spealman
Calvin Spealman <[EMAIL PROTECTED]> added the comment: This should be applicable to 2.7, at least, as well. Here is a backport of the patch against trunk. -- nosy: +ironfroggy Added file: http://bugs.python.org/file12273/zsh-fnmatch-2.

[issue4579] .read() and .readline() differ in failing

2008-12-07 Thread Calvin Spealman
Calvin Spealman <[EMAIL PROTECTED]> added the comment: Confirmed this behavior on my ubuntu installations but it fails properly on Windows. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4579] .read() and .readline() differ in failing

2008-12-07 Thread Calvin Spealman
Changes by Calvin Spealman <[EMAIL PROTECTED]>: -- nosy: +ironfroggy ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4579> ___ __

[issue4331] Can't use _functools.partial() created function as method

2008-11-16 Thread Calvin Spealman
Calvin Spealman <[EMAIL PROTECTED]> added the comment: I don't think this is any kind of bug, it is simply a product of only function objects being decorated automatically as methods. Your python version works because it is, in fact, a function. _functools.partial objects are no