[issue26081] Implement asyncio Future in C to improve performance

2016-10-08 Thread INADA Naoki

INADA Naoki added the comment:

I've committed the patch with trivial fixes (adding curly braces to if 
statements).
And I'm sorry, I committed with wrong issue number.

https://hg.python.org/cpython/rev/678424183b38 (3.6)
https://hg.python.org/cpython/rev/f8815001a390 (default)

I fixed NEWS entry already.

--

___
Python tracker 

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



[issue26801] Fix shutil.get_terminal_size() to catch AttributeError

2016-10-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 678424183b38 by INADA Naoki in branch '3.6':
Issue #26801: Added C implementation of asyncio.Future.
https://hg.python.org/cpython/rev/678424183b38

New changeset f8815001a390 by INADA Naoki in branch 'default':
Issue #26801: Added C implementation of asyncio.Future.
https://hg.python.org/cpython/rev/f8815001a390

--

___
Python tracker 

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



[issue23262] webbrowser module broken with Firefox 36+

2016-10-08 Thread Oleg Broytman

Changes by Oleg Broytman :


Removed file: http://bugs.python.org/file45024/webbrowser.py-2.7-newfox.patch

___
Python tracker 

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



[issue23262] webbrowser module broken with Firefox 36+

2016-10-08 Thread Oleg Broytman

Oleg Broytman added the comment:

Remove empty args (backported from 3.4).

--
Added file: http://bugs.python.org/file45027/webbrowser.py-2.7-newfox.patch

___
Python tracker 

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



[issue28339] "TypeError: Parameterized generics cannot be used with class or instance checks" in test_functools after importing typing module

2016-10-08 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

All tests from test_functools.py now pass.

test.test_collections.TestCollectionABCs.test_ByteString() from 
test_collections.py still fails (as reported in msg277953).

LD_LIBRARY_PATH="$(pwd)" ./python -c 'import runpy, typing; 
runpy.run_module("test")' -v test_collections

--

___
Python tracker 

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



[issue28339] "TypeError: Parameterized generics cannot be used with class or instance checks" in test_functools after importing typing module

2016-10-08 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
Removed message: http://bugs.python.org/msg278344

___
Python tracker 

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



[issue28339] "TypeError: Parameterized generics cannot be used with class or instance checks" in test_functools after importing typing module

2016-10-08 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

All tests from test_functools.py now pass.

test.test_collections.TestCollectionABCs.test_ByteString() from 
test_functools.py still fails (as reported in msg277953).

LD_LIBRARY_PATH="$(pwd)" ./python -c 'import runpy, typing; 
runpy.run_module("test")' -v test_collections

--

___
Python tracker 

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



[issue28391] Multiple occurances of: Closing quotes separate words

2016-10-08 Thread R. David Murray

R. David Murray added the comment:

Case 2 (the actual behavior) is correct.  Quotes *within* words are ignored, 
only a leading quoted string will result in a separate word.  (That's 
recursive: try '"Do""This""Separate).

That said, we don't really care about non-posix mode, it's just there for 
backward compatibility.  I don't know why we haven't changed the default for 
shlex.shlex to posix=True.

--
resolution:  -> not a bug
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



[issue28379] PyUnicode_CopyCharacters could lead to undefined behaviour

2016-10-08 Thread Xiang Zhang

Xiang Zhang added the comment:

Thanks Serhiy! But sorry I think I have made a mistake. In 
unicode_copycharacters we don't need PyUnicode_READY since it has been done in 
argument parse. Could you remove it?

--
stage: resolved -> patch review
status: closed -> open
Added file: http://bugs.python.org/file45026/unicode_copycharacters.patch

___
Python tracker 

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



[issue23262] webbrowser module broken with Firefox 36+

2016-10-08 Thread Oleg Broytman

Oleg Broytman added the comment:

Add NewFox class to webbrowser for Py 3.4 (added raise_opts — Mozilla no longer 
supports autoraise).

--
Added file: http://bugs.python.org/file45025/webbrowser.py-3.4-newfox.patch

___
Python tracker 

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



[issue23262] webbrowser module broken with Firefox 36+

2016-10-08 Thread Oleg Broytman

Oleg Broytman added the comment:

Add NewFox class to webbrowser for Py 2.7 (added raise_opts — Mozilla no longer 
supports autoraise).

--
Added file: http://bugs.python.org/file45024/webbrowser.py-2.7-newfox.patch

___
Python tracker 

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



[issue23262] webbrowser module broken with Firefox 36+

2016-10-08 Thread Oleg Broytman

Changes by Oleg Broytman :


Removed file: http://bugs.python.org/file43752/webbrowser.py-3.4-newfox.patch

___
Python tracker 

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



[issue23262] webbrowser module broken with Firefox 36+

2016-10-08 Thread Oleg Broytman

Changes by Oleg Broytman :


Removed file: http://bugs.python.org/file43751/webbrowser.py-2.7-newfox.patch

___
Python tracker 

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



[issue23262] webbrowser module broken with Firefox 36+

2016-10-08 Thread Oleg Broytman

Changes by Oleg Broytman :


Removed file: http://bugs.python.org/file43749/webbrowser.py-3.4-newfox.patch

___
Python tracker 

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



[issue23262] webbrowser module broken with Firefox 36+

2016-10-08 Thread Oleg Broytman

Changes by Oleg Broytman :


Removed file: http://bugs.python.org/file43748/webbrowser.py-2.7-newfox.patch

___
Python tracker 

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



[issue23262] webbrowser module broken with Firefox 36+

2016-10-08 Thread Oleg Broytman

Changes by Oleg Broytman :


Removed file: http://bugs.python.org/file38227/new_firefox.py

___
Python tracker 

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



[issue24398] Update test_capi to use test.support.script_helper

2016-10-08 Thread Aidin Gharibnavaz

Aidin Gharibnavaz added the comment:

I am working on this issue.

--
nosy: +aidin36

___
Python tracker 

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



[issue28339] "TypeError: Parameterized generics cannot be used with class or instance checks" in test_functools after importing typing module

2016-10-08 Thread Guido van Rossum

Guido van Rossum added the comment:

Making it a deferred release blocker so we're reminded to do the more thorough 
fix before 3.6.0 rc1.

--
priority: release blocker -> deferred blocker

___
Python tracker 

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



[issue27588] Type (typing) objects are hashable and comparable for equality but this is not documented

2016-10-08 Thread Guido van Rossum

Guido van Rossum added the comment:

Fixed by the changes for issue #28388.

--
nosy: +gvanrossum
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue28388] Update documentation for typing module

