[issue20208] Clarify some things in porting HOWTO

2014-01-17 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20208 ___

[issue20194] Add :deprecated: marker to formatter module docs

2014-01-17 Thread Roundup Robot
New submission from Roundup Robot: New changeset 30013dbb5bc2 by Brett Cannon in branch 'default': Issues #20194,20195: Add missing :deprecated: markers to some module http://hg.python.org/cpython/rev/30013dbb5bc2 -- nosy: +python-dev ___ Python

[issue20195] Add :deprecated: marker to imp docs

2014-01-17 Thread Brett Cannon
New submission from Brett Cannon: Fixed by changeset 30013dbb5bc2 -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20195 ___

[issue20194] Add :deprecated: marker to formatter module docs

2014-01-17 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20194 ___

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-17 Thread Brett Cannon
Brett Cannon added the comment: I'm going to start tackling some of these today and checking them in directly. If I don't finish I will update the bug with what I didn't get to. -- assignee: - brett.cannon ___ Python tracker rep...@bugs.python.org

[issue14031] logging module cannot format str.format log messages

2014-01-17 Thread kespindler
kespindler added the comment: Those new examples look good. I appreciate your revisiting the issue. On Wed, Jan 15, 2014 at 7:12 AM, Vinay Sajip rep...@bugs.python.org wrote: Vinay Sajip added the comment: Cookbook updated. See changesets 7c4f0c3dedaf and 0056aaf42bf7 for more information

[issue20266] Bring Doc/faq/windows up to date

2014-01-17 Thread Mark Lawrence
Mark Lawrence added the comment: The faq doesn't mention the new launcher for Windows. Rather than write too much I'd simply cross reference this http://docs.python.org/3/using/windows.html#python-launcher-for-windows. I think this also impacts on the section How do I make Python scripts

[issue20288] HTMLParse handing of non-numeric charrefs broken

2014-01-17 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks for the report, this is indeed a bug. This behavior was covered by a test (see Lib/test/test_htmlparser.py:164), but _run_check feeds the chars one by one to the parser, and in that case it works correctly. While feeding the parser a whole chunk I was

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-17 Thread Brett Cannon
Brett Cannon added the comment: Patch for multibytecodec.c. Not sure how you calculated locations, Larry, but this file had 11 things to change, so some other work divisions might be off. -- Added file: http://bugs.python.org/file33510/multibytecodec_derby.diff

