[issue22246] add strptime(s, '%s')

2019-04-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

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

2019-04-20 Thread Stefan Behnel
Stefan Behnel added the comment: We should not add anything to the implementation that we consider legacy elsewhere. Py3 has "always" used the C accelerator module instead of the Python implementation, which suggests that its interface is probably the righter one. So: make sure that the Obvi

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

2019-04-20 Thread Stefan Behnel
Stefan Behnel added the comment: Given that this has probably been like this forever, and thus provably doesn't hurt very much, I would argue that it's not worth fixing this in Py3.7. Not sure about Py2.7, but I think the answer there should be a no, too. -- stage: -> needs patch ve

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

2019-04-20 Thread Stefan Behnel
Stefan Behnel added the comment: Instead of always copying the dict in create_new_element(), we should make sure that all code that calls that function (directly or indirectly) does so with a safely owned dict. If that means that we need to add dict copying in some other place, then that's w

[issue36688] import dummy_threading causes ImportError

2019-04-20 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : importing dummy_threading causes ImportError. It used to work on 3.6. There are tests at Lib/test/test_dummy_threading.py and rearranging the import so that "import dummy_threading as _threading" is the first line also causes error. This module wa

[issue33777] dummy_threading: .is_alive method returns True after execution has completed

2019-04-20 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://bugs.python.org/issue29376#msg286873 . Is this an intentional behavior for dummy_threading to always return True for is_alive? -- nosy: +pitrou, xiang.zhang, xtreak ___ Python tracker

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

[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 ___ ___ Pyt

[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://mai

[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 ___ ___ Pyt

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

[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 ___ ___ Pyt

[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 ___ ___ Pyt

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

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

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

[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 ___ ___ Pyt

[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 ___ ___ Pytho

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

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

[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

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

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

[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

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

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

[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/8b3

[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://m

[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/14adbd45980f705cb6554ca17b8a66b56e

[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 ___ ___ Py

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

[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://m

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

[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: htt

[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

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

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

[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: norma

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

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

[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 ___ ___ P

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

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

[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

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

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

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

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

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

[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://ma

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

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

[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://ma

[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

[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: ht

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

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

[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

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

[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 ___ ___ Py

[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://ma

[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: -> resolv

[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

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

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

[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

[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: Uni