[issue39871] math.copysign raises SystemError with non-float x and custom y

2020-03-05 Thread Mark Dickinson
Mark Dickinson added the comment: @David: do you have any interest in creating a PR? -- ___ Python tracker ___ ___

[issue39871] math.copysign raises SystemError with non-float x and custom y

2020-03-05 Thread Mark Dickinson
Mark Dickinson added the comment: Nice find. This affects not just copysign, but all of the math module functions that use FUNC2 under the hood. (I think that's just "remainder", "atan2" and "copysign".) -- ___ Python tracker

[issue39871] math.copysign raises SystemError with non-float x and custom y

2020-03-05 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39865] getattr silences an unrelated AttributeError

2020-03-05 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39867] randrange(N) for N's in same dyadic blocs have excessive correlations when sharing identical seeds

2020-03-05 Thread jfbu
jfbu added the comment: "bug" is a strong word, which I did never employ myself, apart from using this channel of report. I rather think of a (non-documented) "deficiency", but I expect the consensus will again be that I am expressing a "raw expression". However reading more than once that

[issue39852] IDLE: Goto should remove selection and update the status bar

2020-03-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am expanding this issue to include the part of #27115 that the PR will fix. (I will also change the scope of the latter). -- stage: patch review -> needs patch title: IDLE: Goto should remove any selection -> IDLE: Goto should remove selection

[issue39702] PEP 614: Relaxing Grammar Restrictions On Decorators

2020-03-05 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +18158 pull_request: https://github.com/python/cpython/pull/18802 ___ Python tracker ___

[issue39852] IDLE: Goto should remove any selection

2020-03-05 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +18157 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18801 ___ Python tracker

[issue39872] Remove unused args from two functions in Python/symtable.c

2020-03-05 Thread Andy Lester
Change by Andy Lester : -- keywords: +patch pull_requests: +18156 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18800 ___ Python tracker ___

[issue39868] Stale Python Language Reference docs (no walrus).

2020-03-05 Thread Brandt Bucher
Brandt Bucher added the comment: Thanks for offering to help, Shankar! For this change, you can look at the other sections of the Doc/reference/expressions.rst file for an idea of what we're looking for. I think a few sentences and maybe a small code snippet should probably be fine. The

[issue39871] math.copysign raises SystemError with non-float x and custom y

2020-03-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +easy (C) stage: -> needs patch versions: +Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___

[issue39872] Remove unused args from two functions in Python/symtable.c

2020-03-05 Thread Andy Lester
Andy Lester added the comment: Two functions. It's only two functions. -- title: Remove unused args from four functions in Python/symtable.c -> Remove unused args from two functions in Python/symtable.c ___ Python tracker

[issue39852] IDLE: Goto should remove any selection

2020-03-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: selection_clear only partially clears a selection. That it does something is proven by selection_clear.py. It disables selection_get. But run the file in IDLE and when it finishes, click the tk window, select a line, click Shell, and manually repeat the

[issue39872] Remove unused args from four functions in Python/symtable.c

2020-03-05 Thread Andy Lester
New submission from Andy Lester : These four functions have unused arguments that can be removed: symtable_exit_block -> void *ast symtable_visit_annotations -> stmt_ty s symtable_exit_block -> void *ast symtable_visit_annotations -> stmt_ty s PR is forthcoming. -- components:

[issue39573] Make PyObject an opaque structure in the limited C API

2020-03-05 Thread Andy Lester
Change by Andy Lester : -- pull_requests: +18155 pull_request: https://github.com/python/cpython/pull/18799 ___ Python tracker ___

[issue39573] Make PyObject an opaque structure in the limited C API

2020-03-05 Thread Andy Lester
Change by Andy Lester : -- pull_requests: +18154 pull_request: https://github.com/python/cpython/pull/18798 ___ Python tracker ___

[issue39863] Add trimend option to readline() and readlines()

2020-03-05 Thread Inada Naoki
Inada Naoki added the comment: > It would be better to name it keepends and set it True by default. .readline() returns only one line. Should we use plural form for consistency? > It is also not good for file-like classes which do not inherit IOBase, but > implement a part of methods. You

[issue39868] Stale Python Language Reference docs (no walrus).

2020-03-05 Thread miss-islington
miss-islington added the comment: New changeset 0c717709c1b19b6f146b56db5f10bab3f09c by Miss Islington (bot) in branch '3.8': bpo-39868: Update Language Reference for PEP 572. (GH-18793) https://github.com/python/cpython/commit/0c717709c1b19b6f146b56db5f10bab3f09c --

