[issue34938] Fix mimetype.init() to account for from import

2018-10-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue34926] Adding "mime_type" method to pathlib.Path

2018-10-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. There was a similar request to add pathlib.rmtree (issue33498) and adding more methods as Raymond mentioned might be convenient but there is a maintenance cost (msg316517) since there is a consensus that pathlib should do eve

[issue29636] Specifying indent in the json.tool command

2018-10-08 Thread wim glenn
Change by wim glenn : -- keywords: +patch pull_requests: +9152 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list m

[issue34939] Possibly spurious SyntaxError: annotated name can't be global

2018-10-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34929] Extract asyncio sendfile tests into a separate test file

2018-10-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue34758] http.server module sets incorrect mimetype for WebAssembly files

2018-10-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 -Python 3.7 ___ Python tracker ___

[issue34758] http.server module sets incorrect mimetype for WebAssembly files

2018-10-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 199a280af540e3194405eb250ca1a8d487f6a4f7 by Andrew Svetlov (travisoneill) in branch 'master': bpo-34758: add .wasm to recognized file extensions in mimetypes module (GH-9464) https://github.com/python/cpython/commit/199a280af540e3194405eb250ca1a

[issue34751] Hash collisions for tuples

2018-10-08 Thread Tim Peters
Tim Peters added the comment: We need to worry about timing too :-( I'm using this as a test. It's very heavy on using 3-tuples of little ints as dict keys. Getting hash codes for ints is relatively cheap, and there's not much else going on, so this is intended to be very sensitive to cha

[issue34940] Possible assertion failure due to _check_for_legacy_statements()

2018-10-08 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +9151 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue34940] Possible assertion failure due to _check_for_legacy_statements()

2018-10-08 Thread Zackery Spytz
New submission from Zackery Spytz : The PyUnicode_Tailmatch() and PyUnicode_FromString() calls in _check_for_legacy_statements() are not properly checked for failure. -- components: Interpreter Core messages: 327379 nosy: ZackerySpytz priority: normal severity: normal status: open titl

[issue34899] Possible assertion failure due to int_from_bytes_impl()

2018-10-08 Thread Zackery Spytz
Change by Zackery Spytz : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34939] Possibly spurious SyntaxError: annotated name can't be global

2018-10-08 Thread Rohan Padhye
New submission from Rohan Padhye : The following code when run as a script file gives syntax error: ``` def set_x(): global x x = 1 x:int = 0 # SyntaxError: annotated name 'x' can't be global ``` PEP 526 does not seem to forbid this. The error message "annotated name [...] can't be

[issue34926] Adding "mime_type" method to pathlib.Path

2018-10-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: -0 There is some value in having a separation of responsibilities and in not adding another dependency. On the other hand, I can see how this would sometimes be convenient. Assigning to Antoine to make the decision. -- assignee: -> pitrou nosy:

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

2018-10-08 Thread Jack
Jack added the comment: I'd like to note that this also happens with a required mutually exclusive group: group = parser.add_mutually_exclusive_group(required=True) The arguments in the group are listed under “optional arguments:”. I'm guessing the mechanism is the same. -- nosy: +J

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-10-08 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue34926] Adding "mime_type" method to pathlib.Path

2018-10-08 Thread YoSTEALTH
Change by YoSTEALTH : -- components: -Extension Modules ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue12345] Add math.tau

2018-10-08 Thread Danish Prakash
Change by Danish Prakash : -- pull_requests: +9150 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34938] Fix mimetype.init() to account for from import

