[issue36664] argparse: parser aliases in subparsers stores alias in dest variable

2019-04-20 Thread paul j3


paul j3  added the comment:

https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.add_subparsers

shows how to use `set_defaults` in a parser to set a 'func' attribute.  That 
method could just as well be used to set the true 'name' or any other kind of 
attribute that is unique to that parser.  

I think we should leave the code as is, storing the aliases in the subparsers' 
'dest'.  It's been that way since aliases were added, and changing it runs the 
risk of creating backward compatibility issues.  

There are enough work arounds if you don't want the aliases.

--

___
Python tracker 

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



[issue36683] duplicate method definition in Lib/test/test_utf8_mode.py

2019-04-20 Thread Windson Yang


Change by Windson Yang :


--
keywords: +patch
pull_requests: +12821
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



[issue36682] duplicate method definitions in Lib/test/test_sys_setprofile.py

2019-04-20 Thread Windson Yang


Change by Windson Yang :


--
pull_requests: +12820

___
Python tracker 

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



[issue36682] duplicate method definitions in Lib/test/test_sys_setprofile.py

2019-04-20 Thread Windson Yang


Change by Windson Yang :


--
keywords: +patch
pull_requests: +12819
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



[issue36686] Docs: asyncio.loop.subprocess_exec documentation is confusing, it's not clear how to inherit stdin, stdout or stderr in the subprocess

2019-04-20 Thread Simon Bernier St-Pierre


Simon Bernier St-Pierre  added the comment:

Could be cool to also mention that `encoding` / `errors` does not work yet. 
https://bugs.python.org/issue31087

--

___
Python tracker 

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



[issue36681] duplicate method definition in Lib/test/test_logging.py

2019-04-20 Thread Windson Yang


Change by Windson Yang :


--
keywords: +patch
pull_requests: +12818
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



[issue36680] duplicate method definition in Lib/test/test_importlib/test_util.py

2019-04-20 Thread Windson Yang


Change by Windson Yang :


--
keywords: +patch
pull_requests: +12817
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



[issue36687] subprocess encoding

2019-04-20 Thread Simon Bernier St-Pierre


Change by Simon Bernier St-Pierre :


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



[issue36687] subprocess encoding

2019-04-20 Thread Simon Bernier St-Pierre


Change by Simon Bernier St-Pierre :


--
nosy: sbstp
priority: normal
severity: normal
status: open
title: subprocess encoding

___
Python tracker 

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



[issue36686] Docs: asyncio.loop.subprocess_exec documentation is confusing, it's not clear how to inherit stdin, stdout or stderr in the subprocess

2019-04-20 Thread Simon Bernier St-Pierre

New submission from Simon Bernier St-Pierre :

I had trouble figuring out how to simply inherit stdin, stdout, or stderr in 
the asyncio.create_subprocess_exec / asyncio.subprocess_exec docs. My 
experiments show that passing either None or `sys.std*` works but the way the 
docs are written make it hard to figure that out in my opinion.

> stdout: either a file-like object representing the pipe to be connected to 
> the subprocess’s standard output stream using connect_read_pipe(), or the 
> subprocess.PIPE constant (default). By default a new pipe will be created and 
> connected.

I would add a mention that using None makes the subprocess inherit the file 
descriptor.

--
components: asyncio
messages: 340593
nosy: asvetlov, sbstp, yselivanov
priority: normal
severity: normal
status: open
title: Docs: asyncio.loop.subprocess_exec documentation is confusing, it's not 
clear how to inherit stdin, stdout or stderr in the subprocess
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue36679] duplicate method definition in Lib/test/test_genericclass.py

2019-04-20 Thread Windson Yang


Change by Windson Yang :


--
keywords: +patch
pull_requests: +12816
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



[issue32424] Synchronize copy methods between Python and C implementations of xml.etree.ElementTree.Element

2019-04-20 Thread Gordon P. Hemsley


Gordon P. Hemsley  added the comment:

Opened issue36685 for discussion of the attrib copy issue.

--

___
Python tracker 

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



[issue36685] C implementation of xml.etree.ElementTree does not make a copy of attrib argument when creating new Element

2019-04-20 Thread Gordon P. Hemsley