[issue39868] Stale Python Language Reference docs (no walrus).

2020-03-05 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 8bae21962bab2fac7630982abd73676b89930902 by Brandt Bucher in branch 'master': bpo-39868: Update Language Reference for PEP 572. (#18793) https://github.com/python/cpython/commit/8bae21962bab2fac7630982abd73676b89930902 -- nosy:

[issue39868] Stale Python Language Reference docs (no walrus).

2020-03-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +18153 pull_request: https://github.com/python/cpython/pull/18797 ___ Python tracker

[issue39867] randrange(N) for N's in same dyadic blocs have excessive correlations when sharing identical seeds

2020-03-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Tim and Mark. This isn't a bug. The randomization occurs at the getrandbits() level. The downstream functions, such as randbelow and randrange, have no responsibility to create additional dispersion; instead, their role is to map the

[issue39866] get_type_hints raises inconsistent TypeError

2020-03-05 Thread Guido van Rossum
Guido van Rossum added the comment: It should definitely not return {} for objects without __annotations__ attributes -- get_type_hints(42) should raise TypeError. One could argue that get_type_hints(Bar()) incorrectly returns a dict, but we want to allow for some duck typing here, and,

[issue39859] set_herror should not throw away constness of hstrerror

2020-03-05 Thread miss-islington
miss-islington added the comment: New changeset e63117a84ef11083be86db7afb2ac2789491ca09 by Andy Lester in branch 'master': closes bpo-39859: Do not downcast result of hstrerror (GH-18790) https://github.com/python/cpython/commit/e63117a84ef11083be86db7afb2ac2789491ca09 -- nosy:

[issue39870] sys_displayhook_unencodable takes an unnecessary PyThreadState * argument

2020-03-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset da4d656e951b00580d135ae6345656ecedf9d8d4 by Andy Lester in branch 'master': closes bpo-39870: Remove unused arg from sys_displayhook_unencodable. (GH-18796) https://github.com/python/cpython/commit/da4d656e951b00580d135ae6345656ecedf9d8d4

[issue39861] French doc __futur__: Bad URL

2020-03-05 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: I just opened a PR for that: https://github.com/python/python-docs-fr/pull/1176 -- nosy: +matheus.v.portela ___ Python tracker ___

[issue39871] math.copysign raises SystemError with non-float x and custom y

2020-03-05 Thread David Vo
New submission from David Vo : If math.copysign(x, y) is passed an x that cannot be converted to a float and a y that implements __float__() in Python, math.copysign() will raise a SystemError from the TypeError resulting from the attempted float conversion of x. math.copysign() should

[issue39866] get_type_hints raises inconsistent TypeError

2020-03-05 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue27115] IDLE goto should always update status bar line & column

2020-03-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I changed the title to reflect the intended user-visible behavior, which was always the real issue. The original title proposed a solution that would not work. The revised title gave an alternate solution that should not work. The discrepancy between

[issue39870] sys_displayhook_unencodable takes an unnecessary PyThreadState * argument

2020-03-05 Thread Andy Lester
Change by Andy Lester : -- keywords: +patch pull_requests: +18152 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18796 ___ Python tracker ___

[issue39870] sys_displayhook_unencodable takes an unnecessary PyThreadState * argument

2020-03-05 Thread Andy Lester
Change by Andy Lester : -- components: +Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39870] sys_displayhook_unencodable takes an unnecessary PyThreadState * argument

2020-03-05 Thread Andy Lester
New submission from Andy Lester : sys_displayhook_unencodable in Python/sysmodule.c doesn't need its first argument. Remove it. -- messages: 363475 nosy: petdance priority: normal severity: normal status: open title: sys_displayhook_unencodable takes an unnecessary PyThreadState *

[issue39864] IndexError gives wrong axis info

2020-03-05 Thread Ningyi Du
Ningyi Du added the comment: I believe it's a bug. The axis 0 is misleading. However, it is a problem for numpy developers. Thank you for your time. On Thu, Mar 5, 2020, 10:42 AM Peter Otten wrote: > > Peter Otten <__pete...@web.de> added the comment: > > This is not a bug (and if it were

[issue39868] Stale Python Language Reference docs (no walrus).

2020-03-05 Thread SHANKAR JHA
SHANKAR JHA added the comment: This is my first contribution to Python. This is why I am looking for some guidance, just point me to some resource, and then I will look into it thoroughly. I am reading this https://www.python.org/dev/peps/pep-0572/ for better understanding. --