2018-10-08 Thread YoSTEALTH
New submission from YoSTEALTH : When a user uses from import, there is a flaw in how mimetype.init() updates its global references. # Option-1 (flawed) # - from mimetypes import init, types_map print(types_map.get('.gz')) # None init() # <- initialize print(types_map.get('.g

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-10-08 Thread miss-islington
miss-islington added the comment: New changeset c4c86fad8024dc91af8d785c33187c092b4e49d9 by Miss Islington (bot) in branch '3.7': bpo-32174: Let .chm document display non-ASCII characters properly (GH-9758) https://github.com/python/cpython/commit/c4c86fad8024dc91af8d785c33187c092b4e49d9 --

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-10-08 Thread miss-islington
miss-islington added the comment: New changeset 64bcedce8d61e1daa9ff7980cc07988574049b1f by Miss Islington (bot) in branch '3.6': bpo-32174: Let .chm document display non-ASCII characters properly (GH-9758) https://github.com/python/cpython/commit/64bcedce8d61e1daa9ff7980cc07988574049b1f --

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-10-08 Thread Steve Dower
Steve Dower added the comment: Thanks, that looks perfect! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-10-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +9149 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-10-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +9148 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-10-08 Thread Steve Dower
Steve Dower added the comment: New changeset 6261ae9b01fb8429b779169f8de37ff567c144e8 by Steve Dower (animalize) in branch 'master': bpo-32174: Let .chm document display non-ASCII characters properly (GH-9758) https://github.com/python/cpython/commit/6261ae9b01fb8429b779169f8de37ff567c144e8

[issue23831] tkinter canvas lacks of moveto method.

2018-10-08 Thread Juliette Monsel
Change by Juliette Monsel : -- nosy: +j-4321-i ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue34725] Py_GetProgramFullPath() odd behaviour in Windows

2018-10-08 Thread Mario
Mario added the comment: On 08/10/2018 17:54, Steve Dower wrote: > > Steve Dower added the comment: > >> Py_SetProgramName() should be a relative or absolute path that can be used >> to set sys.executable and other values appropriately. > > Key point here is *can be*, but it doesn't have t

[issue34937] Extract asyncio tests for sock_*() methods into a separate test file

2018-10-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue31715] Add mimetype for extension .mjs

2018-10-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 2.7, Python 3.6, Python 3.7 ___ Python tracker ___

[issue31715] Add mimetype for extension .mjs

2018-10-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 0854b92cd25613269d21de3cb5239379ddc0f2fb by Andrew Svetlov (Bradley Meck) in branch 'master': bpo-31715 Add mimetype for extension .mjs (#3908) https://github.com/python/cpython/commit/0854b92cd25613269d21de3cb5239379ddc0f2fb -- nosy:

[issue34937] Extract asyncio tests for sock_*() methods into a separate test file

2018-10-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +9147 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue34936] tkinter.Spinbox.selection_element() raises TclError

2018-10-08 Thread Juliette Monsel
Change by Juliette Monsel : -- keywords: +patch pull_requests: +9146 stage: needs patch -> patch review ___ Python tracker ___ ___ P

[issue34937] Extract asyncio tests for sock_*() methods into a separate test file

2018-10-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- components: Tests, asyncio nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Extract asyncio tests for sock_*() methods into a separate test file versions: Python 3.8 ___ Python tracker

[issue34921] NoReturn not allowed by get_type_hints when future import annotations is used

2018-10-08 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue34921] NoReturn not allowed by get_type_hints when future import annotations is used

2018-10-08 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset 5eea0ad50c32d38909ff4e29309e2cc3c6ccb2c0 by Ivan Levkivskyi (Noah Wood) in branch 'master': bpo-34921: Allow escaped NoReturn in get_type_hints (GH-9750) https://github.com/python/cpython/commit/5eea0ad50c32d38909ff4e29309e2cc3c6ccb2c0 --

[issue34911] Allow Cookies for Secure WebSockets

2018-10-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 ___ Python tracker ___

[issue34911] Allow Cookies for Secure WebSockets

2018-10-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 4c339970570d07916bee6ade51f4e9781d51627a by Andrew Svetlov (Paul Bailey) in branch 'master': bpo-34911: Added support for secure websocket cookies (GH-9734) https://github.com/python/cpython/commit/4c339970570d07916bee6ade51f4e9781d51627a

[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files

2018-10-08 Thread Tal Einat
Tal Einat added the comment: Can someone clarify whether Modules/overlapped.c should be converted to use AC? -- ___ Python tracker ___

[issue15994] memoryview to freed memory can cause segfault

2018-10-08 Thread JP Sugarbroad
Change by JP Sugarbroad : -- nosy: +taralx ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue34936] tkinter.Spinbox.selection_element() raises TclError

