[issue26647] Wordcode

2016-03-27 Thread SilentGhost

Changes by SilentGhost :


--
nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan, yselivanov

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 to better correspond to the old 'U' 
mode.

--
components: +Extension Modules
keywords: +patch
nosy: +SilentGhost, serhiy.storchaka
stage:  -> patch review
type: enhancement -> behavior
versions: +Python 3.6 -Python 3.5
Added file: http://bugs.python.org/file42304/issue26648.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, 
23, 24, 25, 26, 27, 28, 29, 30, 31, 0, 0, 0, 0]
>>> c = calendar.Calendar(1)
>>> list(c.itermonthdays(1, 1))
Traceback (most recent call last):
  File "", line 1, in 
  File 
"/Users/mjpieters/Development/Library/buildout.python/parts/opt/lib/python2.7/calendar.py",
 line 188, in itermonthdays
for date in self.itermonthdates(year, month):
  File 
"/Users/mjpieters/Development/Library/buildout.python/parts/opt/lib/python2.7/calendar.py",
 line 160, in itermonthdates
date -= datetime.timedelta(days=days)
OverflowError: date value out of range

This echoes a similar problem with year = , see issue #15421

--
components: Library (Lib)
messages: 262514
nosy: mjpieters
priority: normal
severity: normal
status: open
title: calendar: OverflowErrors for year == 1 and firstweekday > 0
type: crash
versions: Python 2.7, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 review
type: crash -> behavior
versions: +Python 3.6
Added file: http://bugs.python.org/file42305/issue26650.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 ValueError for negative SSLSocket.recv() and read()
https://hg.python.org/cpython/rev/b84d136e0028

New changeset 80934ad2356d by Martin Panter in branch 'default':
Issue #26644: Merge SSL negative read fix from 3.5
https://hg.python.org/cpython/rev/80934ad2356d

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 understand the CSV module wants neither of these 
translations, so it has full control of the code points.

--
nosy: +martin.panter

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: http://bugs.python.org/file42307/rl_sigwinch_version_4.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 _v2 API to enhance performance
nosy: +berker.peksag
stage: needs patch -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 them.

[1] 
https://github.com/ghaering/pysqlite/commit/c819a1eacb6baa52d9743bd400907307711a7427#diff-a31e41a9e523fbbf9e60ba9a31f38efeR159

--
components: Extension Modules
files: deprecate_adapters.diff
keywords: patch
messages: 262525
nosy: berker.peksag, ghaering
priority: normal
severity: normal
stage: patch review
status: open
title: Deprecate register_adapter() and register_converter() in sqlite3
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file42309/deprecate_adapters.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
status: open -> closed
type: crash -> enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26647] Wordcode

2016-03-27 Thread Brett Cannon

Changes by Brett Cannon :


--
nosy: +haypo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 like a duplicate of issue 20364.

--
nosy: +berker.peksag
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Rename & explain sqlite3.Cursor.execute 'parameters'  param

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2016-03-27 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 #23758: Improve num_params docs of create_{function,aggregate} functions
https://hg.python.org/cpython/rev/5be12f20d8f2

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--
nosy: +mmarkk
Added file: http://bugs.python.org/file42311/main.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mock.MagicMock
https://hg.python.org/cpython/rev/880d609b6664

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2016-03-27 Thread Berker Peksag

Changes by Berker Peksag :


--
keywords: +patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 interface

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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', '--test'], dest='test', nargs=1, const=None, 
default=None, type=, choices=None, help=None, metavar=None)
>>> ap.add_argument('yuri', nargs='?')
_StoreAction(option_strings=[], dest='yuri', nargs='?', const=None, 
default=None, type=None, choices=None, help=None, metavar=None)
>>> ap.parse_args(["--test=--", "foo"])
Namespace(test=[], yuri='foo')
>>> ap.parse_args(["--test", "--", "foo"])
usage: [-h] [-t TEST] [yuri]
: error: argument -t/--test: expected 1 argument
argparse.ArgumentError: argument -t/--test: expected 1 argument

During handling of the above exception, another exception occurred:

__main__.SystemExit: 2
>>> ap.parse_args(["-t--", "foo"])
Namespace(test=[], yuri='foo')
>>> ap.parse_args(["-t", "--", "foo"])
usage: [-h] [-t TEST] [yuri]
: error: argument -t/--test: expected 1 argument
argparse.ArgumentError: argument -t/--test: expected 1 argument

During handling of the above exception, another exception occurred:

__main__.SystemExit: 2

--
nosy: +martin.panter
title: Argparse incorrectly handles '--' -> Argparse incorrectly handles '--' 
as argument to option

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 * and ? glob expansion, right?). Pending response from 
Garth or Julian.