[issue39689] test_struct failure on s390x Fedora Clang buildbot

2020-03-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: FYI - I updated the ubsan buildbot to clang 9 so this one shows up in there now: /var/lib/buildbot/workers/clang-ubsan/3.x.gps-clang-ubsan.clang-ubsan/build/Modules/_struct.c:487:28: runtime error: load of value 116, which is not a valid value for type

[issue39867] randrange(N) for N's in same dyadic blocs have excessive correlations when sharing identical seeds

2020-03-05 Thread Tim Peters
Tim Peters added the comment: This is where you're not getting traction: "A randrange() function should a priori not be so strongly tied to the binary base." That's a raw assertion. _Why_ shouldn't it be? "Because I keep saying so" isn't changing minds ;-) I understand you're looking at

[issue39682] pathlib.Path objects can be used as context managers

2020-03-05 Thread Isaac Muse
Isaac Muse added the comment: Wrong thread sorry -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39856] glob : some 'unix style' glob items are not supported

2020-03-05 Thread Isaac Muse
Isaac Muse added the comment: Brace expansion does not currently exist in Python's glob. You'd have to use a third party module to expand the braces and then run glob on each returned pattern, or use a third party module that implements a glob that does it for you. Shameless plug: Brace

[issue39682] pathlib.Path objects can be used as context managers

2020-03-05 Thread Isaac Muse
Isaac Muse added the comment: Brace expansion does not currently exist in Python's glob. You'd have to use a third party module to expand the braces and then run glob on each returned pattern, or use a third party module that implements a glob that does it for you. Shameless plug: Brace

[issue39868] Stale Python Language Reference docs (no walrus).

2020-03-05 Thread Brandt Bucher
Brandt Bucher added the comment: Of course. After my PR is merged, you can make another PR that replaces the ".. TODO: BPO-39868" line with a description of how assignment expressions work. Likely much of the language can be borrowed from the PEP. Let me know if you need help with any of

[issue39837] Remove Azure Pipelines from GitHub PRs

2020-03-05 Thread Brett Cannon
Brett Cannon added the comment: I've turned off the required checks for GH Actions and flipped Azure Pipelines back on. And to answer Victor's question, yes, you can make things conditional at the workflow, job, and job step level. I don't know what would happen if the check was moved from

[issue39868] Stale Python Language Reference docs (no walrus).

2020-03-05 Thread SHANKAR JHA
SHANKAR JHA added the comment: Thank you for that!!! Can you please provide some pointers to what exactly I have to do? -- ___ Python tracker ___

[issue39868] Stale Python Language Reference docs (no walrus).

2020-03-05 Thread Brandt Bucher
Change by Brandt Bucher : -- keywords: +patch pull_requests: +18151 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18793 ___ Python tracker ___

[issue39868] Stale Python Language Reference docs (no walrus).

2020-03-05 Thread Brandt Bucher
Brandt Bucher added the comment: Sorry, I hadn't seen your comment... :( I've already finished the grammar specification bit, but not the prose description of how assignment expressions work, etc. How about I leave that empty in my PR and you can actually do the documentation part

[issue39869] Improve Instance Objects tutorial documentation

2020-03-05 Thread Mariatta
New submission from Mariatta : In https://docs.python.org/3.9/tutorial/classes.html#instance-objects, it says: > There are two kinds of valid attribute names, data attributes and methods. Replace the comma with a colon > There are two kinds of valid attribute names: data attributes and

[issue39868] Stale Python Language Reference docs (no walrus).

2020-03-05 Thread SHANKAR JHA
SHANKAR JHA added the comment: Can I take this issue? -- nosy: +shankarj67 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue39867] randrange(N) for N's in same dyadic blocs have excessive correlations when sharing identical seeds

2020-03-05 Thread jfbu
jfbu added the comment: @tim.peters yes, a uniform random variable rescaled to two nearby scales N and M will display strong correlations. The CPython randrange() exhibits however orders of magnitude higher such correlations, but only in relation to a common bitlength. A randrange()

[issue39837] Remove Azure Pipelines from GitHub PRs

2020-03-05 Thread Steve Dower
Steve Dower added the comment: Adding a screenshot here so I can point people at it. Let's not rush into complicating the build steps yet - AP is basically fine. We should switch back the required checks (@Brett?) If anything, let's add a "condition: false" to the macOS build to disable it

[issue39867] randrange(N) for N's in same dyadic blocs have excessive correlations when sharing identical seeds