2018-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you mind to create a PR against master for fixing this issue Juliette? -- ___ Python tracker ___ ___

[issue34936] tkinter.Spinbox.selection_element() raises TclError

2018-10-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka stage: -> needs patch versions: +Python 2.7, Python 3.6, Python 3.8 ___ Python tracker ___

[issue34725] Py_GetProgramFullPath() odd behaviour in Windows

2018-10-08 Thread Steve Dower
Steve Dower added the comment: > Py_SetProgramName() should be a relative or absolute path that can be used to > set sys.executable and other values appropriately. Key point here is *can be*, but it doesn't have to be. Given it has fallbacks all the way to "python"/"python3", we can't realis

[issue34445] asyncio support in doctests

2018-10-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue34383] asyncio passes SSL certificate error to loop.call_exception_handler()

2018-10-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: Duplicate of #34630 -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue34630] Don't log ssl cert errors in asyncio

2018-10-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue34630] Don't log ssl cert errors in asyncio

2018-10-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- assignee: -> asvetlov components: +asyncio nosy: +yselivanov versions: +Python 3.8 ___ Python tracker ___ ___

[issue34935] Misleading error message in str.decode()

2018-10-08 Thread Walter Dörwald
Walter Dörwald added the comment: OK, I see, http://www.unicode.org/versions/Unicode5.2.0/ch03.pdf (Table 3-7 on page 93) states that the only valid 3-bytes UTF-8 sequences starting with the byte 0xED have a value for the second byte in the range 0x80 to 0x9F. 0xA0 is just beyond that range (

[issue34880] About the "assert" bytecode

2018-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This can't be changed in 3.6. There are two ways of changing it: 1. Make the marshal module supporting AssertionError as it supports booleans, None, Ellipsis and StopIteration. This will require adding the new marshal format version. 2. Add a new opcode i

[issue34829] Add missing selection_ methods to tkinter Spinbox

2018-10-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34829] Add missing selection_ methods to tkinter Spinbox

2018-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset af5658ae93b0a87ab4420a7dc30a07fa5a83e252 by Serhiy Storchaka (Juliette Monsel) in branch 'master': bpo-34829: Add missing selection_ methods to the Tkinter Spinbox. (GH-9617) https://github.com/python/cpython/commit/af5658ae93b0a87ab4420a7dc30

[issue34936] tkinter.Spinbox.selection_element() raises TclError

2018-10-08 Thread Juliette Monsel
New submission from Juliette Monsel : Spinbox.selection_element() raises `TclError: expected integer but got "none"` while it should return the currently selected element according to the docstring. I think this issue comes from the Spinbox.selection method which tries to convert to int the

[issue34935] Misleading error message in str.decode()

2018-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This behavior is intentional, for conformance with the Unicode Standard recommendations. See issue8271. -- nosy: +serhiy.storchaka ___ Python tracker _

[issue34935] Misleading error message in str.decode()

2018-10-08 Thread Walter Dörwald
New submission from Walter Dörwald : The following code issues a misleading exception message: >>> b'\xed\xa0\xbd\xed\xb3\x9e'.decode("utf-8") Traceback (most recent call last): File "", line 1, in UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position 0: invalid continuation b

[issue33014] Clarify str.isidentifier docstring; fix keyword.iskeyword docstring

2018-10-08 Thread Sanyam Khurana
Sanyam Khurana added the comment: Marking this fixed via https://github.com/python/cpython/commit/ffc5a14d00db984c8e72c7b67da8a493e17e2c14 and https://github.com/python/cpython/commit/fc8205cb4b87edd1c19e1bcc26deaa1570f87988 Thanks, everyone! -- resolution: -> fixed stage: patch r

[issue34903] strptime %d handling of single digit day of month

2018-10-08 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue34925] 25% speed-up to common case for bisect()

