[issue20323] Argument Clinic: docstring_prototype output causes build failure on Windows

2014-01-21 Thread Larry Hastings
Larry Hastings added the comment: If in C you define static char a[5] = abcde C suppresses the trailing '\0'. That it continued to work okay was a lucky break--you must not have looked in many docstrings, or you lucked out and they happened to be padded with zeroes. --

[issue20323] Argument Clinic: docstring_prototype output causes build failure on Windows

2014-01-21 Thread Larry Hastings
Larry Hastings added the comment: I had to throw it in a struct to prevent gcc from rearranging the variables. But this demonstrates the problem--when it prints the string, it doesn't stop at the end. - #include stdio.h typedef struct { int a; char b[8]; int c; }

[issue20297] concurrent.futures.as_completed() installs waiters for already completed Futures

2014-01-21 Thread Glenn Langford
Changes by Glenn Langford glenn.langf...@gmail.com: -- nosy: +bquinlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20297 ___ ___

[issue20319] concurrent.futures.wait() can block forever even if Futures have completed

2014-01-21 Thread Glenn Langford
Changes by Glenn Langford glenn.langf...@gmail.com: -- nosy: +bquinlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20319 ___ ___

[issue19920] TarFile.list() fails on some files

2014-01-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19920 ___ ___

[issue20335] bytes constructor accepts more than one argument even of the first one is not a string

2014-01-21 Thread Renaud Blanch
New submission from Renaud Blanch: % python3 Python 3.3.2 (v3.3.2:d047928ae3f6, May 13 2013, 13:52:24) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type help, copyright, credits or license for more information. help(bytes) bytes constructor accepts more than one argument even of the

[issue20326] Argument Clinic should use a non-error-prone syntax to mark text signatures

2014-01-21 Thread Larry Hastings
Larry Hastings added the comment: Serhiy: I'm going to add PEP 457 features to the text signature, because without them the inspect.Signature objects will be wrong. So __doc__ and __text_signature__ would have to remove those first before handing the string to ast.parse. I wasn't seriously

[issue20280] add predicate to the glossary

2014-01-21 Thread Florent Xicluna
Florent Xicluna added the comment: Then we can forget it. Thank you for your input. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20280 ___

[issue20335] bytes constructor accepts more than one argument even of the first one is not a string

2014-01-21 Thread Mark Lawrence
Mark Lawrence added the comment: This shows the report to be wrong, you either have to pass an iterable of ints or a single int. Even the title is wrong, it doesn't accept more than one argument if the first one isn't a string, it raises a TypeError. Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18

[issue20246] buffer overflow in socket.recvfrom_into

2014-01-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5c4f4db8107c by Stefan Krah in branch '3.3': Issue #20246: Fix test failures on FreeBSD. Patch by Ryan Smith-Roberts. http://hg.python.org/cpython/rev/5c4f4db8107c New changeset 9bbc3cc8ff4c by Stefan Krah in branch 'default': Issue #20246: Fix

[issue20246] buffer overflow in socket.recvfrom_into

2014-01-21 Thread Stefan Krah
Stefan Krah added the comment: Thanks Ryan. As you say, the original segfault is also triggered with the shortened message. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20246 ___

[issue20335] bytes constructor accepts more than one argument even of the first one is not a string

2014-01-21 Thread Renaud Blanch
Changes by Renaud Blanch rndbl...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file33600/bytesobject.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20335 ___

[issue20335] bytes constructor accepts more than one argument even if the first one is not a string

2014-01-21 Thread Renaud Blanch
Changes by Renaud Blanch rndbl...@gmail.com: -- title: bytes constructor accepts more than one argument even of the first one is not a string - bytes constructor accepts more than one argument even if the first one is not a string ___ Python