2016-10-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d7f2b0332343 by Guido van Rossum in branch '3.5':
Adjust ClassVar example to use pre-PEP-526 syntax. (Issue #28388)
https://hg.python.org/cpython/rev/d7f2b0332343

--

___
Python tracker 

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



[issue28388] Update documentation for typing module

2016-10-08 Thread Guido van Rossum

Changes by Guido van Rossum :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue28388] Update documentation for typing module

2016-10-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9953efbb4974 by Guido van Rossum in branch '3.5':
Issue #28388: update typing module documentation.
https://hg.python.org/cpython/rev/9953efbb4974

New changeset 589e11c3489e by Guido van Rossum in branch '3.6':
Issue #28388: update typing module documentation. (merge 3.5->3.6)
https://hg.python.org/cpython/rev/589e11c3489e

New changeset 6cb9dfe4cbeb by Guido van Rossum in branch 'default':
Issue #28388: update typing module documentation. (merge 3.6->3.7)
https://hg.python.org/cpython/rev/6cb9dfe4cbeb

--
nosy: +python-dev

___
Python tracker 

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



[issue28214] Improve exception reporting for problematic __set_name__ attributes

2016-10-08 Thread Nick Coghlan

Nick Coghlan added the comment:

Fixing the proposed format string accordingly, and also including the 
underlying exception type as I did in the examples:

f"Error calling __set_name__ on {type(the_attr).__name__!r} instance 
{the_attr_name!r} in {class_being_defined.__name__!r}: 
{type(raised_exc).__name__}: {str(raised_exc)}"

--

___
Python tracker 

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



[issue28214] Improve exception reporting for problematic __set_name__ attributes

2016-10-08 Thread Nick Coghlan

Nick Coghlan added the comment:

Slight change, as it makes sense to reference the special method name 
explicitly:

TypeError: Error calling __set_name__ on 'BadIdea' instance 'attr' in 
'NotGoingToWork': 'NoneType' object is not callable

TypeError: Error calling __set_name__ on 'FaultyImplementation' instance 'attr' 
in 'TheoreticallyCouldWork': ZeroDivisionError: division by zero

--

___
Python tracker 

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



[issue28388] Update documentation for typing module

2016-10-08 Thread Guido van Rossum

Guido van Rossum added the comment:

LGTM. I have a small number of nits that I will apply when merging this.

--

___
Python tracker 

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



[issue28214] Improve exception reporting for problematic __set_name__ attributes

2016-10-08 Thread Nick Coghlan

Nick Coghlan added the comment:

The following seem like a reasonable starting point to me:

TypeError: Failed to set name on 'BadIdea' instance 'attr' in 'NotGoingToWork': 
'NoneType' object is not callable

TypeError: Failed to set name on 'FaultyImplementation' instance 'attr' in 
'TheoreticallyCouldWork': ZeroDivisionError: division by zero


That is, the error message format would be along the lines of:

f"Failed to set name on {type(the_attr).__name__!r} instance 
{the_attr_name!r} in {class_being_defined.__name__!r}: {str(raised_exc)}"

--

___
Python tracker 

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



[issue21720] "TypeError: Item in ``from list'' not a string" message

2016-10-08 Thread Nick Coghlan

Nick Coghlan added the comment:

Berker's fix for Python 2.7 looks good to me.

However, Python 3 has a comparably vague error message, it's just inverted to 
complain about bytes rather than unicode due to the change in the native str 
type:

>>> __import__('encodings', fromlist=[b'aliases'])
Traceback (most recent call last):
  File "", line 1, in 
  File "", line 1013, in _handle_fromlist