2018-10-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset de2e448414530689f2e60e84fd78bdfebb772898 by Raymond Hettinger in branch 'master': bpo-34925: Optimize common case for bisect() argument parsing (#9753) https://github.com/python/cpython/commit/de2e448414530689f2e60e84fd78bdfebb772898 --

[issue34925] 25% speed-up to common case for bisect()

2018-10-08 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue13407] tarfile doesn't support multistream bzipped tar files

2018-10-08 Thread Brian Curtin
Change by Brian Curtin : -- assignee: docs@python -> brian.curtin resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue34934] Consider making Windows select.select interruptible using WSAEventSelect & WSAWaitForMultipleEvents

2018-10-08 Thread ondrej.kutal
Change by ondrej.kutal : -- title: Consider making Windows select.select interruptable using WSAEventSelect & WSAWaitForMultipleEvents -> Consider making Windows select.select interruptible using WSAEventSelect & WSAWaitForMultipleEvents ___ Python

[issue34934] Consider making Windows select.select interruptable using WSAEventSelect & WSAWaitForMultipleEvents

2018-10-08 Thread Ondra Kutal
New submission from Ondra Kutal : At the moment, socket select.select() function is not interruptable on Windows OS (in main thread). Following code cannot be interrupted (for example by CTRL+C): import select, socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.setblocking(False)

[issue34933] json.dumps serializes double quotes incorrectly

2018-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >>> print(json.dumps(a)) {"a": "//a[@asdf=\"asdf\"]"} You seen the repr or the resulting string, not the resulting string itself. -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed __

[issue34933] json.dumps serializes double quotes incorrectly

2018-10-08 Thread Juozas Masiulis
New submission from Juozas Masiulis : currently python behaves like this: >>> import json >>> a={'a': '//a[@asdf="asdf"]'} >>> json.dumps(a) '{"a": "//a[@asdf=\\"asdf\\"]"}' this behaviour is incorrect. the resulting string should be '{"a": "//a[@asdf=\"asdf\"]"}' The difference is that doubl

[issue34931] os.path.splitext with more dots

2018-10-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue34932] Add macOS TCP_KEEPALIVE to available socket options

2018-10-08 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +9144 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue34932] Add macOS TCP_KEEPALIVE to available socket options

2018-10-08 Thread Robert
New submission from Robert : macOS uses TCP_KEEPALIVE in place of TCP_KEEPIDLE. It would be good to have this available in the socket library to use directly. Pull request coming up. -- components: Library (Lib) messages: 327351 nosy: llawall priority: normal severity: normal status:

[issue28167] remove platform.linux_distribution()

2018-10-08 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: -yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue28167] remove platform.linux_distribution()

2018-10-08 Thread Petr Viktorin
Petr Viktorin added the comment: Actually, the scope (right balance between usefulness and maintainability) is probably the hardest real problem to solve here. PyPI lets you iterate on that. For a straight-to-stdlib module, you'd need to get it exactly right on the first time. -- __

[issue28167] remove platform.linux_distribution()