2020-03-05 Thread Tim Peters
Tim Peters added the comment: Sorry, I don't see "a problem" here either. Rounding instead can change the precise nature of the correlations if you insist on starting from the same seed, but it hardly seems a real improvement; e.g., >>> random.seed(12) >>> [round(random.random() * 100) for

[issue39837] Remove Azure Pipelines from GitHub PRs

2020-03-05 Thread STINNER Victor
STINNER Victor added the comment: Instead of not running the job, is it technically possible to modify the jobs to do nothing for docs only changes? .travis.yml works like that: before_install: - set -e - | # Check short-circuit conditions if [[ "${TESTING}" != "docs" &&

[issue39852] IDLE: Goto should remove any selection

2020-03-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is much clearer. To expand on what I said before, inserting *anything*, such as by hitting a key, replaces a selection. I verified that this is normal behavior, at least on Windows, with Notepad, Notepad++, and this Firefox entry box I am typing in.

[issue39868] Stale Python Language Reference docs (no walrus).

2020-03-05 Thread Brandt Bucher
New submission from Brandt Bucher : It looks like https://docs.python.org/3/reference/expressions.html and https://docs.python.org/3/reference/compound_stmts.html were never updated for named expressions. Because this change has to be backported, it's sort of a blocker for my PEP 614 doc

[issue39837] Remove Azure Pipelines from GitHub PRs

2020-03-05 Thread Steve Dower
Steve Dower added the comment: Looks like it isn't fixed... https://github.com/python/cpython/pull/18774 -- ___ Python tracker ___

[issue39867] randrange(N) for N's in same dyadic blocs have excessive correlations when sharing identical seeds

2020-03-05 Thread jfbu
jfbu added the comment: Yes indeed the source code of _randbelow_with_getrandbits generates this effect. And I understand the puzzlement about my test file setting the same random seed and then complaining about correlations. But there is some non-uniformity which is enormous between what

[issue39845] Argparse on Python 3.7.1 (Windows) appends double quotes to string if it ends with backward slash

2020-03-05 Thread paul j3
paul j3 added the comment: Then this isn't an argparse issue. Probably not even a Python one. The windows shell (which one? cmd.exe? power? some batch) is making the substitution. I see lots of discussion about Windows use of backslash, both as directory separator and escape. None

[issue39867] randrange(N) for N's in same dyadic blocs have excessive correlations when sharing identical seeds

2020-03-05 Thread Mark Dickinson
Mark Dickinson added the comment: These results are hardly surprising, given the algorithms used. But why would you consider this a problem? If you want your randrange(n) and randrange(m) results to be independent, don't generate them from the exact same random source, starting with the

[issue39867] randrange(N) for N's in same dyadic blocs have excessive correlations when sharing identical seeds

2020-03-05 Thread jfbu
New submission from jfbu : We generate quadruples of random integers using randrange(n) and randrange(m) and count how many times the quadruples are identical, using the same random seed. Of course for nearby n and m (the real life example was with n==95 and m==97) we do expect matches. But

[issue39866] get_type_hints raises inconsistent TypeError

2020-03-05 Thread Joey
New submission from Joey : If you pass in an instance of an object without type annotations, you get an error that states "XXX is not a module, class, method, or function." This correctly describes the situation  typing.get_type_hints(object()) Traceback (most recent call last): File "",

[issue39865] getattr silences an unrelated AttributeError

2020-03-05 Thread pasenor
New submission from pasenor : if a class has a descriptor and a defined __getattr__ method, and an AttributeError (unrelated to the descriptor lookup) is raised inside the descriptor, it will be silenced: class A: @property def myprop(self): print("property called") a

[issue34305] inspect.getsourcefile and inspect.getcomments do not work with decorated functions

2020-03-05 Thread Ryan McCampbell
Ryan McCampbell added the comment: This seems like a pretty straightforward fix. What's holding it up? -- nosy: +rmccampbell7 ___ Python tracker ___

[issue39837] Remove Azure Pipelines from GitHub PRs

2020-03-05 Thread Brett Cannon
Brett Cannon added the comment: It was an old issue that if required checks didn't run it would block, but hopefully it's fixed. :) I have gone ahead and removed the Azure Pipelines requirement from 3.7, 3.8, and master and flipped on the check requirements for the ones I listed.

[issue39808] pathlib: reword docs for stat()