TypeError: hasattr(): attribute name must be string

hasattr() in Python 2.7 is similarly unhelpful regarding what type it actually 
got when you give it something it doesn't expect.

--

___
Python tracker 

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



[issue28391] Multiple occurances of: Closing quotes separate words

2016-10-08 Thread Arno-Can Uestuensoez

New submission from Arno-Can Uestuensoez:

I am currently writing an extended options scanner including 
shlex-compatibility mode. So including numerous extended unittests for 
compatibility verification.

I am not sure whether the following behaviour of shlex.split() is correct:

Quote from manual: 
  Parsing Rules: Closing quotes separate words ("Do"Separate is parsed as "Do" 
and Separate);

Case-0: Works
 sopts = """-a "Do"Separate """
 resx = ["-a", '"Do"', 'Separate', ]
 shlex.split(sopts,posix=False)
 assert res == resx 

Case-1: Fails - should work?
 sopts = """-a "Do"Separate"this" """
 resx = ["-a", '"Do"', 'Separate', '"this"', ]
 shlex.split(sopts,posix=False)
 assert res == resx 

Case-2: Works - should fail?
 sopts = """-a "Do"Separate"this" """ #@UnusedVariable
 resx = ["-a", '"Do"', 'Separate"this"', ]
 shlex.split(sopts,posix=False)
 assert res == resx 

The Case-0 is as defined in the manuals.

Is Case-1 or Case-2 the correct behaviour?
Which of Case-1, Case-2 is an error?

REMARK: I haven't found an eralier issue, so filing this here.

--
components: Library (Lib)
messages: 278329
nosy: Andrey.Kislyuk, acue, cvrebert, eric.araujo, eric.smith, ezio.melotti, 
python-dev, r.david.murray, robodan, vinay.sajip
priority: normal
severity: normal
status: open
title: Multiple occurances of: Closing quotes separate words
type: behavior
versions: Python 2.7

___
Python tracker 

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



[issue26081] Implement asyncio Future in C to improve performance

2016-10-08 Thread Yury Selivanov

Yury Selivanov added the comment:

I quickly looked over the patch and I think it's good.  If anything we still 
have time to hunt down any bugs or even revert this before 3.6 final.

INADA, feel free to commit it before Monday to 3.6 and default branches.

--

___
Python tracker 

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



[issue27170] IDLE: remove Toggle Auto Coloring or add to edit menu & doc

2016-10-08 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Toggling syntax highlighting is part of #6858.  Adding it to menu and doc is 
part of #28097

--
assignee:  -> terry.reedy
components: +IDLE -2to3 (2.x to 3.x conversion tool)
resolution:  -> duplicate
stage: test needed -> resolved
status: open -> closed
superseder:  -> IDLE: document all key bindings, add menu items for more.
versions: +Python 3.7

___
Python tracker 

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



[issue28097] IDLE: document all key bindings, add menu items for more.

2016-10-08 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The toggle highlighting issue is #27170 (not 27120)

--

___
Python tracker 

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



[issue26081] Implement asyncio Future in C to improve performance

2016-10-08 Thread INADA Naoki

INADA Naoki added the comment:

Now I understand tp_dealloc, tp_finalize and subtype_dealloc.
Attached patch passes tests.

--
Added file: http://bugs.python.org/file45023/fastfuture4.patch

___
Python tracker 

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



[issue26171] heap overflow in zipimporter module

2016-10-08 Thread Ned Deily

Changes by Ned Deily :


--
priority: release blocker -> 
versions: +Python 2.7, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue26171] heap overflow in zipimporter module

2016-10-08 Thread Ned Deily

Ned Deily added the comment:

Parvesh, we only maintain the latest micro release of a release cycle; for 2.7, 
that is currently 2.7.12.  In other words, once 2.7.9 was released, 2.7.8 was 
no longer supported by us (although, of course, downstream distributors of 
Cpython can choose to backport fixes to older releases on their own).

--

___
Python tracker 

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



[issue28379] PyUnicode_CopyCharacters could lead to undefined behaviour

2016-10-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for your contribution.

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



[issue28379] PyUnicode_CopyCharacters could lead to undefined behaviour

2016-10-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 13addd71b751 by Serhiy Storchaka in branch '3.5':
Issue #28379: Added sanity checks and tests for PyUnicode_CopyCharacters().
https://hg.python.org/cpython/rev/13addd71b751

--
nosy: +python-dev

___
Python tracker 

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



[issue28162] WindowsConsoleIO readall() fails if first line starts with Ctrl+Z

2016-10-08 Thread Steve Dower

Steve Dower added the comment:

I didn't see your patch, but I made basically the same fix and added a test.

--
status: open -> closed

___
Python tracker 

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



[issue28162] WindowsConsoleIO readall() fails if first line starts with Ctrl+Z

2016-10-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4d4aefa52f49 by Steve Dower in branch '3.6':
Issue #28162: Fixes Ctrl+Z handling in console readall()
https://hg.python.org/cpython/rev/4d4aefa52f49