--
nosy: +martin.panter
resolution:  -> rejected
status: open -> pending

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
title: PyUnicode_EncodeFSDefault win32 inconsistancy. -> Fail update 
installation: 'utf-8' codec can't decode byte 0x90 in position 0: invalid start 
byte
Added file: http://bugs.python.org/file42313/gns3-errorlog

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 read fix from 3.5
https://hg.python.org/cpython/rev/72c457f9533a

New changeset f4cff2bf9903 by Martin Panter in branch '2.7':
Issue #23804: Fix SSL recv/read(0) to not return 1024 bytes
https://hg.python.org/cpython/rev/f4cff2bf9903

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 python-2.7.amd64.msi /l*v python.log".  I hope 
someone can help me to figure this out.

Thanks!

--
components: Installation
files: python.log
messages: 262550
nosy: Hung-Hsuan Chen
priority: normal
severity: normal
status: open
title: Cannot install Python 2.7.11 on Windows Server 2008 R2
versions: Python 2.7
Added file: http://bugs.python.org/file42314/python.log

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: Library (Lib)
messages: 262551
nosy: Mike Lenzen, rhettinger
priority: normal
severity: normal
status: open
title: bisect raises a TypeError when hi is None
type: behavior
versions: Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 own 
bias showing. Re-reading through this thread, here is a summary of the people 
that seem to prefer renaming the “optional arguments” heading:

Steven: “flag arguments”, but concerned about affecting existing help messages
David: options, switches
Eric: replace adjective “optional” but leave “. . . arguments”
Ben (OP): options
Martin Panter: options, flags, switches, or non-positional arguments
Oliver: switches
Terry: keyword arguments
Ryan: options, or other suggestions

Martin d'Anjou and Raymond seem to prefer splitting out a third group, 
“required arguments”, although it is not clear how that would tie in with the 
“positional arguments” group.

I think making it easier to modify the headings is worthwhile only if we 
deprecated the old heading in favour of using a new default name in the future. 
To me the problem is the default behaviour, not that argparse is inflexible.

Another option might be to fix Issue 10529 (explain using gettext with 
argparse), and then use that to translate the "optional arguments" string. But 
I don’t know how to do this.

Another thought is if we added a notice to Porting to Python 3.6 in What’s New, 
that might ease concerns about changing the heading.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 copies are still helping (in which 
case the comments should be reverted), or if the copies and comments can be 
removed.

--
nosy: +martin.panter

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2016-03-27 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
status: open -> pending

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26653] bisect raises a TypeError when hi is None

2016-03-27 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
assignee:  -> rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26653] bisect raises a TypeError when hi is None

2016-03-27 Thread Raymond Hettinger

Raymond Hettinger added the comment:

The pure python code used None as a placeholder for an optional argument.  It 
is not an intended input value.  The documented signature
is:  bisect.bisect_left(a, x, lo=0, hi=len(a)).

--
priority: normal -> low

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25314] Documentation: argparse's actions store_{true, false} default to False/True (undocumented)

2016-03-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 566fe3564684 by Raymond Hettinger in branch '3.5':
Issue #25314: store_true and store_false also create appropriate defaults.
https://hg.python.org/cpython/rev/566fe3564684

New changeset 9fdeca5fdbf0 by Martin Panter in branch 'default':
Issue #25314: Merge argparse doc from 3.5
https://hg.python.org/cpython/rev/9fdeca5fdbf0

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2016-03-27 Thread Raymond Hettinger

Raymond Hettinger added the comment:

A few thoughts: 1) Deprecation messages should say "do X instead" rather than 
leaving users stranded.  2)  As long as most of our users are still with Python 
2.7 we need to avoid deprecations that present obstacles to Python 3 adoption 
or that increase transition costs.  3)  The adapters have been around for many 
years; the older the API, the more people people will have come to rely on it.  
4) The standard library is expected to be less changeable than third-party 
modules (we say that the standard library is where code goes to die and it 
should already be dead on arrival so that the word "standard" has more meaning.

--
nosy: +rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26632] __all__ decorator

2016-03-27 Thread Raymond Hettinger

Raymond Hettinger added the comment:

[Barry]
> This is probably terrible ...

I have to agree with that part ;-)   Sorry, but this feels "yucky" and is 
likely to cause more problems than it solves.

--
nosy: +rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25314] Documentation: argparse's actions store_{true, false} default to False/True (undocumented)

2016-03-27 Thread Martin Panter

Martin Panter added the comment:

For the record, porting the change was rather easy (hg graft + tweak + hg 
commit --amend). With that applied, I think it eliminates the need for the 
store_true/false half of Julien’s patch.

Is the store_const half of Julien’s patch ready to commit?

--
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2016-03-27 Thread Martin Panter

Changes by Martin Panter :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.6 -Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com