[issue16114] incorrect path in subprocess.Popen() FileNotFoundError message

2012-10-10 Thread Chris Jerdonek
Chris Jerdonek added the comment: > replacing repr(args[0]) with repr(executable) in the identified python should > be sufficient for this bug as originally reported. Yes, almost. The executable variable is a bytes object so it needs to be fsdecoded first. > I have a test and fix

[issue16114] incorrect path in subprocess.Popen() FileNotFoundError message

2012-10-10 Thread Chris Jerdonek
Chris Jerdonek added the comment: I made some comments on the changes as committed here: http://mail.python.org/pipermail/python-dev/2012-October/122125.html """ It would be cleaner to use the self.assertRaises() pattern here and also probably better to share code across the thr

[issue16185] include path in subprocess.Popen() file not found error messages on Windows

2012-10-10 Thread Chris Jerdonek
New submission from Chris Jerdonek: Currently, when subprocess.Popen() raises a FileNotFoundError on POSIX systems, the error message helpfully includes the path not found. But it does not do so on Windows. This issue is to include the path also in the messages of the corresponding errors

[issue16114] incorrect path in subprocess.Popen() FileNotFoundError message

2012-10-10 Thread Chris Jerdonek
Chris Jerdonek added the comment: > Maybe better to fix Windows behavior for unifying FileNotFoundError? I created issue 16185 to include the path in the messages of the corresponding errors on Windows. -- ___ Python tracker &l

[issue12947] doctest directive examples in library/doctest.html lack the flags

2012-10-10 Thread Chris Jerdonek
Chris Jerdonek added the comment: > Yes, the workaround should be applied in those cases as well. I added the workaround to the last remaining example. Nick was right before in that three of the four examples I mentioned above were in the part about "option flags" rather tha

[issue16187] incoming.irker hook raised an exception: [Errno 111] Connection refused

2012-10-10 Thread Chris Jerdonek
New submission from Chris Jerdonek: I got the following irker-related errors when committing about 20 minutes ago: remote: added 3 changesets with 2 changes to 1 files remote: buildbot: change(s) sent successfully remote: sent email to roundup at rep...@bugs.python.org remote: notified python

[issue12947] doctest directive examples in library/doctest.html lack the flags

2012-10-10 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks, Georg. Can this new directive be applied to individual code blocks though (or be modified to do so)? After a closer review (as mentioned in my comment above), it seems that the doctest directives should only be displayed in the code snippets that are

[issue12947] doctest directive examples in library/doctest.html lack the flags

2012-10-10 Thread Chris Jerdonek
Chris Jerdonek added the comment: Like these that discuss the behavior of the doctest.IGNORE_EXCEPTION_DETAIL option (but before doctest directives have been introduced): http://hg.python.org/cpython/file/0d6910bef979/Doc/library/doctest.rst#l543 The key is that you can have options take

[issue12947] doctest directive examples in library/doctest.html lack the flags

2012-10-10 Thread Chris Jerdonek
Chris Jerdonek added the comment: Georg suggested removing the doctest directives from the examples I mentioned. As currently written, they don't help them pass if doctest were run on the .rst file. That sounds fine to me for now. -- ___ P

[issue16115] test the executable arg to Popen() and improve related docs

2012-10-10 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue16187] incoming.irker hook raised an exception: [Errno 111] Connection refused

2012-10-10 Thread Chris Jerdonek
Chris Jerdonek added the comment: It's working now, thanks. -- status: pending -> closed ___ Python tracker <http://bugs.python.org/issue16187> ___ ___ Py

[issue12947] doctest directive examples in library/doctest.html lack the flags

2012-10-10 Thread Chris Jerdonek
Chris Jerdonek added the comment: This seems to look good now. Can this be closed, or is there something else that needed to be done as well? -- resolution: -> fixed stage: needs patch -> commit review status: open -> pending ___ Pytho

[issue16193] display full e-mail name in hg.python.org annotate pages

2012-10-10 Thread Chris Jerdonek
New submission from Chris Jerdonek: This issue is to configure hg.python.org to display the full e-mail name on the "annotate" pages. Currently, instead of displaying everything before the "@" symbol, the pages display only the portion of e-mail addresses up to the fi