New changeset 947fa496ca6f by Steve Dower in branch 'default':
Issue #28162: Fixes Ctrl+Z handling in console readall()
https://hg.python.org/cpython/rev/947fa496ca6f

--

___
Python tracker 

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



[issue28333] input() with Unicode prompt produces mojibake on Windows

2016-10-08 Thread Steve Dower

Steve Dower added the comment:

I made some minor tweaks to the patch (no need for strlen() - passing -1 works 
equivalently), but otherwise it's exactly what I would have done so I committed 
it.

We currently have no tests to check which characters are written to a console 
output buffer. Issue28217 was tracking those, but considering how little code 
we have on top of output I don't think it's worth blocking anything on 
automating those tests.

--

___
Python tracker 

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



[issue28333] input() with Unicode prompt produces mojibake on Windows

2016-10-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 63ceadf8410f by Steve Dower in branch '3.6':
Issue #28333: Remove unnecessary increment.
https://hg.python.org/cpython/rev/63ceadf8410f

New changeset d76c8f9ea787 by Steve Dower in branch 'default':
Issue #28333: Remove unnecessary increment.
https://hg.python.org/cpython/rev/d76c8f9ea787

--

___
Python tracker 

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



[issue23578] struct.pack error messages do not indicate which argument was invalid

2016-10-08 Thread R. David Murray

Changes by R. David Murray :


--
keywords: +easy (C)
stage:  -> needs patch
versions: +Python 3.7 -Python 2.7, Python 3.4

___
Python tracker 

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



[issue28333] input() with Unicode prompt produces mojibake on Windows

2016-10-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset faf5493e6f61 by Steve Dower in branch '3.6':
Issue #28333: Enables Unicode for ps1/ps2 and input() prompts. (Patch by Eryk 
Sun)
https://hg.python.org/cpython/rev/faf5493e6f61

New changeset cb62e921bd06 by Steve Dower in branch 'default':
Issue #28333: Enables Unicode for ps1/ps2 and input() prompts. (Patch by Eryk 
Sun)
https://hg.python.org/cpython/rev/cb62e921bd06

--
nosy: +python-dev

___
Python tracker 

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



[issue28376] rangeiter_new fails when creating a range of step 0

2016-10-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ee049edc3fff by Serhiy Storchaka in branch '3.5':
Issue #28376: Fixed typos.
https://hg.python.org/cpython/rev/ee049edc3fff

New changeset e486f3d30e0e by Serhiy Storchaka in branch '3.5':
Issue #28376: The constructor of range_iterator now checks that step is not 0.
https://hg.python.org/cpython/rev/e486f3d30e0e

New changeset 06f065a59751 by Serhiy Storchaka in branch '3.6':
Issue #28376: Creating instances of range_iterator by calling range_iterator
https://hg.python.org/cpython/rev/06f065a59751

New changeset e099583400f3 by Serhiy Storchaka in branch 'default':
Issue #28376: Creating instances of range_iterator by calling range_iterator
https://hg.python.org/cpython/rev/e099583400f3

New changeset ce4af7593e45 by Serhiy Storchaka in branch '3.5':
Issue #28376: The type of long range iterator is now registered as Iterator.
https://hg.python.org/cpython/rev/ce4af7593e45

--
nosy: +python-dev

___
Python tracker 

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



[issue28376] rangeiter_new fails when creating a range of step 0

2016-10-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for your contribution Oren.

--
assignee:  -> serhiy.storchaka
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



[issue15332] 2to3 should fix bad indentation (or warn about it)

2016-10-08 Thread R. David Murray

R. David Murray added the comment:

Agreed.  -tt is designed for this job; there's no need for 2to3 to duplicate 
the functionality given that reindent.py exists and can be (and "should" be) 
applied to the python2 source even if you aren't doing single-source.

--
nosy: +r.david.murray
resolution:  -> not a bug
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



[issue28376] rangeiter_new fails when creating a range of step 0

2016-10-08 Thread Oren Milman

Oren Milman added the comment:

Alright, just added 'with test.support.check_warnings(('', 
DeprecationWarning)):'.
*ver4.diff is attached.
I ran the tests again (this time using 'python_d.exe -We -m test -j3'), and 
they were successful :)

That was totally my bad, of course, but anyway, ISTM that 
https://docs.python.org/devguide/index.html should say './python -We -m test 
-j3' in section 4 (Run the tests).

--
Added file: http://bugs.python.org/file45022/issue28376_CPython36_ver4.diff

___
Python tracker 

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



[issue27998] Bytes paths now are supported in os.scandir() on Windows

2016-10-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Now it is documentation issue again.

--
keywords:  -patch
priority: release blocker -> normal
stage: patch review -> needs patch

___
Python tracker 

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



[issue27998] Bytes paths now are supported in os.scandir() on Windows

2016-10-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4ed634870a9a by Serhiy Storchaka in branch '3.6':
Issue #27998: Fixed bytes path support in os.scandir() on Windows.
https://hg.python.org/cpython/rev/4ed634870a9a

