[issue34817] Ellipsis docs has extra dot in the markdown that makes it look like .... (four dots)

2018-10-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +9140 stage: -> patch review ___ Python tracker ___ ___

Re: Python indentation (3 spaces)

2018-10-08 Thread Ben Finney
Terry Reedy writes: > You assumption that a tab means '4 spaces' is wrong. A tab means > 'jump to the next tab stop'. On 10 char/inch US typewriters, tab > stops were initially set to every 5 spaces or 1/2 inch. In terminals > and code editors, virtual tab stops were often set to every 8

Python indentation (correct behaviour) (was: Python indentation (3 spaces))

2018-10-08 Thread Ben Finney
Cameron Simpson writes: > What I do wish was that I had a vim mode that highlighted an indent > column so I can line up indented code with its controlling top line. For Vim: https://github.com/nathanaelkane/vim-indent-guides>. For Emacs:

[issue34817] Ellipsis docs has extra dot in the markdown that makes it look like .... (four dots)

2018-10-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Martin for the suggestion. I have created a PR with your suggestion and added a description in the PR that shows the visual distinction between the current doc and suggested change. -- ___ Python

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

2018-10-08 Thread Carol Willing
Carol Willing added the comment: New changeset ffc5a14d00db984c8e72c7b67da8a493e17e2c14 by Carol Willing (Sanyam Khurana) in branch 'master': bpo-33014: Clarify str.isidentifier docstring (GH-6088) https://github.com/python/cpython/commit/ffc5a14d00db984c8e72c7b67da8a493e17e2c14 --

[issue24307] pip error on windows whose current user name contains non-ascii characters

2018-10-08 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Since @tanbro-liu hasn't responded I am proposing this to be an easy issue. The issue is that %default in optparse doesn't handle unicode values. The fix would be to make the patch in msg244244 as a PR attributing to the original author and add a

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

2018-10-08 Thread YoSTEALTH
New submission from YoSTEALTH : How about adding basic "mime_type" method to "pathlib.Path" ? Code would do something like: import mimetypes def mime_type(name): """Mime-type of the file.""" find = name.rfind('.') ext = '' if find == -1 else name[find:]

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

2018-10-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- title: Adding "mine_type" method to pathlib.Path -> Adding "mime_type" method to pathlib.Path ___ 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: 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 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,

Re: Python indentation (3 spaces)

2018-10-08 Thread Thomas Jollans
On 08/10/2018 03:13, Gene Heskett wrote: On Sunday 07 October 2018 19:20:57 Dennis Lee Bieber wrote: On Sun, 7 Oct 2018 14:19:15 -0400, Gene Heskett declaimed the following: But that automatically assumes one is running in a windows environment. I don't allow it on the premises if I own the

[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

Re: Python indentation (correct behaviour) (was: Python indentation (3 spaces))

2018-10-08 Thread Cameron Simpson
On 08Oct2018 18:06, Ben Finney wrote: Cameron Simpson writes: What I do wish was that I had a vim mode that highlighted an indent column so I can line up indented code with its controlling top line. For Vim: https://github.com/nathanaelkane/vim-indent-guides>. For Emacs:

[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: Can it be caused by https://github.com/python/cpython/commit/adf493227f1efd5d6b34f46b854142bf3b5a411c ? -- ___ Python tracker ___

[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

[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

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

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

[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

[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

[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

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

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

[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

[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

[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

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

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

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

[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

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

[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

[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

[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

[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

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

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

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

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

[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

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

Re: kivy [quick report]

2018-10-08 Thread m
W dniu 05.10.2018 o 18:43, Stefan Ram pisze: > BTW: For Android, there is a "Bulldozer" (or some such) that > can create an APK. I wonder what the best way to package one's > kivy program to distribute it to Windows users? I use wine + pyinstaller. regards m --

[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

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

[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

[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

Re: Python indentation (3 spaces)

2018-10-08 Thread Rhodri James
On 05/10/18 21:48, ts9...@gmail.com wrote: I am new to Python programming but have significant SQL and C experience. My simple question is,"Why not standardize Python indentations to 3 spaces instead of 4 in order to avoid potential programming errors associated with using "TAB" instead of

[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

[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

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

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

[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

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

Re: Observations on the List - "Be More Kind"

2018-10-08 Thread Rhodri James
On 05/10/18 11:22, Bruce Coram wrote: The level of vitriol and personal attacks on the moderators was profoundly disappointing, but not totally out of character for those who made the attacks.  There is no doubt that these people know software and Python and this certainly earns my respect, 

Re: Python indentation (3 spaces)

2018-10-08 Thread Marko Rauhamaa
Chris Angelico : > How wide my indents are on my screen shouldn't influence your screen > or your choices. Where I work (and at home), the only control character that is allowed in source code is LF. Marko -- https://mail.python.org/mailman/listinfo/python-list

Re: Python indentation (3 spaces)

2018-10-08 Thread Chris Angelico
On Tue, Oct 9, 2018 at 4:44 AM Peter J. Holzer wrote: > > On 2018-10-08 10:36:21 +1100, Chris Angelico wrote: > > TBH, I think that tab width should be up to the display, just like the > > font. You're allowed to view code in any font that makes sense for > > you, and you should be able to view

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

[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

[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

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

[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

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

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

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

[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

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

Re: Python indentation (3 spaces)

2018-10-08 Thread Marko Rauhamaa
Thomas Jollans : > On 08/10/2018 08:31, Marko Rauhamaa wrote: >> Where I work (and at home), the only control character that is allowed >> in source code is LF. > > No tolerance for form feeds? None whatsoever. CR is ok but only if immediately followed by BEL. That way typing source code gives

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

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

[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

[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

[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

[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

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

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

[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

Re: Python indentation (3 spaces)

2018-10-08 Thread Chris Angelico
On Tue, Oct 9, 2018 at 9:06 AM Marko Rauhamaa wrote: > > Thomas Jollans : > > > On 08/10/2018 08:31, Marko Rauhamaa wrote: > >> Where I work (and at home), the only control character that is allowed > >> in source code is LF. > > > > No tolerance for form feeds? > > None whatsoever. > > CR is ok

Re: How to use Python's built-in Logging with Asyncio (Permission Error)

2018-10-08 Thread Ian Kelly
I'm spit-balling here, but I suspect the problem is that TimedRotatingFileHandler was probably not designed to have multiple instances of it in different processes all trying to rotate the same file. Yet that's the situation you have since each subprocess in your process pool creates its own

Re: Python indentation (3 spaces)

2018-10-08 Thread Thomas Jollans
On 08/10/2018 08:31, Marko Rauhamaa wrote: Chris Angelico : How wide my indents are on my screen shouldn't influence your screen or your choices. Where I work (and at home), the only control character that is allowed in source code is LF. No tolerance for form feeds? --

[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

[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

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

[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

[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

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

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

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

My python code has suddenly started to give me error. Please see code below**

2018-10-08 Thread upadhyay . kamayani
## Calculating the Lower Limits(LLi) and Upper Limit(ULi) for each Band, where i is 1,2,.10 LL1=0 print(LL1) print(P2) print(D2) if(P2>25): UL1=D1 print(UL1) elif(UL1==D2): print(UL1) LL2=UL1 if(P3>25): UL2=D2 print(UL2) elif(UL2==D3): print(UL2)

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

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

[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

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

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

[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

  1   2   >