[issue41617] __builtin_bswap16 is used without checking it is supported

2020-08-22 Thread Joshua Root
Change by Joshua Root : -- pull_requests: +21053 pull_request: https://github.com/python/cpython/pull/21943 ___ Python tracker ___

[issue41617] __builtin_bswap16 is used without checking it is supported

2020-08-22 Thread Joshua Root
Change by Joshua Root : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41617] __builtin_bswap16 is used without checking it is supported

2020-08-22 Thread Joshua Root
Change by Joshua Root : -- keywords: +patch pull_requests: +21052 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21942 ___ Python tracker ___

[issue41617] __builtin_bswap16 is used without checking it is supported

2020-08-22 Thread Joshua Root
New submission from Joshua Root : Older clang versions don't have __builtin_bswap16, but it's always used when compiling with clang, which means the build fails with those older versions. The code should use __has_builtin to check. -- components: Build messages: 375806 nosy: jmr

[issue41609] pdb's whatis command reports method as function

2020-08-22 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34798] pprint ignores the compact parameter for dicts

2020-08-22 Thread Irit Katriel
Irit Katriel added the comment: > At the very least it should be made clear in the documentation that dicts are > not compacted. According to https://docs.python.org/3/library/pprint.html compact impacts the way that sequences are displayed, and a dict is not a sequence. So I'm not sure a

[issue41598] rnd() + rndup() in math

2020-08-22 Thread Vedran Čačić
Vedran Čačić added the comment: > use more digits to manage rounding in decimal base, not only one but more (i > should think better and experiment on how many) You don't have to. It's infinitely many. :-P Think, how many decimal digits would you need to accurately round numbers to a closest

[issue41598] rnd() + rndup() in math

2020-08-22 Thread marco_ocram
marco_ocram added the comment: i think in your long post you have underlined among others: 1. in binary implementation of floats one bit was reserved to rounding; 2. this one bit is not enough to manage a correct rounding in a converted decimal base; my considerations: 3. someone i think had

[issue41613] get_type_hints regression for 3.9 and 3.10

2020-08-22 Thread Guido van Rossum
Guido van Rossum added the comment: Not nice to snip the traceback. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10486] http.server doesn't set all CGI environment variables

2020-08-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hello Maarten, > Using cgitb, I found out that the webdriver expects the environment variable > `HTTP_X_URWID_METHOD` to be set. The javascript sets the "X-Urwid-Method" > header (using XmlHttpRequest), but these are not visible by the CGI python >

[issue41616] Global variable in whole project and Relative imports problem

2020-08-22 Thread Steven D'Aprano
Steven D'Aprano added the comment: One issue per ticket please. Versions 3.9 and older are all in feature freeze, they will not get new features. Combining a global declaration with an assignment has been requested before, and rejected. If you want to discuss that feature again, you should

[issue41616] Global variable in whole project and Relative imports problem

2020-08-22 Thread ManPython
New submission from ManPython : 1. Curently we have easy option to declare global variable (GV) a) like this: global var1 var1 = 'whatever' b) with some improved version like this: global var1 'whatever' or: global var1,var2, 'whatever1','whatever2' c) The Python is in way to produce small

[issue23832] pdb's `longlist` shows only decorator if that one contains a lambda

2020-08-22 Thread Irit Katriel
Irit Katriel added the comment: pdb uses inspect.findsource for this, where this problem was fixed in issue 1764286. I believe this ticket can be closed. -- ___ Python tracker

[issue26794] curframe can be None in pdb.py

2020-08-22 Thread Jacek Pliszka
Jacek Pliszka added the comment: Haven't seen it since then. Stopped using 2.7 - using 3.6 in production and 3.7 in development now. I believe it can be closed. -- ___ Python tracker

[issue41615] sys.argv may be None or an empty list