New changeset 837114dea493 by Serhiy Storchaka in branch 'default':
Issue #27998: Fixed bytes path support in os.scandir() on Windows.
https://hg.python.org/cpython/rev/837114dea493

--

___
Python tracker 

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



[issue27998] Bytes paths now are supported in os.scandir() on Windows

2016-10-08 Thread Eryk Sun

Eryk Sun added the comment:

With the patch I uploaded, test_glob and test_os BytesWalkTests both pass, in 
both Windows 10 and Linux. Without it those tests fail for me in Windows 10.

--

___
Python tracker 

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



[issue28376] rangeiter_new fails when creating a range of step 0

2016-10-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thanks Oren. Patches for 3.5 and 3.7 LGTM, the patch for 3.6 should be fixed. 
Tests should pass with -Wa and -We.

No need to attach test output. Just check that your patch doesn't add a 
regression.

--

___
Python tracker 

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



[issue27998] Bytes paths now are supported in os.scandir() on Windows

2016-10-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you Eryk. The patch LGTM. Did you tested that it fixes tests?

--

___
Python tracker 

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



[issue28376] rangeiter_new fails when creating a range of step 0

2016-10-08 Thread Oren Milman

Changes by Oren Milman :


Added file: http://bugs.python.org/file45021/patchedCPython37TestOutput_ver3.txt

___
Python tracker 

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



[issue28376] rangeiter_new fails when creating a range of step 0

2016-10-08 Thread Oren Milman

Changes by Oren Milman :


Added file: http://bugs.python.org/file45019/issue28376_CPython37_ver3.diff

___
Python tracker 

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



[issue28376] rangeiter_new fails when creating a range of step 0

2016-10-08 Thread Oren Milman

Oren Milman added the comment:

The diff files for 3.6 and 3.7 are attached (named '*ver3.diff').
Changes:
- in 3.6, added:
* raising a DeprecationWarning in rangeiter_new
* a test to verify the DeprecationWarning is raised
- in 3.7:
* changed the tests so they would only verify a TypeError is raised 
when calling either range_iterator or longrange_iterator
* removed the test.support.cpython_only decorator of the test

The output of 'python_d.exe -m test -j3' for each version is also attached 
(they were both successful).

--
Added file: http://bugs.python.org/file45018/issue28376_CPython36_ver3.diff

___
Python tracker 

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



[issue28376] rangeiter_new fails when creating a range of step 0

2016-10-08 Thread Oren Milman

Changes by Oren Milman :


Added file: http://bugs.python.org/file45020/patchedCPython36TestOutput_ver3.txt

___
Python tracker 

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



[issue27998] Bytes paths now are supported in os.scandir() on Windows

2016-10-08 Thread Eryk Sun

Eryk Sun added the comment:

Here's an alternative patch, using PyUnicode_FSDecoder. It also adds 
path_object_error and path_object_error2 helper functions.

--
Added file: http://bugs.python.org/file45017/issue_27998_01.patch

___
Python tracker 

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



[issue28389] xmlrpc.client HTTP proxy example code does not work

2016-10-08 Thread Berker Peksag

Changes by Berker Peksag :


--
type: crash -> behavior
versions: +Python 3.6, Python 3.7 -Python 3.4

___
Python tracker 

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



[issue28389] xmlrpc.client HTTP proxy example code does not work

2016-10-08 Thread Attila Vangel

Attila Vangel added the comment:

It's my pleasure.
It was somewhat similar:
- the set_proxy() is the same
- for the make_connection() I gave the necessary clues, so one can create the 
code and you can use that in a way that I don't have to spend time on the PSF 
Contributor Agreement
- overriding send_request() is not necessary at all, because the HTTP proxying 
is done in http.client level

--
type: behavior -> crash
versions: +Python 3.4 -Python 3.6, Python 3.7

___
Python tracker 

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



[issue28389] xmlrpc.client HTTP proxy example code does not work

2016-10-08 Thread Berker Peksag

Berker Peksag added the comment:

Thanks. I guess your solution was similar to the attached patch?

--
keywords: +patch
stage:  -> patch review
type: crash -> behavior
versions: +Python 3.6, Python 3.7 -Python 3.4
Added file: http://bugs.python.org/file45016/issue28389.diff

___
Python tracker 

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



[issue26906] Special method lookup fails on uninitialized types

2016-10-08 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
title: Special method lookup fails on unitialized types -> Special method 
lookup fails on uninitialized types

___
Python tracker 

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



[issue25720] Fix curses module compilation with ncurses6

2016-10-08 Thread Masayuki Yamamoto

Masayuki Yamamoto added the comment:

Added comment in review.

Yen,  I tried to build without curses.h file (overwrite to ncurses.h). It was 
failed on checking header. Hence, I confirmed curses headers on Cygwin and 
Ubuntu.

I found out that curses.h includes the directive "#include ". And 
unctrl.h has "#include ". Therefore, I think that some platforms 
require curses.h.
Would you confirm your platform curses library?

--

___
Python tracker 

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



[issue28385] Bytes objects should reject all formatting codes with an error message