2020-03-05 Thread miss-islington
miss-islington added the comment: New changeset 7b39c474e4ce7057a9e16b06d40261ff563b1e9d by Miss Islington (bot) in branch '3.8': [3.8] bpo-39808: Improve docs for pathlib.Path.stat() (GH-18719) (GH-18783) https://github.com/python/cpython/commit/7b39c474e4ce7057a9e16b06d40261ff563b1e9d

[issue39808] pathlib: reword docs for stat()

2020-03-05 Thread Brett Cannon
Brett Cannon added the comment: Thanks, swgmma! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39863] Add trimend option to readline() and readlines()

2020-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It would be better to name it keepends and set it True by default. I wanted this feature. The problem is that it is not just concrete implementation, it is an interface. Adding new parameters for IOBase methods will break all IOBase subclasses. And there

[issue31652] make install fails: no module _ctypes

2020-03-05 Thread Alexander Stohr
Alexander Stohr added the comment: Ubuntu 16.04 in a very bare naked setup. Similar/same problem profile by message and other lines in the log. Installed libffi6 and libffi-dev => worked. Not sure if both were needed (or interdependent, 2nd to 1st). -- nosy: +Alexander Stohr

[issue39862] Why are the union relationships not implemented by default for ≤ and ≥?

2020-03-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: See https://www.python.org/dev/peps/pep-0207/ -- nosy: +rhettinger ___ Python tracker ___ ___

[issue35537] use os.posix_spawn in subprocess

2020-03-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18150 pull_request: https://github.com/python/cpython/pull/18792 ___ Python tracker ___

[issue1294959] Problems with /usr/lib64 builds.

2020-03-05 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-24871: "freeze.py doesn't work on x86_64 Linux out of the box". > On 64-bit Linux freeze.py uses lib instead of lib64 when constructing > path to Makefile etc. Using sysconfig fixes this issue. -- ___

[issue29753] Ctypes Packing Bitfields Incorrectly - Linux

2020-03-05 Thread Sam Price
Sam Price added the comment: I ran into this bug on mac and submitted a duplicate issue of 39858 If you add the check *pfield_size != *pbitofs it fixes this bug. #ifndef MS_WIN32 } else if (bitsize /* this is a bitfield request */ && *pfield_size /* we have a bitfield open */

[issue39852] IDLE: Copy/Paste behaves like Cut/Paste

2020-03-05 Thread Dave Liptack
Dave Liptack added the comment: OS: Windows 10 Pro Version: 1909 OS Build: 18363.657 Python 2.7.17 and 3.8.1 were installed from https://www.python.org/downloads/ using the Windows x86-64 executable installer (3.8.1) and Windows x86-64 MSI installer (2.7.17) Both line numbers and code

[issue39858] bitfield layout wrong in ctypes