[issue16192] ctypes - documentation example

2012-10-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: > Perhaps if some machines expect otherwise that should be documented, > otherwise might we change them. The very beginning of the ctypes documentation has documentation to that effect: "Note: Some code samples reference the ctypes c_int type. This

[issue16192] ctypes - documentation example

2012-10-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: I don't know off-hand. But maybe an additional note or code comment at the first instance in a code example would help. Switching the examples to c_long might serve only to shift potential confusion from the examples to someone's person

[issue13440] Explain the "status quo wins a stalemate" principle in the devguide

2012-10-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: > I'll say it again, the devguide should be short enough to be practical for > someone learning to contribute. Better organization could help here. I could see the devguide being a combination of (1) a brief document meant to be read cover to

[issue13440] Explain the "status quo wins a stalemate" principle in the devguide

2012-10-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: > Would this be the appropriate place for the links to the two essays: Personally, I would start out with a question in the FAQ. It could be called something like, "When is a change to Python justified?" and go after or in the same section as

[issue15939] make *.rst files in Doc/ parseable by doctest

2012-10-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: > Either there's another way to run those tests on selected platforms that can > be used instead A way to do it could be to register new doctest directives that skip the marked test based on the value of sys.platform. If we remove the directiv

[issue16193] display full e-mail name in hg.python.org annotate pages

2012-10-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: This is the suggested change in the bug report I linked to above (providing we are using 2.3 or later): > If you'd like the latter in hgweb, you can get it by editing '|user' [to > '|emailuser'] in the templates. (from http:/

[issue15939] make *.rst files in Doc/ parseable by doctest

2012-10-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: > FTR there were a few actual errors that I fixed (mostly about bytes vs > string). Great! Note that for the others, I was just trying to make the files parseable rather than passing. Currently, doctest aborts out on the files I fixed withou

[issue16199] 2to3 very minor doc change

2012-10-11 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- assignee: docs@python -> chris.jerdonek nosy: +chris.jerdonek ___ Python tracker <http://bugs.python.org/issue16199> ___ ___ Py

[issue16199] 2to3 very minor doc change

2012-10-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: Fixed. Thanks for the report, Mark! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue16205] update :class:`str` references to link to the str type section

2012-10-11 Thread Chris Jerdonek
New submission from Chris Jerdonek: 3.3 added a dedicated section to the docs for the str type. However, references to :class:`str` still link to the documentation of the built-in function str(). This issue is to update references to the str class to point to the new section on the str type

[issue16205] update :class:`str` references to link to the str type section

2012-10-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: I'm not sure if Sphinx would allow it, but it would be nice if references to the function str() could link to the built-in function documentation, and references to the class str could link to the section on the str

[issue13538] Improve doc for str(bytesobject)

2012-10-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: This may have been addressed to some extent by issue 14783: http://hg.python.org/cpython/rev/3773c98d9da8 -- nosy: +chris.jerdonek ___ Python tracker <http://bugs.python.org/issue13

[issue16205] update :class:`str` references to link to the str type section

2012-10-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: The documentation seems to take a similar approach with dict: http://docs.python.org/dev/library/stdtypes.html#dict http://docs.python.org/dev/library/functions.html#func-dict -- ___ Python tracker <h

[issue16206] dict() docs should display multiple signatures