Gordon P. Hemsley  added the comment:

My proposed solution to this was to make a copy of the attrib dictionary in the 
create_new_element() method in the C implementation, which solves the problem. 
However, this was apparently objected to on the grounds of performance.

Not knowing C very well, any guidance on a better way to fix this would be 
appreciated. :)

--

___
Python tracker 

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



[issue36685] C implementation of xml.etree.ElementTree does not make a copy of attrib argument when creating new Element

2019-04-20 Thread Gordon P. Hemsley


New submission from Gordon P. Hemsley :

In the process of investigating and writing tests for issue32424, I discovered 
that the C implementation of xml.etree.ElementTree does not make a copy of the 
attrib argument when creating a new element, allowing the attributes of the 
element to be modified outside of creation.

The Python implementation does not have this problem.

--
components: Library (Lib), XML
messages: 340590
nosy: asvetlov, eli.bendersky, gphemsley, mdk, p-ganssle, r.david.murray, 
scoder, serhiy.storchaka, thatiparthy
priority: normal
severity: normal
status: open
title: C implementation of xml.etree.ElementTree does not make a copy of attrib 
argument when creating new Element
type: behavior
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue32424] Synchronize copy methods between Python and C implementations of xml.etree.ElementTree.Element

2019-04-20 Thread Gordon P. Hemsley


Gordon P. Hemsley  added the comment:

Taking a step back, I want to make sure I understand the action items for 
resolving this:
* Add copy() as an alias to __copy__() in the C implementation to match the 
Python implementation.
* Deprecate copy() in favor of copy.copy() in both the Python and C 
implementations, bypassing a PendingDeprecation step because the 
implementations have been out of sync for so long as it is.

Any other issues discussed here are orthogonal to the goal of this ticket.

Are we in agreement on this?

--
versions: +Python 3.8, Python 3.9 -Python 3.7

___
Python tracker 

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



[issue36684] codecov.io code coverage has not updated since 2019-04-13

2019-04-20 Thread Gordon P. Hemsley


New submission from Gordon P. Hemsley :

The last commit available on codecov.io is from a week ago 
(d28aaa7df8bcd46f4135d240d041b0b171b664cc):
https://codecov.io/gh/python/cpython

And the widget on the README is showing a status of "unknown".

--
messages: 340588
nosy: gphemsley
priority: normal
severity: normal
status: open
title: codecov.io code coverage has not updated since 2019-04-13

___
Python tracker 

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



[issue28724] Add method send_io, recv_io to the socket module.

2019-04-20 Thread Joannah Nanjekye


Change by Joannah Nanjekye :


--
nosy: +nanjekyejoannah

___
Python tracker 

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



[issue28724] Add method send_io, recv_io to the socket module.

2019-04-20 Thread Joannah Nanjekye


Change by Joannah Nanjekye :


--
pull_requests: +12815
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



[issue36650] Cached method implementation no longer works on Python 3.7.3

2019-04-20 Thread Matej Cepl


Change by Matej Cepl :


--
nosy: +mcepl

___
Python tracker 

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



[issue36650] Cached method implementation no longer works on Python 3.7.3

2019-04-20 Thread Raymond Hettinger


Change by Raymond Hettinger :


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



[issue36650] Cached method implementation no longer works on Python 3.7.3

2019-04-20 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset 8b30ee843528d0f0e2bfc3307d86658915579c21 by Raymond Hettinger 
(Miss Islington (bot)) in branch '3.7':
bpo-36650: Fix handling of empty keyword args in C version of lru_cache. 
(GH-12881) (GH-12888)
https://github.com/python/cpython/commit/8b30ee843528d0f0e2bfc3307d86658915579c21


--

___
Python tracker 

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



[issue36650] Cached method implementation no longer works on Python 3.7.3

2019-04-20 Thread miss-islington


Change by miss-islington :


--
pull_requests: +12814

___
Python tracker 

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



[issue36650] Cached method implementation no longer works on Python 3.7.3

2019-04-20 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset 14adbd45980f705cb6554ca17b8a66b56e105296 by Raymond Hettinger in 
branch 'master':
bpo-36650: Fix handling of empty keyword args in C version of lru_cache. 
(GH-12881)
https://github.com/python/cpython/commit/14adbd45980f705cb6554ca17b8a66b56e105296