2020-03-05 Thread Sam Price
Sam Price added the comment: Does not happen on windows. Error is in cfield.c ``` #ifndef MS_WIN32 } else if (bitsize /* this is a bitfield request */ && *pfield_size /* we have a bitfield open */ && dict->size * 8 >= *pfield_size && (*pbitofs + bitsize) <=

[issue39864] IndexError gives wrong axis info

2020-03-05 Thread Peter Otten
Peter Otten <__pete...@web.de> added the comment: This is not a bug (and if it were you would have to report to numpy, not cpython). Consider: >>> import numpy >>> a = numpy.zeros((2,2,2)) >>> a[0,2] Traceback (most recent call last): File "", line 1, in IndexError: index 2 is out of

[issue39864] IndexError gives wrong axis info

2020-03-05 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is a numpy issue, you will need to report it to the numpy developers. But first you need to check that it really is a bug. What makes you think it is a bug? In your example, index 3 looks out of bounds to me. Remember that indexes start at 0, not 1.

[issue39864] IndexError gives wrong axis info

2020-03-05 Thread Ningyi Du
Ningyi Du added the comment: This is a simple test: test=np.zeros((2,3,4)) print(test[1][3][1]) IndexErrorTraceback (most recent call last) in 1 test=np.zeros((2,3,4)) > 2 print(test[1][3][1]) IndexError: index 3 is out of bounds for axis 0 with

[issue39864] IndexError gives wrong axis info

2020-03-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Please include a sample script to reproduce the program along with a description of why you think it's an error in CPython. This seems to be a custom exception raised by a library. -- nosy: +xtreak ___

[issue39864] IndexError gives wrong axis info

2020-03-05 Thread Ningyi Du
New submission from Ningyi Du : IndexError: index 11 is out of bounds for axis 0 with size 11 The actual error is not with axis 0, but axis 3. error message: 168 if iJ>=9: 169 print(iE,iE0,iEtemp,iJ,li,lf,mlf+lf) --> 170

[issue8840] truncate() semantics changed in 3.1.2

2020-03-05 Thread A.M. Kuchling
Change by A.M. Kuchling : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39855] test.test_subprocess.POSIXProcessTestCase.test_user fails in the limited build environment

2020-03-05 Thread STINNER Victor
STINNER Victor added the comment: Python 3.8 is not affected. I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue39855] test.test_subprocess.POSIXProcessTestCase.test_user fails in the limited build environment

2020-03-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset f7b5d419bf871d9cc898982c7b6b4c043f7d5e9d by Victor Stinner in branch 'master': bpo-39855: Fix test_subprocess if nobody user doesn't exist (GH-18781) https://github.com/python/cpython/commit/f7b5d419bf871d9cc898982c7b6b4c043f7d5e9d --

[issue39863] Add trimend option to readline() and readlines()

2020-03-05 Thread Inada Naoki
New submission from Inada Naoki : str.splitlines() has `keepends` option. Like that, `IOBase.readline([trimend=False])` and `IOBase.readlines([trimends=False])` would be useful. -- components: IO messages: 363430 nosy: inada.naoki priority: normal severity: normal status: open title:

[issue33347] zlibmodule undefined reference

2020-03-05 Thread Martin Ni
Martin Ni added the comment: Hello sir! I got exactly same issue when compile some ipk in Openwrt. Would tell how to add "-lz" to python-config? I am not so familiar with Python coding. Thanks! -- nosy: +Martin Ni ___ Python tracker

[issue39860] configparser - no support for cascading defaults (as defined by MySQL)

2020-03-05 Thread Ben Griffin
Ben Griffin added the comment: Having looked at the code, I believe that it is best NOT to interfere with the 'default_section' value of the class, as it is used as a proxy to _defaults, whereas the section parameter of get() is easily extended. The actual changes are all to the method

[issue39860] configparser - no support for cascading defaults (as defined by MySQL)

2020-03-05 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +18148 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18791 ___ Python tracker

[issue39862] Why are the union relationships not implemented by default for ≤ and ≥?

2020-03-05 Thread Géry
New submission from Géry : Mathematically, the [binary relation](https://en.wikipedia.org/wiki/Binary_relation) ≤ is the [union](https://en.wikipedia.org/wiki/Binary_relation#Union) of the binary relations < and =, while the binary relation ≥ is the union of the binary relations > and =. So

[issue39837] Remove Azure Pipelines from GitHub PRs

2020-03-05 Thread Steve Dower
Steve Dower added the comment: Are you sure the required check isn't just for failures? Surely GitHub is smarter than requiring checks that it can tell aren't required (as it's their logic to include/exclude, not ours). If they're not, I now have many internal contacts there, so we can

[issue27743] Python 2 has a wrong artificial limit on the amount of memory that can be allocated in ctypes

2020-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was fixed in issue16865. -- nosy: +serhiy.storchaka resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue39845] Argparse on Python 3.7.1 (Windows) appends double quotes to string if it ends with backward slash

2020-03-05 Thread Ion Cebotari
Ion Cebotari added the comment: Yes, the problem seems to be with sys.argv.: Windows output: python .\main.py -d Z:\tmp\test\DJI\ 'C:\unu doi\' sys.argv: ['.\\CamCardOrganizer.py', '-d', 'Z:\\tmp\\test\\DJI\\', 'C:\\unu doi"'] args namespace: Namespace(capturedatefmt='%y.%m.%d',

[issue39861] French doc __futur__: Bad URL

2020-03-05 Thread Dorian
New submission from Dorian : Hello, In the French page: https://docs.python.org/fr/3/library/__future__.html There is a bad URL in the table at the end of the page: division/2.2.0a2/3.0/PEP 328 : Changement de l'opérateur de division It's supposed to be PEP 238, not 328. The URL is

[issue39860] configparser - no support for cascading defaults (as defined by MySQL)

2020-03-05 Thread Ben Griffin
New submission from Ben Griffin : While there is now support for a single default group, mysql documentation is clear that there is a cascade of groups for option settings, normally starting with [client], and including version numbers.. This allows generic settings to be overridden by

[issue39844] IDLE 3.8.2 on MacOS 10.15.3 Launches to Black Windows

2020-03-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: The black one from 2.42 shows that the disfunction in your system is not in tkinter app and is likely upstream from that (the relationship between tk and mac). -- ___ Python tracker