2012-10-12 Thread Chris Jerdonek
New submission from Chris Jerdonek: The documentation for dict() (for both the built-in function and the class constructor) should display multiple signatures as do dict.__doc__ and the documentation for, say, str(). Currently, the dict() documentation just has one signature: dict([arg

[issue16207] add class name to method signatures in stdtypes docs

2012-10-12 Thread Chris Jerdonek
New submission from Chris Jerdonek: The method signatures for some of the classes documented in library/stdtypes lack the class name. For example, the list, dict, set, and memoryview methods lack the class name. Adding the class name will help to distinguish methods from functions

[issue16207] add class name to method signatures in stdtypes docs

2012-10-12 Thread Chris Jerdonek
Chris Jerdonek added the comment: I think I would be more okay with this if it weren't for the fact that some functions also appear indented under their class entries (making them look like methods). Right now, there's no visual distinction between the functions and the methods.

[issue16207] add class name to method signatures in stdtypes docs

2012-10-12 Thread Chris Jerdonek
Chris Jerdonek added the comment: So it looks like the class name gets stripped when rendering if you prefix the method name with the class name and the methods are nested beneath the class. So it seems like the options are to either (1) move the non-methods outside the class (e.g. before the

[issue16209] add a "class str" entry to the docs

2012-10-12 Thread Chris Jerdonek
New submission from Chris Jerdonek: This issue is to add a str class entry to the built-in types page like we have for dict, set, memoryview, etc: http://docs.python.org/dev/library/stdtypes.html This will let us reference ``str`` the class separately from ``str()`` the built-in function

[issue16207] distinguish methods from non-methods in classes in the stdtypes docs

2012-10-12 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- title: add class name to method signatures in stdtypes docs -> distinguish methods from non-methods in classes in the stdtypes docs ___ Python tracker <http://bugs.python.org/issu

[issue16210] combine the two type() definitions in built-in function docs

2012-10-12 Thread Chris Jerdonek
New submission from Chris Jerdonek: [Found by Ezio] The built-in function documentation has what looks like two separate definitions of the built-in function type(): http://docs.python.org/dev/library/functions.html#type These two definitions should be combined into one with a multi-line

[issue16205] update :class:`str` references to link to the str type section

2012-10-12 Thread Chris Jerdonek
Chris Jerdonek added the comment: > If :class:`str` and :func:`str` point respectively to stdtypes.rst and > functions.rst once a class directive is added to stdtypes.rst, then we can do > that. I agree. I would suggest starting small by adding a stub class entry above the strin

[issue16214] 2to3 does not remove exceptions import

2012-10-12 Thread Chris Mayo
New submission from Chris Mayo: Create file a.py: #!/usr/bin/python import exceptions and run: 2to3 a.py ... RefactoringTool: No files need to be modified. Issue 2350 is marked as closed but this is still present for me in 2to3 of Python 2.7, 3.2 and 3.3. -- components: 2to3 (2.x to

[issue16206] dict() docs should display multiple signatures

2012-10-12 Thread Chris Jerdonek
Chris Jerdonek added the comment: Attaching proposed patch. -- keywords: +patch Added file: http://bugs.python.org/file27546/issue-16206-1-default.patch ___ Python tracker <http://bugs.python.org/issue16

[issue16209] add a "class str" entry to the docs

2012-10-12 Thread Chris Jerdonek
Chris Jerdonek added the comment: Let me start over with what I'm suggesting, because the idea wasn't fully developed when I first filed this issue. I'm thinking that we should create a class entry for str that contains the current string methods nested beneath it -- a bit l

[issue16206] dict() docs should display multiple signatures

2012-10-13 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue13538] Improve doc for str(bytesobject)

2012-10-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: Attaching a proposed patch along the lines suggested by Éric. -- keywords: +patch versions: +Python 3.4 Added file: http://bugs.python.org/file27556/issue-13538-1-default.patch ___ Python tracker <h

[issue15936] Add link from os.urandom to random.SystemRandom

2012-10-13 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +christian.heimes ___ Python tracker <http://bugs.python.org/issue15936> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16222] "server-side clone" not found by devguide's search box

2012-10-13 Thread Chris Jerdonek
New submission from Chris Jerdonek: Neither searching for "server-side" nor "clone" in the devguide "Quick Search" box pulls up the mention of server-side clones: http://docs.python.org/devguide/committing.html#long-term-development-of-features -- compone

[issue16225] list.remove in for loop

2012-10-14 Thread Chris Jerdonek
Chris Jerdonek added the comment: > I have worked with languages where you are explicitly warned that you must > not mess with the loop variable There is a warning in this part of the tutorial: "It is not safe to modify the sequence being iterated over in the loop...&q

[issue16225] list.remove in for loop

2012-10-14 Thread Chris Jerdonek
Chris Jerdonek added the comment: Attached is a simple way of addressing this (essentially copying the verbiage and example from the other page). If we want, we could make the sample code different so that the reader doesn't see the same thing twice. -- keywords: +patch

[issue16227] Change unicode howtos as misleading

2012-10-14 Thread Chris Jerdonek
Chris Jerdonek added the comment: I wonder why the note must be there at all. None of the 2.x docs have been updated to cover the 3.x versions of Python. Otherwise, every 2.x page could use such a disclaimer. Here is where the note was added: http://hg.python.org/cpython/rev/bdef454f7212

[issue16225] list.remove in for loop

2012-10-14 Thread Chris Jerdonek
Chris Jerdonek added the comment: > It is safe to modify a sequence during iteration if it's size not increased. What do you mean by "safe"? The example given by the original commenter does not increase the size either. I believe "safe" is meant in the sense of

[issue16227] Change unicode howtos as misleading

2012-10-14 Thread Chris Jerdonek
Chris Jerdonek added the comment: > I don't think there is a need to update the 3.1.x version of the > documentation in that respect. > versions: +Python 3.3, Python 3.4 -Python 3.1 This issue was just about the 2.7 version. 3.x doesn't contain the language mentio

[issue16227] Change unicode howtos as misleading

2012-10-14 Thread Chris Jerdonek
Chris Jerdonek added the comment: > 3.x doesn't contain the language mentioned by the original commenter. 3.2 onwards I mean. -- ___ Python tracker <http://bugs.python.org

[issue16222] "server-side clone" not found by devguide's search box

2012-10-14 Thread Chris Jerdonek
Chris Jerdonek added the comment: I filed this in case it signals some underlying issue with search that could use improving (and that may affect other search terms). I can change the title to remove the focus on those two terms. -- ___ Python

[issue16222] some terms not found by devguide's search box

2012-10-14 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- title: "server-side clone" not found by devguide's search box -> some terms not found by devguide's search box ___ Python tracker <http://

[issue16225] list.remove in for loop

2012-10-14 Thread Chris Jerdonek
Chris Jerdonek added the comment: > But in general the advice should be: if you want to insert or remove elements > during iteration, iterate over a copy. I would expand this to cover changing the list in any way. I think the point being made is that iteration doesn't implicitly

[issue16227] Change unicode howtos as misleading

2012-10-14 Thread Chris Jerdonek
Chris Jerdonek added the comment: That proposal sounds fine to me. -- ___ Python tracker <http://bugs.python.org/issue16227> ___ ___ Python-bugs-list mailin

[issue16227] Add link to 3.3 version in unicode howto

2012-10-14 Thread Chris Jerdonek
Chris Jerdonek added the comment: Attaching proposed patch. -- keywords: +patch Added file: http://bugs.python.org/file27571/issue-16227-1-27.patch ___ Python tracker <http://bugs.python.org/issue16

[issue16225] list.remove in for loop

2012-10-14 Thread Chris Jerdonek
Chris Jerdonek added the comment: Attaching revised patch. -- Added file: http://bugs.python.org/file27573/issue-16225-2-default.patch ___ Python tracker <http://bugs.python.org/issue16

[issue16227] Add link to 3.3 version in unicode howto

2012-10-14 Thread Chris Jerdonek
Chris Jerdonek added the comment: > I would not rephrase the first two lines. Why not? The current language focuses on the negative ("explaining problems") while we prefer an affirmative tone: http://docs.python.org/devguide/documenting.html#aff

[issue16225] list.remove in for loop

2012-10-14 Thread Chris Jerdonek
Chris Jerdonek added the comment: Reattaching. I duplicated a variable definition that was defined previously. -- Added file: http://bugs.python.org/file27575/issue-16225-3-default.patch ___ Python tracker <http://bugs.python.org/issue16

[issue16225] list.remove in for loop

2012-10-14 Thread Chris Jerdonek
Chris Jerdonek added the comment: > I mean it does not lead to crash, hang, etc. I agree. I removed the word "safe" in the patch I attached to reduce ambiguity. Regarding unexpected behavior, remember that the tutorial is for beginn

[issue16225] list.remove in for loop

2012-10-14 Thread Chris Jerdonek
Chris Jerdonek added the comment: > It will be nice somewhere in deep clarify for experts what happens with list > iterator if the list changed. There is a note somewhat to this effect here: http://docs.python.org/dev/reference/compound_stmts.html#the-for-statement "Note There is

[issue13538] Improve doc for str(bytesobject)

2012-10-15 Thread Chris Jerdonek
Chris Jerdonek added the comment: > I would just say that str(bytesobj, encoding, errors) is equivalent to > bytesobj.decode(encoding, errors) (assuming it really is). Good suggestion. And yes, code is shared in the following way: http://hg.python.org/cpython/file/d3c7ebdc71bb/O

[issue16227] Add link to 3.3 version in unicode howto

2012-10-15 Thread Chris Jerdonek
Chris Jerdonek added the comment: Committed without changing the first sentence, as Éric preferred. Thanks for the report, Mark! -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python track

[issue16225] add to "looping techniques" tutorial a note about modifying sequence

2012-10-15 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- title: list.remove in for loop -> add to "looping techniques" tutorial a note about modifying sequence type: -> enhancement versions: +Python 3.2, Python 3.3, Python 3.4 ___ Python tracker <htt

[issue16225] add to "looping techniques" tutorial a note about modifying sequence

2012-10-15 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks, Raymond. I will be doing that later today. -- ___ Python tracker <http://bugs.python.org/issue16225> ___ ___ Python-bug

[issue16225] add to "looping techniques" tutorial a note about modifying sequence

2012-10-15 Thread Chris Jerdonek
Chris Jerdonek added the comment: Committed. Thanks for reporting the suggestion, Ian. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue13538] Improve doc for str(bytesobject)

2012-10-16 Thread Chris Jerdonek
Chris Jerdonek added the comment: Attaching updated patch based on Ezio and Antoine's comments. Let me know if I'm not using the correct or preferred terminology around buffer objects and the buffer protocol. It doesn't seem like the section on the buffer protocol actually say

[issue13538] Improve doc for str(bytesobject)

2012-10-16 Thread Chris Jerdonek
Chris Jerdonek added the comment: Reattaching patch (a line was missing). -- Added file: http://bugs.python.org/file27592/issue-13538-3-default.patch ___ Python tracker <http://bugs.python.org/issue13

[issue10836] urllib.request.urlretrieve calls URLError with 3 args

2012-10-16 Thread Chris Jerdonek
Chris Jerdonek added the comment: > This should be reported in another issue though. Has this been done? -- nosy: +chris.jerdonek ___ Python tracker <http://bugs.python.org/issu

[issue16250] URLError invoked with reason as filename

2012-10-16 Thread Chris Jerdonek
New submission from Chris Jerdonek: This issue is to fix invocations of URLError so that "reasons" are not passed in for the "filename" argument of the URLError constructor. Ezio found and described this issue when commenting on issue 10836: http://bugs.python.org/issu

[issue10836] urllib.request.urlretrieve calls URLError with 3 args

2012-10-16 Thread Chris Jerdonek
Chris Jerdonek added the comment: For tracking purposes, I created issue 16250 for what you observed above, which as you said is related to but not the same as Nick's issue 16247. -- ___ Python tracker <http://bugs.python.org/is

[issue16250] URLError invoked with reason as filename

2012-10-16 Thread Chris Jerdonek
Chris Jerdonek added the comment: > raise URLError('local file error: not on local host') I should also point out that URLError invocations with formats like the above already do occur in Lib/urllib/request.py. For example: raise URLError('ftp error: no host given&#x

[issue16252] bytes and bytearray methods are undocumented

2012-10-16 Thread Chris Jerdonek
Chris Jerdonek added the comment: > I couldn't find any doc for bytes.join, etc. One of the contributing factors to this is that bytes doesn't have its own class entry in the same way that, for example, list, dict, and memoryview have. This creates a stumbling block for readers

[issue16250] URLError invoked with reason as filename

2012-10-16 Thread Chris Jerdonek
Chris Jerdonek added the comment: For future reference, this affects 3.2 onwards. It probably makes sense to address this in the same branches in which we plan to address issue 16247 (currently set to 3.3 onwards). -- stage: -> needs patch versions: +Python

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2012-10-16 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +asvetlov, chris.jerdonek ___ Python tracker <http://bugs.python.org/issue16255> ___ ___ Python-bugs-list mailing list Unsub

[issue16266] Typo in tutorial

2012-10-17 Thread Chris Jerdonek
Chris Jerdonek added the comment: The last \n is needed for the reason Andrew mentioned, but it is true that the sentence could probably be rephrased to reduce the chance of confusion. -- ___ Python tracker <http://bugs.python.org/issue16

[issue16266] Rephrase sentence in tutorial about universal newlines

2012-10-17 Thread Chris Jerdonek
Chris Jerdonek added the comment: I would suggest something like this: "In text mode, the default when reading is to convert platform-specific line endings (\n on Unix, \r\n on Windows) to just \n. When writing in text mode, the default is to convert occurrences of \n back to pla

[issue15518] Provide test coverage for filecmp.dircmp.report methods.

2012-10-17 Thread Chris Calloway
Chris Calloway added the comment: I have a number of patches for this issue I have worked on during a few local Python user group hack nights. I have not submitted them yet, however, as they require some expository material here in order to illustrate how they address Jerdonek's poin

[issue16272] C-API documentation clarification for tp_dictoffset

2012-10-17 Thread Chris Colbert
New submission from Chris Colbert: The documentation of the tp_dictoffset is a bit unclear when describing the responsibilities of a base type with a nonzero tp_dictoffset. http://docs.python.org/c-api/typeobj.html I feel there should some statement to the effect of: """ If a

[issue16268] dir(closure) does not find __dir__

2012-10-17 Thread Chris Jerdonek
Chris Jerdonek added the comment: Here is a somewhat simpler way to reproduce (following the same definition of x): >>> dir(x) ... TypeError: object does not provide __dir__ >>> x.__dir__ >>> dir(x) ['__class__', '__delattr__', '_

[issue16266] Rephrase sentence in tutorial about universal newlines

2012-10-17 Thread Chris Jerdonek
Chris Jerdonek added the comment: Committed. Thanks for the report! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed type: behavior -> enhancement ___ Python tracker <http://bugs.python

[issue16282] The Python Tutorial the previous link needs updating

2012-10-19 Thread Chris Jerdonek
Chris Jerdonek added the comment: This issue does not seem limited to a particular page. For example, the "Previous topic" link for the Python Standard Library part: http://docs.python.org/library/index.html is "9. Full Grammar specification", which is the last section of

[issue16282] The Python Tutorial the previous link needs updating

2012-10-19 Thread Chris Jerdonek
Chris Jerdonek added the comment: > http://docs.python.org/tutorial/ the previous link goes to > http://docs.python.org/whatsnew/2.0.html. This seems correct to me since the 'All "What's new" documents since 2.0' part of the documentation occurs immediately be

[issue16282] The Python Tutorial the previous link needs updating

2012-10-19 Thread Chris Jerdonek
Chris Jerdonek added the comment: Note that the 2.0 issue was previously reported in issue 4988 and issue 7683. The issue I described occurs because the parts on the home page are listed in an order different from their order in the table of contents: http://docs.python.org/ http

[issue16288] TextTestResult uses TestCase.__str__() which isn't customisable (vs id() or shortDescription())

2012-10-19 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker <http://bugs.python.org/issue16288> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2012-10-19 Thread Chris Jerdonek
Chris Jerdonek added the comment: > It seems simple enough for us to make the default configurable This seems good to do in any case (as opposed to having the string be "hard-coded"), and we can test it independently of Android. There is a recently added test in the 3.x branche

[issue2350] 'exceptions' import fixer

2012-10-20 Thread Chris Mayo
Changes by Chris Mayo : -- nosy: +cjmayo ___ Python tracker <http://bugs.python.org/issue2350> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16288] TextTestResult uses TestCase.__str__() which isn't customisable (vs id() or shortDescription())

2012-10-20 Thread Chris Jerdonek
Chris Jerdonek added the comment: > So the relevant code is this: > def getDescription(self, test): > ... > 43 return str(test) > ... > What I'd like is to have this be something like: > 44 return test.id() > Or anther way this could be done would be to make Tes

[issue16288] TextTestResult uses TestCase.__str__() which isn't customisable (vs id() or shortDescription())

2012-10-21 Thread Chris Jerdonek
Chris Jerdonek added the comment: > testscenarios copies the tests, it doesn't call the constructor for the class; My suggestion on how to override __str__ (by assignment to __class__) doesn't require that the constructor be called. -- _

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2012-10-21 Thread Chris Jerdonek
Chris Jerdonek added the comment: It occurs to me that logic for detecting the shell might make sense for being part of the os module, e.g. os.getdefaultshell(). -- ___ Python tracker <http://bugs.python.org/issue16

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-10-23 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks for the patch. -self.testNames = (self.defaultTest,) +if isinstance(self.defaultTest, str): +self.testNames = (self.defaultTest,) +else: +self.testNames = tuple(self.defaultTest) Is

[issue15916] change doctest DocTestSuite not to raise ValueError if no docstrings

2012-10-23 Thread Chris Jerdonek
Chris Jerdonek added the comment: Hmm. This patch still raises the "has no docstrings" ValueError if "not tests" is True. And because the patch changes the default DocTestFinder, it's possible that the patch changes behavior in non-error use cases. Why not just ret

[issue16278] os.rename documentation slightly inaccurate

2012-10-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: Before we discuss wording, it's not clear to me whether all possibilities have been checked. I count 2*3*2=12 possibilities to check (excluding src and dst being on different filesystems): src: file or directory dst: file, empty directory, or non-

[issue13510] Clarify that readlines() is not needed to iterate over a file

2012-10-24 Thread Chris Rebert
Chris Rebert added the comment: file.readlines() (and perhaps dare I say even file.readline()) should not even be mentioned in the tutorial, IMO. It is difficult to imagine a use case where just iterating over the file object isn't superior. I cannot remember the last time that I have

[issue15494] Move test/support.py into a test.support subpackage

2012-10-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: >> Excessively large source files are a sign of bad software design. > > Do you [want to] weigh in the python-dev discussion about splitting > unicodeobject.c? Nick did weigh in starting here: http://mail.python.org/pipermail/python-dev/2012

[issue14616] subprocess docs should mention pipes.quote/shlex.quote

2012-10-25 Thread Chris Rebert
Chris Rebert added the comment: No, the thought merely did not occur to me. I don't recall having seen such forward-looking notes in Python's documentation before. Should the pipes.quote() mention be axed from the 3.x patch? -- ___ Pyth

[issue16319] optional comma inside function argument list triggers syntax error

2012-10-25 Thread Chris Jerdonek
Chris Jerdonek added the comment: I could be misinterpreting the documentation, but it looks to me like the examples given are behaving as documented: parameter_list ::= (defparameter ",")* ( "*" [parameter] ("," defparameter)*

[issue16319] optional comma inside function argument list triggers syntax error

2012-10-25 Thread Chris Jerdonek
Chris Jerdonek added the comment: Duplicate of issue 9232 (enhancement request). -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> Allow trailing comma in any function argument list. ___ Py

[issue15494] Move test/support.py into a test.support subpackage

2012-10-25 Thread Chris Jerdonek
Chris Jerdonek added the comment: > If you are planning to further split support.py, then I'm -1. Ezio, this issue is not to split up support.py. Nick already responded to you to this effect in the fourth comment above. Also, in the second comment to this issue, I said that this i

[issue16163] Wrong name in Lib/pkgutil.py:iter_importers

2012-10-25 Thread Chris Jerdonek
Chris Jerdonek added the comment: Nick would be a better person to review the patch since IIRC he worked a bunch on that module (e.g. in the changeset you mentioned). But if I get a chance I will take a look. -- ___ Python tracker <h

[issue16285] Update urllib to RFC 3986

2012-10-26 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <http://bugs.python.org/issue16285> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16309] "PYTHONPATH=" different from no PYTHONPATH at all

2012-10-26 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker <http://bugs.python.org/issue16309> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8040] documentation pages should link to other versions of the same page

2012-10-26 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +chris.jerdonek title: It would be nice if documentation pages linked to other versions of the same document -> documentation pages should link to other versions of the same page ___ Python tracker &l

[issue16312] New command line option supported by unittest.main() for running initialization code before tests

2012-10-26 Thread Chris Jerdonek
Chris Jerdonek added the comment: Can you give an example of what you would like the API to look like (i.e. what you would like to be able to type from the command-line if, say, configuring logging as in the SO post)? I'm not sure I understand why a wrapper script isn't a good enoug

<    13   14   15   16   17   18   19   20   21   22   >