[issue11344] Add os.path.splitpath(path) function

2011-04-29 Thread blokeley
blokeley added the comment: The unit tests on the cpython tip revision fail even before applying my patches and I'm afraid haven't got the time to debug the threading module or existing unit tests. The traceback is: C:\workspace\cpython\Lib\test> C:\Python32\python.exe t

[issue11344] Add os.path.splitpath(path) function

2011-04-29 Thread blokeley
blokeley added the comment: My runtime came from the Python32 Windows installer and I don't have a C compiler on this machine. Therefore I updated to the 3.2 branch in hg and worked on that. This patch is pretty simple so should work on 3.3 without modifications. I have attached my

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
New submission from blokeley : `python -m unittest discover` caught me out. I had a test module called `test-foo.py` and no test was loaded. When I renamed to `test_foo.py` it worked. The documentation says "For a project’s tests to be compatible with test discovery they must a

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
blokeley added the comment: Will do but I haven't submitted a patch before and it's impossible to tell from python.org/dev whether to use the svn or hg repositories. If possible, please just let me know the URL of the hg repository against which I should make the patch (I don&#

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
Changes by blokeley : -- keywords: +patch Added file: http://bugs.python.org/file20862/py3k_rev9921_issue11298.patch ___ Python tracker <http://bugs.python.org/issue11

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
Changes by blokeley : Removed file: http://bugs.python.org/file20862/py3k_rev9921_issue11298.patch ___ Python tracker <http://bugs.python.org/issue11298> ___ ___ Pytho

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
Changes by blokeley : Added file: http://bugs.python.org/file20863/py3k_rev9921_issue11298.patch ___ Python tracker <http://bugs.python.org/issue11298> ___ ___ Python-bug

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
blokeley added the comment: Added release2.7-maint patch. -- Added file: http://bugs.python.org/file20864/py2.7-maint_rev45852_issue11298.patch ___ Python tracker <http://bugs.python.org/issue11

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
Changes by blokeley : Removed file: http://bugs.python.org/file20864/py2.7-maint_rev45852_issue11298.patch ___ Python tracker <http://bugs.python.org/issue11298> ___ ___

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
blokeley added the comment: Added release2.7-maint patch. -- Added file: http://bugs.python.org/file20865/py2.7-maint_rev45852_issue11298.patch ___ Python tracker <http://bugs.python.org/issue11

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
blokeley added the comment: Added release3.2-maint patch. I created the patches by cloning the corresponding hg repo from http://code.python.org/hg If this is the wrong thing to do, let me know. I have no idea where the 3.3 branch is. Please advise. -- Added file: http

[issue11336] Typo in patch.rst

2011-02-26 Thread blokeley
New submission from blokeley : I think that a typographical error was made in patch.rst. Should "(do not that not all checks apply to non-core developers)" read "(note that not all checks apply to non-core developers)"? Patch attached. -- assignee: do

[issue11338] No list of Python hg repositories

2011-02-26 Thread blokeley
New submission from blokeley : Recently, I've logged a few issues on http://bugs.python.org/ and tried to submit patches where possible. However, I have not been able to find any documentation that states where the hg repositories are. There are some under http://hg.python.org/ and some

[issue11336] Typo in patch.rst

2011-02-26 Thread blokeley
blokeley added the comment: I updated to the tip of http://hg.python.org/devguide on the hg_transition branch. If this isn't the latest dev guide, what is? -- ___ Python tracker <http://bugs.python.org/is

[issue11344] Add height argument to os.path.dirname()

2011-02-27 Thread blokeley
New submission from blokeley : It is a common need to find the grandparent or great-grandparent (etc.) of a given directory, which results in this: >>> from os.path import dirname >>> mydir = dirname(dirname(dirname(path))) Could a "height" parameter be added to o

[issue11338] No list of Python hg repositories

2011-03-06 Thread blokeley
blokeley added the comment: Closed because the issue is solved by: 1. The devguide http://docs.python.org/devguide/ has a "Browse online" link that points to the correct repositories at http://hg.python.org/ 2. Any attempt to access http://code.python.org/ redirects the user to th

[issue11298] unittest discovery needs better explanation

2011-03-06 Thread blokeley
blokeley added the comment: Is this wording correct? """ In order to be compatible with test discovery, all of the test modules must be importable from the top level directory of the project (in other words, they must be part of the project :ref:`package ` or directly

[issue11298] unittest discovery needs better explanation

2011-03-08 Thread blokeley
Changes by blokeley : Removed file: http://bugs.python.org/file20863/py3k_rev9921_issue11298.patch ___ Python tracker <http://bugs.python.org/issue11298> ___ ___ Pytho

[issue11298] unittest discovery needs better explanation

2011-03-08 Thread blokeley
Changes by blokeley : Removed file: http://bugs.python.org/file20865/py2.7-maint_rev45852_issue11298.patch ___ Python tracker <http://bugs.python.org/issue11298> ___ ___

[issue11298] unittest discovery needs better explanation

2011-03-08 Thread blokeley
Changes by blokeley : Removed file: http://bugs.python.org/file20866/py3.2-maint_rev9895_issue11298.patch ___ Python tracker <http://bugs.python.org/issue11298> ___ ___

[issue11298] unittest discovery needs better explanation

2011-03-08 Thread blokeley
blokeley added the comment: Patch for py3k (default branch). -- Added file: http://bugs.python.org/file21042/issue11298_default.patch ___ Python tracker <http://bugs.python.org/issue11

[issue11298] unittest discovery needs better explanation

2011-03-08 Thread blokeley
blokeley added the comment: Patch for 2.7 branch. -- Added file: http://bugs.python.org/file21043/issue11298_py2.7.patch ___ Python tracker <http://bugs.python.org/issue11

[issue11298] unittest discovery needs better explanation

2011-03-08 Thread blokeley
blokeley added the comment: Patch for 3.2 branch. This is the first time I've submitted patches so I hope the format is OK. If I could have submitted 1 patch to apply to 2.7, 3.2 and py3k at the same time let me know. Hope this helps. -- Added file: http://bugs.python.org/file

[issue11344] Add height argument to os.path.dirname()

2011-03-08 Thread blokeley
blokeley added the comment: os.path.splitpath() as described by rhettinger would solve the problem. If I wrote the patches, tests and docs, what are the chances of it being accepted? -- ___ Python tracker <http://bugs.python.org/issue11

[issue11344] Add os.path.splitpath(path) function

2011-03-08 Thread blokeley
blokeley added the comment: I started writing the patch against py2.7 but realised that 2.7 could be the last in the 2.x series. I'll write the patch against default tip. -- title: Add height argument to os.path.dirname() -> Add os.path.splitpath(path)