[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files

2014-01-21 Thread Tal Einat
Tal Einat added the comment: Attached updated patch for bytes and bytearray. In the previous patch I missed the 'clear' and 'copy' bytearray methods. This patch is a replacement for the previous one, with the additional conversion of these two methods. -- Added file:

[issue20336] test_asyncio: relax timings even more

2014-01-21 Thread Stefan Krah
New submission from Stefan Krah: It seems that the relaxed timings in some tests are still not sufficient: http://buildbot.python.org/all/builders/AMD64%20OpenIndiana%203.x/builds/7417/steps/test/logs/stdio == FAIL:

[issue20337] bdist_rpm should support %config(noreplace)

2014-01-21 Thread KV
New submission from KV: bdist_rpm should support handling %config(noreplace) to help with packaging. Patch attached. -- components: Build files: bdist_rpm-add-config-file.diff keywords: patch messages: 208715 nosy: kv priority: normal severity: normal status: open title: bdist_rpm

[issue20338] Idle: increase max calltip width

2014-01-21 Thread Terry J. Reedy
New submission from Terry J. Reedy: Idle calltips are currently limited to 75 (signature) or 70 (doc line) chars. This is insufficient for some stdlib signatures. Example: from http.client import HTTPConnection import inspect fob=HTTPConnection.__init__

[issue20338] Idle: increase max calltip width

2014-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Meant to mention that wrapping is a possible alternative to truncation, although a limit of say, 200, would make either alternative rare. -- ___ Python tracker rep...@bugs.python.org

[issue20338] Idle: increase max calltip width

2014-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: On further thought, I think the best place to truncate lines is in get_argspec, after being split from the docstring and before rejoined. -- ___ Python tracker rep...@bugs.python.org

[issue16638] support multi-line docstring signatures in IDLE calltips

2014-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: See #20338 for why I think 70 (or even 79, the limit in CallTipWindow) is too low a limit. The purpose of grabbing multiple lines is to get the signature lines of builtins. I believe the max number of lines needed is 5, for bytes. however, identifying likely

[issue18147] SSL: diagnostic functions to list loaded CA certs

2014-01-21 Thread R. David Murray
R. David Murray added the comment: It looks like the doc for get_ca_certs wasn't missing, so now it appears twice in the docs. I'm not sure which is the preferred wording, so I'll leave it to Christian to fix it. -- nosy: +r.david.murray status: closed - open

[issue16099] robotparser doesn't support request rate and crawl delay parameters

2014-01-21 Thread Nikolay Bogoychev
Nikolay Bogoychev added the comment: Hey, Just a reminder friendly reminder that there hasn't been any activity for a month and I have released a v2, pending for review (: -- ___ Python tracker rep...@bugs.python.org

[issue17825] Indentation.offset and SyntaxError.offset mismatch

2014-01-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6d1372237607 by Florent Xicluna in branch '3.3': Issue #17825: Cursor ^ is correctly positioned for SyntaxError and IndentationError. http://hg.python.org/cpython/rev/6d1372237607 -- nosy: +python-dev

[issue17825] Indentation.offset and SyntaxError.offset mismatch

2014-01-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset aeb204b8f6c4 by Florent Xicluna in branch 'default': Issue #17825: Cursor ^ is correctly positioned for SyntaxError and IndentationError. http://hg.python.org/cpython/rev/aeb204b8f6c4 -- ___ Python

[issue19936] Executable permissions of Python source files

2014-01-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: For those four libffi files in msg208964, do what you want with them. I ignored executable bits entirely (didn't set or unset) when importing the code as there is zero need to execute any of them. IMNSHO, I think executable bits should _not_ be set on most

[issue17825] Indentation.offset and SyntaxError.offset mismatch

2014-01-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0041be34edbf by Florent Xicluna in branch '2.7': Issue #17825: Cursor ^ is correctly positioned for SyntaxError and IndentationError. http://hg.python.org/cpython/rev/0041be34edbf -- ___ Python tracker

[issue20339] Make bytes() use tp_as_buffer for cmp

2014-01-21 Thread Neil Schemenauer
New submission from Neil Schemenauer: While poking around at bytes() related things, I noticed that the tp_richcompare method for bytes does not use the tp_as_buffer interface. Making it use it is quite easy, probably even makes the code simpler

[issue17825] Indentation.offset and SyntaxError.offset mismatch

2014-01-21 Thread Florent Xicluna
Florent Xicluna added the comment: Done. The alignment error with non-ASCII chars should be fixed too, thanks to the work of Serhiy on issue #2382. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue20339] Make bytes() use tp_as_buffer for cmp

2014-01-21 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- components: +Interpreter Core nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20339 ___

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2014-01-21 Thread Tal Einat
Tal Einat added the comment: Attaching a new patch for complete conversion of Objects/unicodeobject.c. This is to replace the previous patch for this file. This new patch also converts all other possible unicode methods, including those not using PyArg_* functions. This includes various methods

[issue20332] Argument Clinic does not support the 'l' format

2014-01-21 Thread Larry Hastings
Larry Hastings added the comment: /*[clinic input] brett_is_stinky_and_wrong l: long [clinic start generated code]*/ PyDoc_STRVAR(brett_is_stinky_and_wrong__doc__, brett_is_stinky_and_wrong(l)); #define BRETT_IS_STINKY_AND_WRONG_METHODDEF\ {brett_is_stinky_and_wrong,

[issue20260] Argument Clinic: add unsigned integers converters

2014-01-21 Thread Larry Hastings
Larry Hastings added the comment: Is this waiting on something? I agree that we can't change the behavior of existing functions. But your new converters should raise ValueError. -- ___ Python tracker rep...@bugs.python.org

[issue20260] Argument Clinic: add unsigned integers converters

2014-01-21 Thread Larry Hastings
Larry Hastings added the comment: Also, you didn't remove the _ in front of Converter in the names, e.g _PyLong_UnsignedShort_Converter should be _PyLong_UnsignedShortConverter. -- ___ Python tracker rep...@bugs.python.org

[issue16638] support multi-line docstring signatures in IDLE calltips

2014-01-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6b62c923c0ef by Terry Jan Reedy in branch '2.7': Issue #16638: Include up to 5 docstring header lines (before first blank) in http://hg.python.org/cpython/rev/6b62c923c0ef New changeset 5b6c3760714e by Terry Jan Reedy in branch '3.3': Issue #16638:

[issue16638] support multi-line docstring signatures in IDLE calltips

2014-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Main change is using a custom function (2.7) or bytes instead of int for test and using maxsplit parameter to not needlessly split a 100-line docstring into 100 pieces. -- resolution: - fixed stage: patch review - committed/rejected status: open -

[issue20260] Argument Clinic: add unsigned integers converters

2014-01-21 Thread Larry Hastings
Larry Hastings added the comment: Actually, here's another data point to consider. The underlying implementation of PyArg_Parse* is the function convertsimple() in Python/getargs.c. For all the non-bitwise integer format units ('bhi'), if they overflow or underflow the native integer they

[issue20338] Idle: increase max calltip width

2014-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I deleted truncation code in CallTipWindow.py, all three versions, but messed up issue number. 2.7 http://hg.python.org/cpython/rev/c28e07377b03 changeset: 88630:c28e07377b03 3.3 (same) http://hg.python.org/cpython/rev/1b89fd73c625 changeset:

[issue20340] -bb option does not have different behavior than -b option

2014-01-21 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: -bb option does not have different behavior than -b option since Python 3.2. http://docs.python.org/3.4/using/cmdline.html#cmdoption-b says: Issue a warning when comparing str and bytes. Issue an error when the option is given twice

[issue20302] Argument Clinic: meaningful names for group flags

2014-01-21 Thread Larry Hastings
Larry Hastings added the comment: Well, they're going to have to change somehow, because the concepts of left and right are going away (see #20303). However, your suggested new name for these functions would be awful for large groups. Consider curses.window.overlay:

[issue20303] Argument Clinic: optional groups

2014-01-21 Thread Larry Hastings
Larry Hastings added the comment: When I fix #20303, the new rules will be: * You can have top-level optional groups anywhere. * You may nest up to one nested group in a group. * Whenever you nest a group in another group, all nested groups in that stack must favor the same side (left or

[issue20294] Argument Clinic: add support for __init__

2014-01-21 Thread Larry Hastings
Larry Hastings added the comment: That problem will be irrelevant, once builtin classes support signatures (#20189). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20294 ___

[issue20341] Argument Clinic: add nullable ints

2014-01-21 Thread Larry Hastings
New submission from Larry Hastings: Attached is a *preliminary* patch for Argument Clinic that adds nullable ints. If you use the converter int(nullable=True), then: * The type you get back is not int but nullable_int_t, a structure containing three fields: error, is_null, and i. error is

[issue20341] Argument Clinic: add nullable ints

2014-01-21 Thread Larry Hastings
Larry Hastings added the comment: I should have mentioned--a sample using nullable ints is in itertoolsmodule.c. longobject.{ch} changed to add the converters, and obviously clinic.py changed to add support for the converters. -- ___ Python

[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)

2014-01-21 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: Added file: http://bugs.python.org/file33606/088095387caf.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20172 ___

[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)

2014-01-21 Thread Zachary Ware
Zachary Ware added the comment: Ok, new conglomerate patch is posted; includes a few more return conversions (particularly in msvcrt) and a few other minor changes compared to the previous conglomerate. I would call this one a commit candidate, pending your review. I don't plan to commit

[issue20283] Wrong keyword parameter name in regex pattern methods

2014-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: If no one else pipes up here, perhaps ask on pydef about changing C names to match documented names. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20283

[issue20218] Add `pathlib.Path.write` and `pathlib.Path.read`

2014-01-21 Thread Christopher Welborn
Christopher Welborn added the comment: Ram Rachum: If I actually had a say in the matter, I wouldn't be totally against it. (so far I only lurk the lists/tracker looking for things to work on.) I was just offering you a solution that you can use _today_. I do think that if something like

[issue20336] test_asyncio: relax timings even more

2014-01-21 Thread Guido van Rossum
Guido van Rossum added the comment: I won't have time to fix this (and bardly to even review a fix) but this seems a straightforward fix and you can go ahead without me -- maybe you can get someone else with some asyncio experience to review your patch (e.g. Antoine or Victor). --

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

2014-01-21 Thread Nikolaus Rath
Nikolaus Rath added the comment: As discussed on devel, here's an updated patch for timemodule.c that uses a custom C converter to handle the parse_time_t_args() utility function. The only function I did not convert is mktime, because I did not find a way to do so without duplicating the

[issue19920] TarFile.list() fails on some files

2014-01-21 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the patch addressing some of Serhiys concerns. Thanks for the review. There are some things that I could not make it up: 1. The test for unencodable tarinfo.linkname is not done yet, because maybe it is better to be done in a separate ticket. To make the

[issue11448] docs for HTTPConnection.set_tunnel are ambiguous

2014-01-21 Thread Nikolaus Rath
Nikolaus Rath added the comment: The patches look fine to me. They are only docpatches, so no testcase is needed. I have rebased them on current hg tip to avoid fuzz, but otherwise left them unchanged. I think this is ready to be committed. -- nosy: +ezio.melotti, georg.brandl

[issue19920] TarFile.list() fails on some files

2014-01-21 Thread Vajrasky Kok
Changes by Vajrasky Kok sky@speaklikeaking.com: Removed file: http://bugs.python.org/file33608/fix_tarfile_list_print_lone_surrogate_v3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19920

[issue19920] TarFile.list() fails on some files

2014-01-21 Thread Vajrasky Kok
Changes by Vajrasky Kok sky@speaklikeaking.com: Added file: http://bugs.python.org/file33610/fix_tarfile_list_print_lone_surrogate_v3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19920

[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)

2014-01-21 Thread Zachary Ware
Zachary Ware added the comment: Marking #20189 as a dependency; winreg.HKEYType and _winapi.Overlapped need the signature fixes provided by #20189 before commit. -- dependencies: +inspect.Signature doesn't recognize all builtin types ___ Python

[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)

2014-01-21 Thread Zachary Ware
Zachary Ware added the comment: And scratch v3 being commit-candidate. I forgot to add an HKEY return converter to winreg (could have sworn I had done that, but I have no record of it), and my return converters in msvcrt are messy. -- ___ Python

[issue20341] Argument Clinic: add nullable ints

2014-01-21 Thread Vajrasky Kok
Vajrasky Kok added the comment: itertools.repeat.__doc__ 'repeat(object, times=None)\nReturns an iterator which returns the object the specified number of times.\n\nIf times is None, returns the object endlessly.' itertools.repeat('a', times=None) Traceback (most recent call last): File

[issue11448] docs for HTTPConnection.set_tunnel are ambiguous

2014-01-21 Thread Georg Brandl
Georg Brandl added the comment: The first sentence of the second new paragraph is a bit ungrammatical, right? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11448 ___

[issue11448] docs for HTTPConnection.set_tunnel are ambiguous

2014-01-21 Thread karl
karl added the comment: ooops right, my bad. s/on port 8080. We first/on port 8080, we first/ better? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11448 ___

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2014-01-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: Not all cases of this were fixed by the existing patch. subimports still trigger the bug via a different code path. attaching an updated unittest that demonstrates that. -- resolution: fixed - status: closed - open Added file:

[issue20329] zipfile.extractall fails in Posix shell with utf-8 filename

2014-01-21 Thread Laurent Mazuel
Laurent Mazuel added the comment: Thanks for your answer. I think you can't transcode internal zip filenames to FS encoding. Actually, in Unix the FS only stores bytes for filename, there is no FS encoding. Then, if you change your locale, the filename printed will change too in your console.

<    1   2   3