--

___
Python tracker 

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



[issue36008] [good first issue] Update documentation for 3.8

2019-04-20 Thread Utkarsh Gupta


Change by Utkarsh Gupta :


--
keywords: +patch
pull_requests: +12813
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



[issue16079] list duplicate test names with patchcheck

2019-04-20 Thread Xavier de Gaye


Xavier de Gaye  added the comment:

PR 12886 adds a check on duplicate method definitions to the travis() function 
of patchcheck.py.

False positives must be entered to Tools/scripts/duplicates_ignored.txt.

The existing duplicates have been entered to this file (with the corresponding 
bpo issue number in comment) and no duplicates are found currently by 
duplicate_meth_defs.py when run with '--ignore duplicates_ignored.txt'. It is 
expected that these entries would be removed from this file when their issues 
are closed.

--

___
Python tracker 

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



[issue16079] list duplicate test names with patchcheck

2019-04-20 Thread Xavier de Gaye


Change by Xavier de Gaye :


--
pull_requests: +12812

___
Python tracker 

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



[issue16079] list duplicate test names with patchcheck

2019-04-20 Thread Xavier de Gaye


Xavier de Gaye  added the comment:

List of issues entered for all the current duplicate method definitions:

#19113 #19119 #36678 #36679
#36680 #36681 #36682 #36683

--

___
Python tracker 

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



[issue36678] duplicate method definitions in Lib/test/test_dataclasses.py

2019-04-20 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +eric.smith

___
Python tracker 

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



[issue36683] duplicate method definition in Lib/test/test_utf8_mode.py

2019-04-20 Thread Xavier de Gaye


New submission from Xavier de Gaye :

As reported in issue 16079, the following method is a duplicate:

Lib/test/test_utf8_mode.py: UTF8ModeTests.test_io_encoding

--
components: Library (Lib)
messages: 340583
nosy: xdegaye
priority: normal
severity: normal
stage: needs patch
status: open
title: duplicate method definition in Lib/test/test_utf8_mode.py
type: behavior
versions: Python 3.8

___
Python tracker 

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



[issue36682] duplicate method definitions in Lib/test/test_sys_setprofile.py

2019-04-20 Thread Xavier de Gaye


New submission from Xavier de Gaye :

As reported in issue 16079, the following methods are duplicates:

Lib/test/test_sys_setprofile.py:354 
ProfileSimulatorTestCase.test_unbound_method_no_args
Lib/test/test_sys_setprofile.py:363 
ProfileSimulatorTestCase.test_unbound_method_invalid_args

--
components: Library (Lib)
messages: 340582
nosy: xdegaye
priority: normal
severity: normal
stage: needs patch
status: open
title: duplicate method definitions in Lib/test/test_sys_setprofile.py
type: behavior
versions: Python 3.8

___
Python tracker 

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



[issue36681] duplicate method definition in Lib/test/test_logging.py

2019-04-20 Thread Xavier de Gaye


New submission from Xavier de Gaye :

As reported in issue 16079, the following method is a duplicate:

Lib/test/test_logging.py:328 BuiltinLevelsTest.test_regression_29220

--
components: Library (Lib)
messages: 340581
nosy: xdegaye
priority: normal
severity: normal
stage: needs patch
status: open
title: duplicate method definition in  Lib/test/test_logging.py
type: behavior
versions: Python 3.8

___
Python tracker 

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



[issue36680] duplicate method definition in Lib/test/test_importlib/test_util.py

2019-04-20 Thread Xavier de Gaye


New submission from Xavier de Gaye :

As reported in issue 16079, the following method is a duplicate:

Lib/test/test_importlib/test_util.py:755 
PEP3147Tests.test_source_from_cache_path_like_arg

--
components: Library (Lib)
messages: 340580
nosy: xdegaye
priority: normal
severity: normal
stage: needs patch
status: open
title: duplicate method definition in  Lib/test/test_importlib/test_util.py
type: behavior
versions: Python 3.8

___
Python tracker 

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



[issue36679] duplicate method definition in Lib/test/test_genericclass.py