2018-10-08 Thread Petr Viktorin
Petr Viktorin added the comment: > I wasn't aware that starting out with a PyPI module is the only accepted > process for getting functionality into stdlib. It's the main way things should get in. (Other ways exist, for example, dataclasses were added as simplification/merging of several exis

[issue28167] remove platform.linux_distribution()

2018-10-08 Thread rb
rb added the comment: Apologies for my tone. I wasn't aware that starting out with a PyPI module is the only accepted process for getting functionality into stdlib. That certainly is a lot of work for what would be a trivial handful of lines to parse key/value pairs and handle error paths, e

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-10-08 Thread Ma Lin
Change by Ma Lin : Added file: https://bugs.python.org/file47858/PR 9758 effects.png ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue28167] remove platform.linux_distribution()

2018-10-08 Thread Petr Viktorin
Petr Viktorin added the comment: In the recommended library, distro, real-world issues blew the code size up to 1000 lines of code and the open issue count to 15 – so while it's definitely useful, it doesn't seem either fully complete or trivial to maintain: https://github.com/nir0s/distro/bl

[issue34931] os.path.splitext with more dots

2018-10-08 Thread Jan Novak
New submission from Jan Novak : There are some old tickets about changing splitext() in 2007: https://bugs.python.org/issue1115886 https://bugs.python.org/issue1681842 Present python documentation: Leading periods on the basename are ignored; splitext('.cshrc') returns ('.cshrc', ''). Changed

[issue28167] remove platform.linux_distribution()

2018-10-08 Thread rb
rb added the comment: > Maintaining the necessary logic Python is not really possible in the stdlib. > It's better to have a PyPI module for this which can be updated much more > easily. The /etc/os-release syntax is stable, the file is implemented nearly everywhere and is unlikely to chang

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-10-08 Thread Ma Lin
Ma Lin added the comment: It seems impossible to specify the encoding of .chm to ASCII [1], the available encodings of .chm are limited to a list [2]. So I wrote a Sphinx extension for .chm output, it escapes the characters which (codepoint > 0x7F) to 7-bit ASCII. Most escaped characters are:

[issue34930] sha1module: Switch sha1 implementation to sha1dc/hardened sha1

2018-10-08 Thread Antoine Pietri
New submission from Antoine Pietri : SHA-1 has been broken a while ago. While the general recommandation is to migrate to more recent hashes (like SHA-2 and SHA-3), a lot of industry applications (notably Merkle DAG implementations like Git or Blockchains) require backwards compatibility with

[issue33643] Mock functions with autospec STILL don't support assert_called_once, assert_called, assert_not_called

2018-10-08 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: There is a problem with your code, you use `mock` library but this one does not exist in the standard library. You should use `unittest.mock` Because this issue is not related with the unittest.mock library, I am going to close this issue. -- nos

[issue33643] Mock functions with autospec STILL don't support assert_called_once, assert_called, assert_not_called

2018-10-08 Thread Justin Dray
Justin Dray added the comment: I can still reproduce this with python 3.6.5: https://gist.github.com/justin8/c6a565d3b64222a9ba3a2568d1d830ee no .assert_called() on autospec'd functions, but it works with normal mock.MagicMock() ipython autocomplete shows assert_any_call, assert_called_once

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-10-08 Thread Ma Lin
Change by Ma Lin : -- keywords: +patch pull_requests: +9143 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mail

[issue34929] Extract asyncio sendfile tests into a separate test file

2018-10-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +9142 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue34929] Extract asyncio sendfile tests into a separate test file

2018-10-08 Thread Andrew Svetlov
Change by Andrew Svetlov : -- components: Tests, asyncio nosy: asvetlov, yselivanov priority: normal severity: normal status: open title: Extract asyncio sendfile tests into a separate test file versions: Python 3.8 ___ Python tracker

[issue34925] 25% speed-up to common case for bisect()

2018-10-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue34928] string method .upper() converts 'ß' to 'SS' instead of 'ẞ'

2018-10-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: No problem. Thanks for the confirmation I am closing this as a duplicate. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Germany made the upper case ß official. 'ß'.upper() should now return ẞ. __

[issue34928] string method .upper() converts 'ß' to 'SS' instead of 'ẞ'

2018-10-08 Thread Marc Richter
Marc Richter added the comment: Sorry then; that did not show up in my search :/ Yes, seems like this is duplicating that one. -- ___ Python tracker ___ __

[issue33014] Clarify str.isidentifier docstring; fix keyword.iskeyword docstring

2018-10-08 Thread Lele Gaifax
Change by Lele Gaifax : -- keywords: +patch pull_requests: +9141 stage: needs patch -> patch review ___ Python tracker ___ ___ Pytho

[issue34928] string method .upper() converts 'ß' to 'SS' instead of 'ẞ'

2018-10-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report and details but I think this exact case was already discussed in issue30810. -- nosy: +xtreak ___ Python tracker ___

[issue34928] string method .upper() converts 'ß' to 'SS' instead of 'ẞ'