2020-08-22 Thread Jason R. Coombs
New submission from Jason R. Coombs : In [pypa/keyring#445](https://github.com/pypa/keyring/445) and issue839151, we learned that there are Python interpreters in which `sys.argv` is an empty list, is not a list, or is not initialized at all. Through use of `sys.argv[0]`, the documentation

[issue41614] Items put on Queue in thread in child process sometimes not seen by parent process

2020-08-22 Thread Alex Hall
New submission from Alex Hall : See attached file. The summary is that I start a Process, which starts a Thread, which puts some values on a Queue which was originally created by the parent process and passed down. Usually this works but occasionally the parent process doesn't see the items

[issue37943] mimetypes.guess_extension() doesn’t get JPG right

2020-08-22 Thread Felipe Rodrigues
Felipe Rodrigues added the comment: @_savage, on the commit @xtreak referred, there's a note that "image/jpg" and some other non-standard mimetypes are only supported if `strict=False`[1] So, this: >>> mimetypes.guess_extension("image/jpg") Gives no return. But this works: >>>

[issue41576] document BaseException in favour of bare except in error tutorial

2020-08-22 Thread Thomas Grainger
Thomas Grainger added the comment: The purpose of this tutorial section is to document how to catch all types of exceptions and extract the type and value. When this is required, `BaseException as err:` is the preferred approach. This document still mentions the alternative approach so that

[issue41613] get_type_hints regression for 3.9 and 3.10

2020-08-22 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: This looks like a problem with the __globals__ of the NamedTuple.__new__ -- ___ Python tracker ___

[issue41613] get_type_hints regression for 3.9 and 3.10

2020-08-22 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- components: +Library (Lib) versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___

[issue41613] get_type_hints regression for 3.9 and 3.10

2020-08-22 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : The attached script works perfectly fine under Python 3.8, but it crashes in 3.9/3.10. $ ./py38/python typing_fail.py (3.8.5+) {'a': , 'b': } $ ./py39/python typing_fail.py (3.9.0rc1+) [SNIP] TypeError: 'NoneType' object is not subscriptable $

[issue40994] Very confusing documenation for abc.Collections

2020-08-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: New changeset 0694b82381ff27e10bb15172da0832a7e65aaa2d by Miss Islington (bot) in branch '3.8': bpo-40994: Ungroup items in collections.abc documentation for improved clarity (GH-21880) (#21927)

[issue40994] Very confusing documenation for abc.Collections

2020-08-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: New changeset f497bbeed08e5a7f83adecf330b61fb88e9c3fa6 by Miss Islington (bot) in branch '3.9': bpo-40994: Ungroup items in collections.abc documentation for improved clarity (GH-21880) (#21926)

[issue21041] pathlib.PurePath.parents rejects negative indexes

2020-08-22 Thread Yaroslav Pankovych
Yaroslav Pankovych added the comment: Any thoughts about that folks? It's a pretty old bug, let's decide smth for it. -- ___ Python tracker ___

[issue41598] rnd() + rndup() in math

2020-08-22 Thread Vedran Čačić
Vedran Čačić added the comment: I think you don't know what paraphrasing means. Or maybe I don't know it, but in any case, I'm well aware what Von Neumann said, and how it is usually misunderstood in today's society. "Living in the state of sin" is simply an emotionally powerful metaphor,

[issue41598] rnd() + rndup() in math

2020-08-22 Thread marco_ocram
marco_ocram added the comment: @Vedran: I'm sorry about my "quick-and-dirty implementations". As i've already stated the problem's more deep i expect, despite the second half up rounding for my needs now (after your observation) work well. I've verified other languages have the same problem

[issue41573] Correct wrong sentences in General FAQ

2020-08-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41573] Correct wrong sentences in General FAQ

2020-08-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 429a86a12016ae42ea32d754e0725cbee8e99808 by Miss Islington (bot) in branch '3.9': bpo-41573: Update release versions in General FAQ (GH-21915) (#21938) https://github.com/python/cpython/commit/429a86a12016ae42ea32d754e0725cbee8e99808