2016-10-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Sorry, but it looks to me that issue28385.diff solves wrong issue. The issue is 
not in bytes, but in default __format__. object.__format__ should raise an 
error message that contains the name of the actual type. There are other issues 
with object.__format__, following patch tries to solve them.

1. Error message now contains the name of the actual type.

2. Format spec is checked before converting the value to str. Converting bytes 
and bytearray to str can raise a BytesWarning, and it is better if the type of 
this error doesn't depend on the -b option.

3. Since format spec is always empty, avoid calling PyObject_Format(). In 
theory PyObject_Str() can raise a subclass of str with non-trivial __format__, 
but I think we can ignore this subtle behavior difference.

--
nosy: +serhiy.storchaka
Added file: http://bugs.python.org/file45015/object___format__.patch

___
Python tracker 

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



[issue28385] Bytes objects should reject all formatting codes with an error message

2016-10-08 Thread Eric V. Smith

Eric V. Smith added the comment:

I left a comment on Rietveld, but repeating it here because for me those 
messages often go to spam:

I think you want to make this more general, by modifying the message for the 
TypeError that follows. Any type that doesn't provide it's own __format__ 
should produce an error when using a non-empty format string.

For example:

>>> format({}, 'a')
Traceback (most recent call last):
  File "", line 1, in 
TypeError: non-empty format string passed to object.__format__

Would be better as:
TypeError: non-empty format string passed to __format__ for object of type 
"class <'dict'>"

(Or some prettier way to print out the type).

--

___
Python tracker 

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



[issue28389] xmlrpc.client HTTP proxy example code does not work

2016-10-08 Thread Attila Vangel

Attila Vangel added the comment:

Hi, thx for the quick turnaround.
I tried the proxy.py (on python 3.5) of course replacing 'YOUR_PROXY' with 
'10.144.1.11:8080' according to my environment.

python3 proxy.py 
Traceback (most recent call last):
  File "proxy.py", line 27, in 
print(server.examples.getStateName(41))
  File "/usr/lib/python3.5/xmlrpc/client.py", line 1092, in __call__
return self.__send(self.__name, args)
  File "/usr/lib/python3.5/xmlrpc/client.py", line 1432, in __request
verbose=self.__verbose
  File "/usr/lib/python3.5/xmlrpc/client.py", line 1134, in request
return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python3.5/xmlrpc/client.py", line 1147, in single_request
resp = http_conn.getresponse()
  File "/usr/lib/python3.5/http/client.py", line 1197, in getresponse
response.begin()
  File "/usr/lib/python3.5/http/client.py", line 297, in begin
version, status, reason = self._read_status()
  File "/usr/lib/python3.5/http/client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.5/socket.py", line 575, in readinto
return self._sock.recv_into(b)
ConnectionResetError: [Errno 104] Connection reset by peer


However, meanwhile I studied a bit the http.client API on how to use HTTP 
proxy, and I found set_tunnel() can do it. I had success by only overriding 
make_connection() in ProxiedTransport:
- copy current code of make_connection() from xmlrpc.client.Transport to 
ProxiedTransport (NOTE, this itself violates the DRY principle, but there is no 
better way to do it), change it slightly:
- create HTTPSConnection to the proxy (as I wanted to access a https URL)
- use .set_tunnel(chost) on this connection

I did not want to paste the code here, because
- I did not want to fill the 'PSF Contributor Agreement', at least yet
- it may be Python version specific solution.

--

___
Python tracker 

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



[issue28390] Wrong heading levels in whatsnew/3.6

2016-10-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3ee15bd35902 by Berker Peksag in branch '3.6':
Issue #28390: Fix header levels in whatsnew/3.6.rst
https://hg.python.org/cpython/rev/3ee15bd35902

New changeset 43b1b3c883ff by Berker Peksag in branch 'default':
Issue #28390: Merge from 3.6
https://hg.python.org/cpython/rev/43b1b3c883ff

--
nosy: +python-dev

___
Python tracker 

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



[issue28390] Wrong heading levels in whatsnew/3.6

2016-10-08 Thread Berker Peksag

Berker Peksag added the comment:

Thanks!

--
nosy: +berker.peksag
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



[issue28389] xmlrpc.client HTTP proxy example code does not work

2016-10-08 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the report. Can you try the attached script?

--
nosy: +berker.peksag
Added file: http://bugs.python.org/file45014/proxy.py

___
Python tracker 

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



[issue28390] Wrong heading levels in whatsnew/3.6

2016-10-08 Thread SilentGhost

New submission from SilentGhost:

Couple of headings in whatsnew/3.6.rst have wrong level. The patch fixes this.

--
assignee: docs@python
components: Documentation
files: headings.diff
keywords: patch
messages: 278296
nosy: SilentGhost, docs@python
priority: normal
severity: normal
stage: patch review
status: open
title: Wrong heading levels in whatsnew/3.6
type: behavior
versions: Python 3.6, Python 3.7
Added file: http://bugs.python.org/file45013/headings.diff

___
Python tracker 

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



[issue28023] python-gdb.py must be updated for the new Python 3.6 compact dict