2019-04-20 Thread Xavier de Gaye


New submission from Xavier de Gaye :

As reported in issue 16079, the following method is a duplicate:

Lib/test/test_genericclass.py:161 TestClassGetitem.test_class_getitem

--
components: Library (Lib)
messages: 340579
nosy: xdegaye
priority: normal
severity: normal
stage: needs patch
status: open
title: duplicate method definition in Lib/test/test_genericclass.py
type: behavior
versions: Python 3.8

___
Python tracker 

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



[issue36678] duplicate method definitions in Lib/test/test_dataclasses.py

2019-04-20 Thread Xavier de Gaye


New submission from Xavier de Gaye :

As reported in issue 16079, the following methodes are duplicates:

Lib/test/test_dataclasses.py:700 TestCase.test_not_tuple
Lib/test/test_dataclasses.py:1406 TestCase.test_helper_asdict_builtin_containers
Lib/test/test_dataclasses.py:1579 
TestCase.test_helper_astuple_builtin_containers
Lib/test/test_dataclasses.py:3245 TestReplace.test_recursive_repr_two_attrs

--
components: Library (Lib)
messages: 340578
nosy: xdegaye
priority: normal
severity: normal
stage: needs patch
status: open
title: duplicate method definitions in Lib/test/test_dataclasses.py
type: behavior
versions: Python 3.8

___
Python tracker 

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



[issue36661] Missing dataclass decorator import in dataclasses module docs

2019-04-20 Thread Eric V. Smith


Eric V. Smith  added the comment:

I definitely think any missing import from typing should be added.

--

___
Python tracker 

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



[issue36670] test suite broken due to cpu usage feature on win 10/ german

2019-04-20 Thread Eryk Sun


Eryk Sun  added the comment:

> It'll probably be mbcs or oem encoding. Certainly not UTF-8

Unless the system locale's codepage is set to UTF-8 in Windows 10. 

I stepped through this in the debugger. When writing to a pipe, typeperf.exe 
calls WideCharToMultiByte(CP_OEMCP, ...), so it's "oem".

--
nosy: +eryksun

___
Python tracker 

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



[issue36670] test suite broken due to cpu usage feature on win 10/ german

2019-04-20 Thread Steve Dower


Steve Dower  added the comment:

It'll probably be mbcs or oem encoding. Certainly not UTF-8

--

___
Python tracker 

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



[issue35792] Specifying AbstractEventLoop.run_in_executor as a coroutine conflicts with implementation/intent

2019-04-20 Thread Christopher Hunt


Christopher Hunt  added the comment:

For impl.1:

> (very breaking change)

should be

> (very breaking change, mitigated some by the fact that the implementation 
> will warn about the unawaited future)

--

___
Python tracker 

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



[issue36677] support visual studio multiprocess compile

2019-04-20 Thread Manjusaka


Change by Manjusaka :


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



[issue36677] support visual studio multiprocess compile

2019-04-20 Thread Manjusaka


New submission from Manjusaka :

Support multiprocess compile when the developer uses the Visual studio on the 
Windows

--
components: Windows
messages: 340573
nosy: Manjusaka, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: support visual studio multiprocess compile
versions: Python 3.8, Python 3.9

___
Python tracker 

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



[issue36661] Missing dataclass decorator import in dataclasses module docs

2019-04-20 Thread Windson Yang


Windson Yang  added the comment:

I agreed most of the documents won't need the change, but some documents like 
https://docs.python.org/3/library/dataclasses.html#dataclasses.field didn't 
mention we have to run `from typing import List` and I guess most developers 
not familiar with this package. I suggest we should add the import statement 
for the uncommon package.

--

___
Python tracker 

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



[issue36676] Make ET.XMLParser target aware of namespace prefixes

2019-04-20 Thread Stefan Behnel


Change by Stefan Behnel :


--
nosy: +eli.bendersky, serhiy.storchaka
stage: patch review -> 

___
Python tracker 

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



[issue36676] Make ET.XMLParser target aware of namespace prefixes

2019-04-20 Thread Stefan Behnel


Change by Stefan Behnel :


--
keywords: +patch
pull_requests: +12810
stage:  -> patch review

___
Python tracker 

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



