[issue14364] Argparse incorrectly handles '--' as argument to option

2016-03-27 Thread paul j3
paul j3 added the comment: I made a mistake of trying to add to or refine a closed patch. Maybe I need to move the dbldash.patch over here for more formal consideration. -- ___ Python tracker

[issue26039] More flexibility in zipfile write interface

2016-03-27 Thread Марк Коренберг
Марк Коренберг added the comment: https://github.com/SpiderOak/ZipStream tries to implement streaming in one more kind. Also libarchive have experimental support of streaming write to zip archives in newest version. So problem is actual. -- ___

[issue18722] Remove uses of the register keyword

2016-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agree that comments like /* Help allocation */ are confused and misleading. -- ___ Python tracker ___

[issue19959] argparse.FileType does not expand tilde "~"

2016-03-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___

[issue19959] argparse.FileType does not expand tilde "~"

2016-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm with Martin. -- nosy: +serhiy.storchaka status: pending -> open ___ Python tracker ___

[issue18722] Remove uses of the register keyword

2016-03-27 Thread Martin Panter
Martin Panter added the comment: I did a review of some of the changes in . In particular, there are a couple of comments /* Help register allocation */ which were mangled to /* Help allocation */. But it is not clear if the leftover variable

[issue9694] argparse required arguments displayed under "optional arguments"

2016-03-27 Thread Martin Panter
Martin Panter added the comment: I am willing to drop most of the code and comment changes if that moves us closer to consensus. Paul: would you accept changing the heading “optional arguments” to “options” in 3.6? I thought we were close to consensus to use “options”, but maybe that is my

[issue26653] bisect raises a TypeError when hi is None

2016-03-27 Thread Xiang Zhang
Xiang Zhang added the comment: The C version bisect_right can only accept number as hi, which conflicts with the python version using None as the default value. -- nosy: +xiang.zhang ___ Python tracker

[issue26653] bisect raises a TypeError when hi is None

2016-03-27 Thread Mike Lenzen
New submission from Mike Lenzen: >>> bisect.bisect([1, 2, 3], 1, hi=None) TypeError: 'NoneType' object cannot be interpreted as an integer I'm assuming this is an error in the C implementation because the Python source has: if hi is None: hi = len(a) -- components:

[issue26652] Cannot install Python 2.7.11 on Windows Server 2008 R2

2016-03-27 Thread Hung-Hsuan Chen
New submission from Hung-Hsuan Chen: I tried installing Python2.7.11 on a Virtual machine running Windows Server 2008 R2. However, I cannot complete the installation. I tried reboot the machine and re-install for a couple of times but got no luck. Here I attach the log file of "msiexec /i

[issue23804] SSLSocket.recv(0) receives up to 1024 bytes

2016-03-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7a3c5f7dda86 by Martin Panter in branch '3.5': Issue #23804: Fix SSL recv/read(0) to not return 1024 bytes https://hg.python.org/cpython/rev/7a3c5f7dda86 New changeset 72c457f9533a by Martin Panter in branch 'default': Issue #23804: Merge SSL zero

[issue15859] Fail update installation: 'utf-8' codec can't decode byte 0x90 in position 0: invalid start byte

2016-03-27 Thread q20611...@163.com
q20611...@163.com added the comment: this issue occureed when i run gns3-1.4.5 in python3.5.1 help me ! my system is linux 3.6.11 release version is red flag inwise 8.0 -- components: -Windows nosy: +shanzhengcheng -BreamoreBoy, christian.heimes, ideasman42, pitrou, python-dev

[issue26543] imaplib noop Debug

2016-03-27 Thread Demur Rumed
Demur Rumed added the comment: Fixes syntax & line length issues in previous patch -- Added file: http://bugs.python.org/file42312/imaplib2.patch ___ Python tracker

[issue19959] argparse.FileType does not expand tilde "~"