2018-10-08 Thread Steven D'Aprano
Steven D'Aprano added the comment: We match the Unicode specification, not arbitrary language rules. (Austrian and Swiss German are, I believe, phasing out ß altogether, and haven't added an uppercase variant.) Until the Unicode consortium change their case conversion rules, it is still corr

[issue34928] string method .upper() converts 'ß' to 'SS' instead of 'ẞ'

2018-10-08 Thread Marc Richter
New submission from Marc Richter : There's a special letter in German orthography called "eszett" (ß). This letter had no uppercase variant for hundreds of years until 2017, there was an uppercase variant added to the official German orthography called "capital eszett" (ẞ) [1]. Python's .uppe

[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-10-08 Thread Ma Lin
Ma Lin added the comment: I will create a PR to fix this within a day. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue13828] Further improve casefold documentation

2018-10-08 Thread Marc Richter
Marc Richter added the comment: +1 as well. To be honest, I did not understand what this function does in detail yet. Since not too long ago (2017) in Germany, there was an uppercase-variant for the special letter from this function's example (ß) been added to the official orthography [1]. Is

[issue34927] Tkinter-related segfault on macOS (regression between 3.7.0 and 3.7.1rc1)

2018-10-08 Thread Ned Deily
Ned Deily added the comment: > Can it be caused by > https://github.com/python/cpython/commit/adf493227f1efd5d6b34f46b854142bf3b5a411c > ? It very likely could be. Thanks for the report. I'll take a look at it a bit later. -- assignee: -> ned.deily _

[issue34927] Tkinter-related segfault on macOS (regression between 3.7.0 and 3.7.1rc1)

2018-10-08 Thread Aivar Annamaa
Aivar Annamaa added the comment: Can it be caused by https://github.com/python/cpython/commit/adf493227f1efd5d6b34f46b854142bf3b5a411c ? -- ___ Python tracker ___ __

[issue34927] Tkinter-related segfault on macOS (regression between 3.7.0 and 3.7.1rc1)

2018-10-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks, I can confirm that this works with 3.7.0 and segfaults with 3.7.1RC1 Mac OS installer that uses Tk 8.6 . Clicking the button and closing the file open dialog triggers this segfault as noted in your description. I don't know how I can config

[issue34927] Tkinter-related segfault on macOS (regression between 3.7.0 and 3.7.1rc1)

2018-10-08 Thread Aivar Annamaa
Aivar Annamaa added the comment: I got the segfault with Tk 8.6, provided with python.org installer. -- ___ Python tracker ___ ___

[issue34927] Tkinter-related segfault on macOS (regression between 3.7.0 and 3.7.1rc1)

2018-10-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report and script. I can't reproduce this with 3.7.1rc1 tag and also tried this on v3.7.0 which works fine on Mac OS running 10.10.4 and tcl version 8.5 . I checked out the 3.7.1rc1 tag and did a clean rebuild with `git clean -xdf &&

[issue34927] Tkinter-related segfault on macOS (regression between 3.7.0 and 3.7.1rc1)

2018-10-08 Thread Aivar Annamaa
Aivar Annamaa added the comment: Looks like the workaround is to provide explicit `parent` named argument to the dialog call. -- ___ Python tracker ___ __

[issue34927] Tkinter-related segfault on macOS (regression between 3.7.0 and 3.7.1rc1)

2018-10-08 Thread Aivar Annamaa
Aivar Annamaa added the comment: Here is a simple application that also exposes this problem. Click at the button and press Escape when dialog appears. import tkinter as tk import tkinter.filedialog as fd root = tk.Tk() def dostuff(): fd.askopenfile() bt = tk.Button(root, text="Clic

[issue34927] Tkinter-related segfault on macOS (regression between 3.7.0 and 3.7.1rc1)

2018-10-08 Thread Aivar Annamaa
New submission from Aivar Annamaa : After switching from Python 3.7.0 to 3.7.1rc1 (macOS, 64-bit only downloaded from python.org), my rather big Tkinter application started to segfault whenever I close a system dialog (eg. the one created by askopenfilename or showerror) by keypress (eg. Esca