[issue36673] Comment/PI parsing support for ElementTree

2019-04-20 Thread Stefan Behnel


Change by Stefan Behnel :


--
pull_requests: +12811

___
Python tracker 

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



[issue36676] Make ET.XMLParser target aware of namespace prefixes

2019-04-20 Thread Stefan Behnel


Change by Stefan Behnel :


--
title: Make TreeBuilder aware of namespace prefixes -> Make ET.XMLParser target 
aware of namespace prefixes

___
Python tracker 

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



[issue36676] Make TreeBuilder aware of namespace prefixes

2019-04-20 Thread Stefan Behnel


New submission from Stefan Behnel :

The XMLPullParser has 'start-ns' and 'end-ns' events, but the parser targets 
don't see them. They should have "start_ns()" and "end_ns()" callback methods 
to allow namespace prefix aware parsing.

--
assignee: scoder
components: Library (Lib), XML
messages: 340571
nosy: scoder
priority: normal
severity: normal
status: open
title: Make TreeBuilder aware of namespace prefixes
type: enhancement
versions: Python 3.8

___
Python tracker 

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



[issue36675] Doctest directives and comments not visible or missing from code samples

2019-04-20 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +mdk

___
Python tracker 

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



[issue26219] implement per-opcode cache in ceval

2019-04-20 Thread Inada Naoki


Change by Inada Naoki :


--
pull_requests: +12809

___
Python tracker 

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



[issue36675] Doctest directives and comments not visible or missing from code samples

2019-04-20 Thread Steven D'Aprano


New submission from Steven D'Aprano :

(Apologies if this is the wrong place for reporting website bugs.)

The website is not rendering doctest directives or comments, either that or the 
comments have been stripped from the examples.

On the doctest page itself, all the comments are missing:

https://docs.python.org/3/library/doctest.html#directives

The first example says:

>>> print(list(range(20))) 
[0,   1,  2,  3,  4,  5,  6,  7,  8,  9,
10,  11, 12, 13, 14, 15, 16, 17, 18, 19]

but without the directive, the test would fail. Screen shot attached.

Doctest directives are also missing from here:

https://docs.python.org/3/library/ctypes.html



My browser: Firefox 45.1.1

Also checked with text browser "lynx".

--
assignee: docs@python
components: Documentation
files: missing_directives.png
messages: 340570
nosy: docs@python, steven.daprano
priority: normal
severity: normal
status: open
title: Doctest directives and comments not visible or missing from code samples
type: behavior
Added file: https://bugs.python.org/file48277/missing_directives.png

___
Python tracker 

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



[issue36674] "unittest.TestCase.debug" should honour "skip" (and other test controls)

2019-04-20 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +ezio.melotti, michael.foord, rbcollins

___
Python tracker 

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



[issue36674] "unittest.TestCase.debug" should honour "skip" (and other test controls)

2019-04-20 Thread Dieter Maurer


New submission from Dieter Maurer :

Currently, "TestCase.run" supports several features to control testing - among 
others, a test can be skipped via the attribute "__unittest_skip__". 
"TestCase.debug" ignores all those controls and calls the test method 
unconditionally.

I am using "zope.testrunner" to run test suites. Its "-D" option switches from 
"TestCase.run" to "TestCase.debug" in order to allow the analysis of the state 
of a failing test in the Python debugger. "-D" is typically used if a test in a 
larger suite failed and a detailed analysis is required to determine the 
failure's cause. It is important that this second run executes the same tests 
as the first run; it is not helpful when the second run fails in a test skipped 
in the first run. Therefore, "TestCase.debug" should honour all test controls 
supported by  "TestCase.run".

One could argue that the testsuite runner should implement this logic. However, 
this would force the runner to duplicate the test control logic using internal 
implementation details of "unittest". Conceptually, it is much nicer to have 
the test control encapsulated by "unittest".

--
components: Library (Lib)
messages: 340569
nosy: dmaurer
priority: normal
severity: normal
status: open
title: "unittest.TestCase.debug" should honour "skip" (and other test controls)
type: behavior
versions: Python 3.6

___
Python tracker 

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



[issue36661] Missing dataclass decorator import in dataclasses module docs