2016-03-27 Thread Martin Panter
Martin Panter added the comment: I think this change is not appropriate for Unix, because it is redundant and would conflict with normal shell expansion. I’m not familiar with Windows, but I suspect it is not appropriate there either (neither Windows command shells nor argparse do wildcard *

[issue14364] Argparse incorrectly handles '--' as argument to option

2016-03-27 Thread Martin Panter
Martin Panter added the comment: In Python 3.5, this does not seem fixed. Issue 13922 is marked as resolved and fixed, but Pauls’s patch has not actually been committed. >>> ap = ArgumentParser() >>> ap.add_argument("-t", "--test", type=str, nargs=1) _StoreAction(option_strings=['-t',

[issue26488] hashlib command line interface

2016-03-27 Thread Martin Panter
Martin Panter added the comment: FWIW I am not really comfortable with argparse.FileType; see Issue 13824. How does this patch perform when warnings are enabled, or if you specify a file, but then cause some other argparse error? -- nosy: +martin.panter

[issue26039] More flexibility in zipfile write interface

2016-03-27 Thread Martin Panter
Martin Panter added the comment: Mark: I suggest to keep this discussion focussed on writing zip files, although I agree some enhancements to help reading without seeking could be reasonable. -- title: More flexibility in zipfile interface -> More flexibility in zipfile write

[issue26647] Wordcode

2016-03-27 Thread Demur Rumed
Demur Rumed added the comment: Also missing from this patch is modification of the bytecode magic number -- ___ Python tracker ___

[issue22558] Missing doc links to source code

2016-03-27 Thread Martin Panter
Changes by Martin Panter : -- title: Missing hint to source code - complete -> Missing doc links to source code ___ Python tracker

[issue26130] redundant local copy of a char pointer in classify in Parser\parser.c

2016-03-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset a90f5e2b7160 by Berker Peksag in branch 'default': Issue #26130: Remove redundant variable 's' from Parser/parser.c https://hg.python.org/cpython/rev/a90f5e2b7160 -- nosy: +python-dev ___ Python tracker

[issue26130] redundant local copy of a char pointer in classify in Parser\parser.c

2016-03-27 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Oren! -- nosy: +berker.peksag resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5 ___ Python tracker

[issue25195] mock.ANY doesn't match mock.MagicMock() object

2016-03-27 Thread Berker Peksag
Changes by Berker Peksag : -- keywords: +patch ___ Python tracker ___ ___

[issue25195] mock.ANY doesn't match mock.MagicMock() object

2016-03-27 Thread Berker Peksag
Berker Peksag added the comment: Thanks! -- keywords: +3.5regression -patch resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue25195] mock.ANY doesn't match mock.MagicMock() object

2016-03-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset dcd3b078ab84 by Berker Peksag in branch '3.5': Issue #25195: Fix a regression in mock.MagicMock https://hg.python.org/cpython/rev/dcd3b078ab84 New changeset 880d609b6664 by Berker Peksag in branch 'default': Issue #25195: Fix a regression in

[issue26039] More flexibility in zipfile interface

2016-03-27 Thread Марк Коренберг
Марк Коренберг added the comment: Also, Python have problems with streaming READ of zip archive. I mean ability to read (in some form iterate over) archive when seeking is not available. I mean iteration like one in TAR archives. -- ___ Python

[issue26644] SSLSocket.recv(-1) triggers SystemError

2016-03-27 Thread Martin Panter
Martin Panter added the comment: The Python 2 fix was slightly different, due to the lack of Argument Clinic. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue23735] Readline not adjusting width after resize with 6.3

2016-03-27 Thread Martin Panter
Martin Panter added the comment: Sorry I forgot to send my draft. Sent now, but you figured it out :) -- ___ Python tracker ___

[issue26039] More flexibility in zipfile interface

2016-03-27 Thread Марк Коренберг
Марк Коренберг added the comment: I have the same problem, and make monkey-patch by myself BEFORE seeing this issue (!) Example how I can do that is attached under name "socketpair.py". It will be nice if you take my idea. And after that streaming of zip files would be possible. --

[issue26543] imaplib noop Debug