[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper

2014-01-17 Thread Cory Benfield
Cory Benfield added the comment: I've been messing around trying to write a test for this, and it looks like genuinely the only place this can be hit is in _tunnel(). None of the other readline() calls can be hit with the LineAndFileWrapper() wrapping the file descriptor. -- nosy:

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-17 Thread Brett Cannon
Brett Cannon added the comment: After finding out that the initial site counts were off I went through and manually counted each file in this Derby group to get a more accurate idea of how much work each file would be. Modules/cmathmodule.c: 8 sites Modules/arraymodule.c: 27 sites

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-17 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Added file: http://bugs.python.org/file33511/grp_derby.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20152 ___

[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper

2014-01-17 Thread Cory Benfield
Cory Benfield added the comment: Alright, here's a patch. I'm not ecstatic about this test: it's utterly contrived, but it also seems to be the least bad way to reproduce this bug. Let me know if you strongly object and I'll take another swing at it (it'll probably involve extending the

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-17 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Added file: http://bugs.python.org/file33513/spwd_derby.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20152 ___

[issue20287] Argument Clinic: support diverting output to buffer, external file, etc

2014-01-17 Thread Larry Hastings
Larry Hastings added the comment: If I removed support for all destinations except files, I might be able to remove fifty lines or so. However, I'm not planning on doing that. Does cryptmodule.c, which has exactly one function, really need a 20-line separate file? Also, the file approach

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-17 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Added file: http://bugs.python.org/file33514/multibytecodec_derby.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20152 ___

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-17 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Removed file: http://bugs.python.org/file33510/multibytecodec_derby.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20152 ___

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-17 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: Added file: http://bugs.python.org/file33515/pwd_derby.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20152 ___

[issue20284] patch to implement %-interpolation for bytes (roughly PEP 461)

2014-01-17 Thread Neil Schemenauer
Neil Schemenauer added the comment: Another revision of the patch, now quite close to PEP 461 as proposed. Changes from PEP 461: - include %a - add -2 command-line flag. When enabled have %s fallback to calling PyObject_Str() and encoding to ASCII and also enable %r as alias for %a.

[issue20152] Derby #15: Convert 50 sites to Argument Clinic across 9 files

2014-01-17 Thread Brett Cannon
Brett Cannon added the comment: Might pick this up later today (or never), but taking a break for now. Larry, I have patches for grp, spwd, _multibytecodec, and pwd I'd like you to give a once-over to make sure I didn't miss anything. The only one that I think has an obvious improvement is in

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-17 Thread Guido van Rossum
Guido van Rossum added the comment: Now looking. Note that a few parts of the patch no longer cleanly apply: hg import --no-c http://bugs.python.org/review/download/issue20189_10572.diff applying http://bugs.python.org/review/download/issue20189_10572.diff patching file Modules/_cursesmodule.c

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-17 Thread Larry Hastings
Larry Hastings added the comment: Updating / merging / resolving now, but it will take me a few minutes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20189 ___

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-17 Thread Larry Hastings
Larry Hastings added the comment: Here's a fresh patch against trunk. It applies cleanly against current tip (725bc24f5492). -- Added file: http://bugs.python.org/file33517/larry.support.text_signature.on.more.types.diff.4.txt ___ Python tracker

[issue20287] Argument Clinic: support diverting output to buffer, external file, etc

2014-01-17 Thread Larry Hastings
Larry Hastings added the comment: I have backed out the args - _args change. Not because I'm giving up on it, or that I necessarily think it's a bad idea, but because there are some changes happening in #20189 that will make it easier / that would conflict if I attacked it now. The resulting

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-17 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20189 ___ ___ Python-bugs-list

[issue20290] inspect module bug for modules with same filename

2014-01-17 Thread cqxz
New submission from cqxz: When two files have the same name and the first changes directory to the second, the inspect module can retrieve the source code for the latter incorrectly, so a simple call to inspect.stack() can be incorrect, and will fail if there are less lines in the nested

[issue20285] Improve object.__doc__ and help(object) output

2014-01-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: On python-list, Jean-Michel Pichavant pointed out that the status of object is different in 2.7. 'for new-style classes' would have to be added. 2.7 currently has the same output, but the meaning is slightly different as type and class are slightly different

[issue20285] Improve object.__doc__ and help(object) output

2014-01-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Rather, 'all classes' should be 'all new-style classes'. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20285 ___

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-17 Thread Guido van Rossum
Guido van Rossum added the comment: I limited myself to the four files you mentioned, and they look totally fine. Together with Nick's view you should have enough core review now, right? -- ___ Python tracker rep...@bugs.python.org

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-17 Thread Larry Hastings
Larry Hastings added the comment: I do. Thanks for your time! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20189 ___ ___ Python-bugs-list

[issue20265] Bring Doc/using/windows up to date

2014-01-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset fc52b657bcd9 by Zachary Ware in branch '3.3': Issue #20265: Updated some parts of the Using Windows document. http://hg.python.org/cpython/rev/fc52b657bcd9 New changeset 5a9171e70573 by Zachary Ware in branch 'default': Issue #20265: Merge with 3.3

[issue20189] inspect.Signature doesn't recognize all builtin types

2014-01-17 Thread Zachary Ware
Zachary Ware added the comment: A few issues with this patch: 1) help(os) raises ValueError Traceback (most recent call last): File stdin, line 1, in module File P:\ath\to\cpython\lib\_sitebuiltins.py, line 99, in __call__ return pydoc.help(*args, **kwds) File

[issue17481] inspect.getfullargspec could use __signature__

2014-01-17 Thread Yury Selivanov
Yury Selivanov added the comment: Can somebody review the patch? I'd be cool if this lands in 3.4. -- nosy: +larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17481 ___

[issue20222] unittest.mock-examples doc uses builtin file which is removed in Python 3

2014-01-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think /file/open/ would work. -- nosy: +michael.foord, terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20222 ___

[issue20223] inspect.signature does not support new functools.partialmethod

2014-01-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: This strikes me as a bug introduced with the new 3.4 feature and thus a Type: behavior issue eligible for 3.4. inspect.signature should work correctly with any python-coded callable and not return a wrong answer. (And we are trying to get inspect to work with

[issue20223] inspect.signature does not support new functools.partialmethod

2014-01-17 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20223 ___ ___ Python-bugs-list

[issue20287] Argument Clinic: support diverting output to buffer, external file, etc

2014-01-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch is too large and I don't very conversant with this code, so I just left several minor comments on Rietveld. At first glance all looks good. All works with my patches, results are good. But I see that side fail names have extension .clinic.c. The

[issue20237] Ambiguous sentence in document of xml package.

2014-01-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I took the sentence to mean 1) more that 2). I agree that it should be revised. -- nosy: +terry.reedy versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20237

[issue20254] Duplicate bytearray test on test_socket.py

2014-01-17 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +pitrou, terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20254 ___ ___

[issue20287] Argument Clinic: support diverting output to buffer, external file, etc

2014-01-17 Thread Larry Hastings
Larry Hastings added the comment: I have a fix already in place for the clinic_test.py problem. I disagree with your proposed foo.c.clinic nomenclature, and there are advantages to foo.clinic.c: double-clicking on them will launch the correct editor, and editors will automatically color them

[issue20283] Wrong keyword parameter name in regex pattern methods

2014-01-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: How nasty. I agree that this is a code bug. Unfortunately in this case, the C code does keyword matching of arguments and 'corrects' the doc for anyone who tries 'string='. pat.search(string='xabc', pos=1) Traceback (most recent call last): File pyshell#6,

[issue20260] Argument Clinic: add unsigned integers converters

2014-01-17 Thread Ryan Smith-Roberts
Ryan Smith-Roberts added the comment: socketmodule has three builtins which use PyLong_AsUnsignedLong on their arguments and would benefit from these converters, but only if they raise OverflowError. So I vote for #2. I don't think it's unreasonable to continue to have locally-defined

[issue4434] Embedding into a shared library fails

2014-01-17 Thread Björn Lindqvist
Björn Lindqvist added the comment: The bug is still present on the default build which many distros uses which produces an invalid build. That means ./configure make make install is broken! --enable-shared should be turned on by default because many (most?) distros build with the

[issue20284] patch to implement %-interpolation for bytes (roughly PEP 461)

2014-01-17 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20284 ___ ___ Python-bugs-list

[issue14480] os.kill on Windows should accept zero as signal

2014-01-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14480 ___ ___

[issue20287] Argument Clinic: support diverting output to buffer, external file, etc

2014-01-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7f6712954d5d by Larry Hastings in branch 'default': Issue #20287: Argument Clinic's output is now configurable, allowing http://hg.python.org/cpython/rev/7f6712954d5d -- nosy: +python-dev ___ Python

[issue20287] Argument Clinic: support diverting output to buffer, external file, etc

2014-01-17 Thread Larry Hastings
Larry Hastings added the comment: Done! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20287 ___

[issue20291] Argument Clinic should understand *args and **kwargs parameters

2014-01-17 Thread Larry Hastings
New submission from Larry Hastings: Argument Clinic currently prevents the impl function from ever seeing the args tuple or the kwargs dict. There should be a way to ask it to pass those values in to the impl function. -- assignee: larry messages: 208380 nosy: larry, meador.inge

[issue20178] Derby #9: Convert 52 sites to Argument Clinic across 11 files

2014-01-17 Thread Larry Hastings
Larry Hastings added the comment: Meador: I'm going to change Argument Clinic so you can get the args and kwargs values passed in to the impl. That's issue #20291; I already added you to it nosy list. With that change in you'll be able to convert sqlite3.connect. --

[issue18574] BaseHTTPRequestHandler.handle_expect_100() sends invalid response

2014-01-17 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18574 ___ ___ Python-bugs-list

[issue12704] Language Reference: Clarify behaviour of yield when generator is not resumed

2014-01-17 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12704 ___ ___ Python-bugs-list

[issue7776] http.client.HTTPConnection tunneling is broken

2014-01-17 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7776 ___ ___ Python-bugs-list

[issue17814] Popen.stdin/stdout/stderr documentation should mention object type

2014-01-17 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17814 ___ ___ Python-bugs-list

[issue17811] Improve os.readv() and os.writev() documentation and docstring

2014-01-17 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17811 ___ ___ Python-bugs-list

[issue7776] http.client.HTTPConnection tunneling is broken

2014-01-17 Thread Nikolaus Rath
Nikolaus Rath added the comment: Rebased patch on current tip. -- Added file: http://bugs.python.org/file33520/issue7776.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7776 ___

[issue17814] Popen.stdin/stdout/stderr documentation should mention object type

2014-01-17 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 3.1, Python 3.2, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17814 ___

[issue7776] http.client.HTTPConnection tunneling is broken

2014-01-17 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 2.6, Python 3.1, Python 3.2, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7776 ___

[issue20177] Derby #8: Convert 28 sites to Argument Clinic across 2 files

2014-01-17 Thread Nikolaus Rath
Nikolaus Rath added the comment: I have started working on this (partial patch attached), but I am unsure how to handle cases where the docstring definition utilizes a macro. For example: PyDoc_STRVAR(strftime_doc, strftime(format[, tuple]) - string\n\ \n\ Convert a time tuple to a string

[issue20292] clinic.py str_converter with encoding throws exception

2014-01-17 Thread Ryan Smith-Roberts
New submission from Ryan Smith-Roberts: Find test file attached. The exception: Exception raised during parsing: Traceback (most recent call last): ... File proj/python/trunk.hg/Tools/clinic/clinic.py, line 1535, in render self.parse_argument(data.parse_arguments) File

[issue18574] BaseHTTPRequestHandler.handle_expect_100() sends invalid response

2014-01-17 Thread Benjamin Peterson
Benjamin Peterson added the comment: A test would be good. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18574 ___ ___

[issue17811] Improve os.readv() and os.writev() documentation and docstring

2014-01-17 Thread Benjamin Peterson
Benjamin Peterson added the comment: IMO, it should just refer to the glossary entry for bytes-like object. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17811

[issue17814] Popen.stdin/stdout/stderr documentation should mention object type

2014-01-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 946257d3c648 by Benjamin Peterson in branch '3.3': describe type of Popen streams (closes #17814) http://hg.python.org/cpython/rev/946257d3c648 New changeset 1a7d416c57ff by Benjamin Peterson in branch 'default': merge 3.3 (#17814)

<    1   2