2019-04-20 Thread Eric V. Smith


Eric V. Smith  added the comment:

I won't discourage anyone from making such changes, but I don't think it's a 
real problem. I haven't seen that people are confused about needing to import 
the module being discussed in the documentation. I don't think there's any 
expectation that the code in the documentation is actually executable as-is. 
They're not doctests, after all.

--

___
Python tracker 

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



[issue36673] Comment/PI parsing support for ElementTree

2019-04-20 Thread Stefan Behnel


Change by Stefan Behnel :


--
nosy: +eli.bendersky, serhiy.storchaka

___
Python tracker 

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



[issue36673] Comment/PI parsing support for ElementTree

2019-04-20 Thread Stefan Behnel


Change by Stefan Behnel :


--
keywords: +patch
pull_requests: +12808
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



[issue36669] weakref proxy doesn't support the matrix multiplication operator

2019-04-20 Thread SilentGhost


Change by SilentGhost :


--
status: open -> pending

___
Python tracker 

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



[issue36671] str.lower() looses character information when working with UTF-8

2019-04-20 Thread SilentGhost


SilentGhost  added the comment:

This is the behaviour according to the Unicode standard version 11. This is not 
an oversight on part of CPython implementation, this character (among others) 
lowercases to two characters.

--
nosy: +SilentGhost
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



[issue36673] Comment/PI parsing support for ElementTree

2019-04-20 Thread Stefan Behnel


Stefan Behnel  added the comment:

This is related to issue9521 but not a strict duplicate, because fixing that 
would require actually adding comments and PIs to the tree when they are not 
within the root element. When they are, it's in line with the current tree 
model and this change will do it.

--

___
Python tracker 

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



[issue36673] Comment/PI parsing support for ElementTree

2019-04-20 Thread Stefan Behnel


New submission from Stefan Behnel :

The TreeBuilder in xml.etree.ElementTree ignores comments and processing 
instructions. It should at least have a way to pass them through, even if there 
is not currently a way to append comments and PIs to the tree when they appear 
*outside* of the root element.

The pull parser interface would directly benefit from this, because it can then 
report "comment" and "pi" events.

--
assignee: scoder
components: Library (Lib), XML
messages: 340565
nosy: scoder
priority: normal
severity: normal
stage: needs patch
status: open
title: Comment/PI parsing support for ElementTree
type: enhancement
versions: Python 3.8

___
Python tracker 

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



[issue36672] A compiler warning in winreg.SetValue()

2019-04-20 Thread Zackery Spytz


Change by Zackery Spytz :


--
keywords: +patch
pull_requests: +12807
stage:  -> patch review

___
Python tracker 

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



[issue36672] A compiler warning in winreg.SetValue()

2019-04-20 Thread Zackery Spytz


New submission from Zackery Spytz :

The warning can be seen on some buildbots (e.g. 
https://buildbot.python.org/all/#/builders/12/builds/2269).

d:\buildarea\3.x.ware-win81-release\build\pc\winreg.c(1617): warning C4244: 
'function': conversion from 'Py_ssize_clean_t' to 'DWORD', possible loss of data

--
components: Windows
messages: 340564
nosy: ZackerySpytz, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: A compiler warning in winreg.SetValue()
versions: Python 3.8

___
Python tracker 

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



[issue36671] str.lower() looses character information when working with UTF-8

2019-04-20 Thread Kadam Parikh

New submission from Kadam Parikh :

When converting a particular UTF-8 character "İ" to lowercase, it doesn't 
behave correctly. It returns two lowercase characters instead of one. This is 
not as desired.

Code:

>>> print("\u0130")
İ
>>> print("\u0130".lower())
i̇
>>>

--
components: Unicode
messages: 340563
nosy: Kadam Parikh, ezio.melotti, vstinner
priority: normal
severity: normal
status: open
title: str.lower() looses character information when working with UTF-8
type: behavior
versions: Python 3.6

___
Python tracker 

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



[issue36670] test suite broken due to cpu usage feature on win 10/ german

2019-04-20 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

'crash' mean *nix coredump or Windows equivelent, rather than traceback.

--
components: +Windows
nosy: +paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
type: crash -> behavior

___
Python tracker 

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