2016-03-27 Thread Demur Rumed
Demur Rumed added the comment: I've attached a patch file of the proposed change which seems correct -- keywords: +patch nosy: +Demur Rumed Added file: http://bugs.python.org/file42310/imaplib.patch ___ Python tracker

[issue23758] Improve documenation about num_params in sqlite3 create_function and create_aggregate

2016-03-27 Thread Berker Peksag
Berker Peksag added the comment: Thank you Cédric. I also added tests to verify the behavior of num_params=-1. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6 -Python 3.4 ___ Python tracker

[issue23758] Improve documenation about num_params in sqlite3 create_function and create_aggregate

2016-03-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 02efd708c5c0 by Berker Peksag in branch '3.5': Issue #23758: Improve num_params docs of create_{function,aggregate} functions https://hg.python.org/cpython/rev/02efd708c5c0 New changeset 5be12f20d8f2 by Berker Peksag in branch 'default': Issue

[issue9303] Migrate sqlite3 module to _v2 API to enhance performance

2016-03-27 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue18691] sqlite3.Cursor.execute expects sequence as second argument.

2016-03-27 Thread Berker Peksag
Berker Peksag added the comment: I think the name "parameters" causes a confusion here. It basically means def execute(sql, parameters): not def execute(sql, *parameters): So ``con.execute('insert into foo values (?, ?)', (4, 5))`` is the correct usage of the API. Also, this looks

[issue26646] Allow built-in module in package

2016-03-27 Thread Brett Cannon
Brett Cannon added the comment: http://bugs.python.org/issue1644818 is also related to this. -- ___ Python tracker ___

[issue9297] SMTP with Sqlite3 file attached problem

2016-03-27 Thread Berker Peksag
Berker Peksag added the comment: > Unless someone can reproduce the issue, I recommend that we close this ticket. I couldn't reproduce it either. -- nosy: +berker.peksag status: open -> closed ___ Python tracker

[issue15117] Please document top-level sqlite3 module variables

2016-03-27 Thread Berker Peksag
Berker Peksag added the comment: *_version_* attributes OP mentioned have already been documented in b8b26feb3e1a. -- nosy: +berker.peksag resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue26647] Wordcode

2016-03-27 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list

[issue19065] sqlite3 timestamp adapter chokes on timezones

2016-03-27 Thread Berker Peksag
Berker Peksag added the comment: > Do you know what would be the correct step to propose a deprecation in the > sqlite3 module of Python proper? I've opened issue 26651 (patch included) to deprecate them. -- nosy: +berker.peksag resolution: -> rejected stage: needs patch -> resolved

[issue26651] Deprecate register_adapter() and register_converter() in sqlite3

2016-03-27 Thread Berker Peksag
New submission from Berker Peksag: In issue 19065: Gerhard says: "I'm -1 because I believe that ultimately, adapters and converters were a mistake to add to pysqlite. That's why I deprecated them in pysqlite 2.8.0." Here is a patch (based on commit from pysqlite project [1]) to deprecate

[issue23551] IDLE to provide menu link to PIP gui.

2016-03-27 Thread Eric Khoo Jiun Hooi
Eric Khoo Jiun Hooi added the comment: @Terry, this is the code segment that I wrote to display the latest as you mention. Do give comment for improvement. -- Added file: http://bugs.python.org/file42308/pip_gui_v3.py ___ Python tracker

[issue9303] Migrate sqlite3 module to _v2 API to enhance performance

2016-03-27 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag type: performance -> enhancement ___ Python tracker ___

[issue24887] Sqlite3 has no option to provide open flags

2016-03-27 Thread Berker Peksag
Berker Peksag added the comment: URI filename support has been added in f13bb1e40fbc (Python 3.4+). db = sqlite3.connect('file:path/to/database?mode=ro', uri=True) Here is a patch that adds a new flags parameter to sqlite3.connect(). -- dependencies: -Migrate sqlite3 module to

[issue23735] Readline not adjusting width after resize with 6.3