2016-10-08 Thread INADA Naoki

INADA Naoki added the comment:

Could someone review this before 3.6b2?
Without this patch, python-gdb.py causes many RuntimeError.

--
keywords: +needs review
stage:  -> patch review

___
Python tracker 

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



[issue26081] Implement asyncio Future in C to improve performance

2016-10-08 Thread INADA Naoki

INADA Naoki added the comment:

Fixed overriding Future._repr_info().
But I failed to implement overridable Future.__del__ in C yet.

(FYI, fastfuture2.patch passes tests by mix-in __del__ and __repr__)

--
Added file: http://bugs.python.org/file45012/fastfuture3.patch

___
Python tracker 

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



[issue28385] Bytes objects should reject all formatting codes with an error message

2016-10-08 Thread Berker Peksag

Berker Peksag added the comment:

Here's a patch. Changes in test_builtin might be redundant, but I added them 
anyway.

--
keywords: +patch
nosy: +berker.peksag
stage: needs patch -> patch review
Added file: http://bugs.python.org/file45011/issue28385.diff

___
Python tracker 

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



[issue28389] xmlrpc.client HTTP proxy example code does not work

2016-10-08 Thread Attila Vangel

Attila Vangel added the comment:

I tested it also on Python 3.4.3. I got the same error.

--

___
Python tracker 

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



[issue28389] xmlrpc.client HTTP proxy example code does not work

2016-10-08 Thread Attila Vangel

Changes by Attila Vangel :


--
versions: +Python 3.4

___
Python tracker 

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



[issue28389] xmlrpc.client HTTP proxy example code does not work

2016-10-08 Thread Attila Vangel

New submission from Attila Vangel:

Go to https://docs.python.org/3/library/xmlrpc.client.html
Under '21.26.8. Example of Client Usage' -> 'To access an XML-RPC 
server through a HTTP proxy, you need to define a custom transport. The 
following example shows how:' copy the example code to a .py file (for 
me it is easier than REPL), e.g. xmlrpc_client_http_proxy_test.py

This is the example code:

import xmlrpc.client, http.client

class ProxiedTransport(xmlrpc.client.Transport):
def set_proxy(self, proxy):
self.proxy = proxy

def make_connection(self, host):
self.realhost = host
h = http.client.HTTPConnection(self.proxy)
return h

def send_request(self, connection, handler, request_body, debug):
connection.putrequest("POST", 'http://%s%s' % (self.realhost, handler))

def send_host(self, connection, host):
connection.putheader('Host', self.realhost)

p = ProxiedTransport()
p.set_proxy('proxy-server:8080')
server = xmlrpc.client.ServerProxy('http://time.xmlrpc.com/RPC2', transport=p)
print(server.currentTime.getCurrentTime())


I changed the 'proxy-server:8080' to '10.144.1.11:8080' which is a 
valid HTTP/HTTPS proxy in company I work for.

Try to run this code:

$ python3 xmlrpc_client_http_proxy_test.py 
Traceback (most recent call last):
  File "xmlrpc_client_http_proxy_test.py", line 21, in 
print(server.currentTime.getCurrentTime())
  File "/usr/lib/python3.5/xmlrpc/client.py", line 1092, in __call__
return self.__send(self.__name, args)
  File "/usr/lib/python3.5/xmlrpc/client.py", line 1432, in __request
verbose=self.__verbose
  File "/usr/lib/python3.5/xmlrpc/client.py", line 1134, in request
return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python3.5/xmlrpc/client.py", line 1146, in single_request
http_conn = self.send_request(host, handler, request_body, verbose)
  File "xmlrpc_client_http_proxy_test.py", line 13, in send_request
connection.putrequest("POST", 'http://%s%s' % (self.realhost, handler))
AttributeError: 'str' object has no attribute 'putrequest'

Personally I don't like the idea of putting this amount of code to 
documentation:
- as it seems, without automated tests running it, the code seems to rot, and 
gets outdated
- I need to paste this boilerplate code to my application if I want 
this functionality.

IMHO it would be much better to move this ProxiedTransport example code 
(after fixing it) to e.g. xmlrpc.client.HttpProxyTransport
(or similar name) class.

Details about python3:
$ python3
Python 3.5.2 (default, Sep 10 2016, 08:21:44) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

--
assignee: docs@python
components: Documentation
files: xmlrpc_client_http_proxy_test.py
messages: 278291
nosy: avangel, docs@python
priority: normal
severity: normal
status: open
title: xmlrpc.client HTTP proxy example code does not work
type: crash
versions: Python 3.5
Added file: http://bugs.python.org/file45010/xmlrpc_client_http_proxy_test.py

___
Python tracker 

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



[issue26906] Special method lookup fails on unitialized types

2016-10-08 Thread Oren Milman

Oren Milman added the comment:

(Just to save time for anyone interested)
The last demonstration of the bug Serhiy mentioned is caused by the following 
(this was right only until Serhiy's patch earlier today):
- before importing collections.abc, str_iterator is not initialized, which 
means:
* Its tp_mro is NULL.
* _PyType_Lookup returns NULL (when called to lookup __length_hint__ in 
str_iterator (as part of operator.length_hint))
- on import, collections.abc also does 'Iterator.register(str_iterator)', 
which leads to the following call chain: ABCMeta.register(Iterator, 
str_iterator) => issubclass(str_iterator, Iterator) => 
PyObject_IsSubclass(str_iterator, Iterator) => 
Iterator.__subclasscheck__(Iterator, str_iterator) => 
Iterator.__subclasshook__(str_iterator) => 
collections.abc._check_methods(str_iterator, '__iter__', '__next__')
And _check_methods first does 'mro = C.__mro__', which ultimately calls 
type_getattro (which calls PyType_Ready in case tp_dict is NULL).


Anyway, with regard to the disconcerting comment:
/* If mro is NULL, the type is either not yet initialized
   by PyType_Ready(), or already cleared by type_clear().
   Either way the safest thing to do is to return NULL. */
Sorry for the newbie question, but why not add a Py_TPFLAGS_CLEARED flag to 
tp_flags?
Then we could assert in _PyType_Lookup (and maybe also in other places that 
call PyType_Ready, such as type_getattro) that the Py_TPFLAGS_CLEARED is not 
set..

I realize adding such a flag is really a big deal, but maybe it's worth 
catching sneaky bugs caused by Python's equivalent of Use-After-Free bugs?

--
nosy: +Oren Milman

___
Python tracker 

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



[issue28214] Improve exception reporting for problematic __set_name__ attributes

2016-10-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

What error messages you want for these cases?

--

___
Python tracker 

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



[issue28317] Improve support of FORMAT_VALUE in dis

2016-10-08 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


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



[issue28317] Improve support of FORMAT_VALUE in dis

2016-10-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5e81d14a52f7 by Serhiy Storchaka in branch '3.6':
Issue #28317: The disassembler now decodes FORMAT_VALUE argument.
https://hg.python.org/cpython/rev/5e81d14a52f7

New changeset 085944763f3a by Serhiy Storchaka in branch 'default':
Issue #28317: The disassembler now decodes FORMAT_VALUE argument.
https://hg.python.org/cpython/rev/085944763f3a

--
nosy: +python-dev

___
Python tracker 

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



[issue26906] Special method lookup fails on unitialized types

2016-10-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset bbaf6c928526 by Serhiy Storchaka in branch '3.5':
Issue #26906: Resolving special methods of uninitialized type now causes
https://hg.python.org/cpython/rev/bbaf6c928526

New changeset 3119f08802a5 by Serhiy Storchaka in branch '2.7':
Issue #26906: Resolving special methods of uninitialized type now causes
https://hg.python.org/cpython/rev/3119f08802a5

New changeset 888a26fac9d2 by Serhiy Storchaka in branch '3.6':
Issue #26906: Resolving special methods of uninitialized type now causes
https://hg.python.org/cpython/rev/888a26fac9d2

New changeset d24f1467a297 by Serhiy Storchaka in branch 'default':
Issue #26906: Resolving special methods of uninitialized type now causes
https://hg.python.org/cpython/rev/d24f1467a297

--
nosy: +python-dev

___
Python tracker 

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



[issue26906] Special method lookup fails on unitialized types

2016-10-08 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
title: format(object.__reduce__) fails intermittently -> Special method lookup 
fails on unitialized types

___
Python tracker 

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



[issue27998] Bytes paths now are supported in os.scandir() on Windows

2016-10-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I suppose the following patch should fix the issue. Could anybody please test 
it on Windows?

--
assignee: docs@python -> serhiy.storchaka
stage: needs patch -> patch review
Added file: http://bugs.python.org/file45009/direntry_bytes_path.patch

___
Python tracker 

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



[issue27998] Bytes paths now are supported in os.scandir() on Windows

2016-10-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Hmm, tests are passed on some Windows buildbots, but failed on others.

http://buildbot.python.org/all/builders/AMD64%20Windows10%203.x/builds/1631/steps/test/logs/stdio
==
ERROR: test_walk_topdown (test.test_os.BytesWalkTests)
--
Traceback (most recent call last):
  File "D:\buildarea\3.x.bolen-windows10\build\lib\test\test_os.py", line 890, 
in test_walk_topdown
all = list(self.walk(self.walk_path))
  File "D:\buildarea\3.x.bolen-windows10\build\lib\test\test_os.py", line 1055, 
in walk
for broot, bdirs, bfiles in os.walk(os.fsencode(top), **kwargs):
  File "D:\buildarea\3.x.bolen-windows10\build\lib\os.py", line 409, in walk
yield from walk(new_path, topdown, onerror, followlinks)
  File "D:\buildarea\3.x.bolen-windows10\build\lib\os.py", line 367, in walk
is_dir = entry.is_dir()
TypeError: bad argument type for built-in operation

--

The error message is not very informative. Seems like some C API function takes 
an argument of wrong type (e.g. bytes instead of unicode).

--
nosy: +ned.deily
priority: normal -> release blocker

___
Python tracker 

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