2016-03-27 Thread Eric Price
Eric Price added the comment: Hmm, I'm not seeing comments in the review? You're right about the order. When we don't have sigaction, python's signal handler will reinstall itself, so we need to reinstall this one after calling the old handler. -- Added file:

[issue25783] test_traceback.test_walk_stack() fails when run directly (without regrtest)

2016-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, I meant different from current test and from previous patch. But it looks like what you were proposed. -- ___ Python tracker

[issue26648] csv.reader Error message indicates to use deprecated

2016-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: When this error is triggered at all? -- ___ Python tracker ___ ___

[issue26648] csv.reader Error message indicates to use deprecated

2016-03-27 Thread SilentGhost
SilentGhost added the comment: Ah, the bit about csv module doing it's own newline handling is what I missed. Here is the updated patch. -- Added file: http://bugs.python.org/file42306/issue26648_2.diff ___ Python tracker

[issue23735] Readline not adjusting width after resize with 6.3

2016-03-27 Thread Martin Panter
Martin Panter added the comment: I think this version is pretty good. I would move the signal restoring bit to the end of the handler (see review), and there is some funny indentation, but I can fix that up when I commit it. -- ___ Python tracker

[issue26648] csv.reader Error message indicates to use deprecated

2016-03-27 Thread Martin Panter
Martin Panter added the comment: Isn’t using newline=None a way to produce the error in the first place? Silent Ghost: see the footnote . Reading with newline=None translates newlines. Writing with newline=None produces CRLFs on Windows. I

[issue26644] SSLSocket.recv(-1) triggers SystemError

2016-03-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset af92651c22e9 by Martin Panter in branch '3.5': Issue #26644: Raise ValueError for negative SSLSocket.recv() and read() https://hg.python.org/cpython/rev/af92651c22e9 New changeset b84d136e0028 by Martin Panter in branch '2.7': Issue #26644: Raise

[issue26650] calendar: OverflowErrors for year == 1 and firstweekday > 0

2016-03-27 Thread SilentGhost
SilentGhost added the comment: Here is the patch. Both this patch and the fix for #15421 might violate the documented behaviour of getting the full week's worth of dates. I wonder if that should also be documented. -- keywords: +patch nosy: +SilentGhost, rhettinger stage: -> patch

[issue26650] calendar: OverflowErrors for year == 1 and firstweekday > 0

2016-03-27 Thread Martijn Pieters
New submission from Martijn Pieters: For anything other than calendar.Calendar(0), many methods lead to OverflowError exceptions: >>> import calendar >>> c = calendar.Calendar(0) >>> list(c.itermonthdays(1, 1)) [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22,

[issue26649] Fail update installation: 'utf-8' codec can't decode

2016-03-27 Thread STINNER Victor
STINNER Victor added the comment: I din't know gns3 but it looks like a bug in gns3. You should report the bug there. You can use faulthandler to get the Python traceback. -- ___ Python tracker

[issue26645] argparse prints help messages to stdout instead of stderr by default

2016-03-27 Thread Alexey Muranov
Alexey Muranov added the comment: My grep man page says --help Print a brief help message. but indeed there is no `--help` in usage message. Maybe this is a bug of the man page. Thanks for the explanation. -- ___ Python tracker

[issue26649] Fail update installation: 'utf-8' codec can't decode

2016-03-27 Thread SilentGhost
Changes by SilentGhost : -- components: +Unicode nosy: +ezio.melotti, haypo type: -> behavior ___ Python tracker ___

[issue26648] csv.reader Error message indicates to use deprecated

2016-03-27 Thread SilentGhost
SilentGhost added the comment: While the 'U' mode has been deprecated it doesn't mean that your example doesn't run in 3.5 - it runs just fine and will keep doing so until 4.0 I'm attaching patch that suggests using newline=None (even though it's a default value for open), as that what seems

[issue26647] Wordcode

2016-03-27 Thread SilentGhost
Changes by SilentGhost : -- nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan, yselivanov ___ Python tracker ___