[issue37999] No longer use implicit convertion to int with loss

2020-05-27 Thread Mark Dickinson
Mark Dickinson added the comment: There are some comments in the Objects/longobject.c code that still refer to __int__, and could use an update. For example: https://github.com/python/cpython/blob/7da46b676aed7111de34b57c8b942a7f3bb80327/Objects/longobject.c#L366 -- nosy:

[issue40792] Make PyNumber_Index() always returning an exact int instance

2020-05-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This change conflicts with the test added in issue26202. We perhaps should revert issue26202. This can also affect the user code which depends on range() attributes start, stop and step being instances of the int subclass. --

[issue30462] urllib does not support NO_PROXY environment variable containing domain with asterisk

2020-05-27 Thread Cheryl Sabella
Cheryl Sabella added the comment: The original pull request has been closed for inactivity, so this is now available for anyone to work on. Please credit the original author if anyone change is based on the original PR. Thanks! -- nosy: +cheryl.sabella versions: +Python 3.10

[issue40741] Upgrade to SQLite v3.32.1 in Windows and macOS builds

2020-05-27 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40790] Python should enable computed gotos on Mac by default

2020-05-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: The configure script sets the result of compiler probing with HAVE_COMPUTED_GOTOS not USE_COMPUTED_GOTOS. -- nosy: +benjamin.peterson resolution: -> works for me stage: -> resolved status: open -> closed ___

[issue40794] dataclass signatures and docstrings w/future-annotations

2020-05-27 Thread Guido van Rossum
Guido van Rossum added the comment: Have you come up with a fix yet? (Preferably a fix that can be applied locally to dataclasses.py.) -- ___ Python tracker ___

[issue40794] dataclass signatures and docstrings w/future-annotations

2020-05-27 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > Have you come up with a fix yet? (Preferably a fix that can be applied > locally to dataclasses.py.) I'm working on it, but no luck so far. -- ___ Python tracker

[issue14527] How to link with a non-system libffi?

2020-05-27 Thread Rupert Nash
Change by Rupert Nash : -- keywords: +patch nosy: +rnash nosy_count: 3.0 -> 4.0 pull_requests: +19705 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20451 ___ Python tracker

[issue40795] ctypes: PyErr_WriteUnraisable() called with no exception set on converting callback result failure

2020-05-27 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +19707 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20452 ___ Python tracker ___

[issue40784] test_sqlite: CheckFuncDeterministic() fails with SQLite 3.32

2020-05-27 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch pull_requests: +19702 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20448 ___ Python tracker

[issue40793] print() performance problem with very large numbers

2020-05-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is not a print() problem, it is a problem with converting an integer to decimal string representation. AFAIK it has quadratic complexity from the size of the integer. -- nosy: +mark.dickinson, serhiy.storchaka

[issue37999] No longer use implicit convertion to int with loss

2020-05-27 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset 20941de0ddc39ce9f07e29b4cc770e8a9ef14d41 by Mark Dickinson in branch 'master': bpo-37999: Fix outdated __int__ and nb_int references in comments (GH-20449) https://github.com/python/cpython/commit/20941de0ddc39ce9f07e29b4cc770e8a9ef14d41

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

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset fe2978b3b940fe2478335e3a2ca5ad22338cdf9c by Victor Stinner in branch 'master': bpo-39573: Convert Py_REFCNT and Py_SIZE to functions (GH-20429) https://github.com/python/cpython/commit/fe2978b3b940fe2478335e3a2ca5ad22338cdf9c --

[issue40794] dataclass signatures and docstrings w/future-annotations

2020-05-27 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +gvanrossum, lukasz.langa, vstinner, yselivanov ___ Python tracker ___ ___ Python-bugs-list

[issue40795] ctypes: PyErr_WriteUnraisable() called with no exception set on converting callback result failure

2020-05-27 Thread STINNER Victor
New submission from STINNER Victor : Example: --- from ctypes import c_int, CFUNCTYPE def func(): return (1, 2, 3) cb = CFUNCTYPE(c_int)(func) cb() --- Output: --- Traceback (most recent call last): File "_ctypes/callbacks.c", line 262, in 'converting callback result' TypeError: an

[issue39580] Check for COMMAND_LINE_INSTALL variable in Python_Documentation.pkg

2020-05-27 Thread Ned Deily
Ned Deily added the comment: Thanks for the PR! It looks reasonable but I do want to test it first on older macOS versions that we support before merging it. I'll do that before the next releases. -- versions: +Python 3.10, Python 3.7, Python 3.9

[issue40762] Writing bytes using CSV module results in b prefixed strings

2020-05-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since Pandas opens an output file it has control on what encoding is used. It is a Pandas' responsibility to decode bytes, or raise an exception, or just ignore the problem if it is pretty uncommon case. Pandas already have a complex code for formatting

[issue40793] print() performance problem with very large numbers

2020-05-27 Thread U.W.
New submission from U.W. : Printing very large numbers takes forever. Example: print((2**24)**(3840*2160)) That number has about 60 Million digits and my machine is busy now for more than an hour and still not finished. The calculation of the number is no problem, btw. and finishes in under

[issue40793] print() performance problem with very large numbers

2020-05-27 Thread Mark Dickinson
Mark Dickinson added the comment: Right; the naive algorithm for converting the internal binary representation to the decimal representation is quadratic time. In *theory* we could implement a subquadratic time algorithm, but the complexity of such an implementation outweighs the benefits.

[issue39073] [security] email module incorrect handling of CR and LF newline characters in Address objects.

2020-05-27 Thread STINNER Victor
Change by STINNER Victor : -- title: email incorrect handling of crlf in Address objects. -> [security] email module incorrect handling of CR and LF newline characters in Address objects. ___ Python tracker

[issue39073] email incorrect handling of crlf in Address objects.

2020-05-27 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner nosy_count: 6.0 -> 7.0 pull_requests: +19704 stage: backport needed -> patch review pull_request: https://github.com/python/cpython/pull/20450 ___ Python tracker

[issue39073] email incorrect handling of crlf in Address objects.

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: I created PR 20450: backport to 3.5, since it's a security fix. -- versions: +Python 3.10, Python 3.5, Python 3.6, Python 3.7, Python 3.9 ___ Python tracker

[issue40794] dataclass signatures and docstrings w/future-annotations

2020-05-27 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > It,sounds like you are trying to get the effect of putting 'from __future__ > import dataclasses' at the top of dataclasses'.py, right? Yes, since compile will automatically inherit the flags of the current frame to the compiled code I'm basically

[issue14527] How to link with a non-system libffi?

2020-05-27 Thread Rupert Nash
Rupert Nash added the comment: I have just struggled with building CPython with the _ctypes module. Fundamentally, the problem appears to be that configure uses pkgconfig to find the libffi include directory, while setup.py's detect_ctypes only uses the global list of library directories.

[issue40784] test_sqlite: CheckFuncDeterministic() fails with SQLite 3.32

2020-05-27 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Hi, folks. I took the liberty to create a PR for this; hope you don't mind. I've used partial indices to test deterministic behaviour. https://www.sqlite.org/partialindex.html -- ___ Python tracker

[issue37999] No longer use implicit convertion to int with loss

2020-05-27 Thread Mark Dickinson
Change by Mark Dickinson : -- pull_requests: +19703 pull_request: https://github.com/python/cpython/pull/20449 ___ Python tracker ___

[issue40762] Writing bytes using CSV module results in b prefixed strings

2020-05-27 Thread Skip Montanaro
Skip Montanaro added the comment: I would also that tweaking Python to make this work with no change in Pandas would be a case of the tail wagging the dog. A big tail, but a tail nonetheless. -- ___ Python tracker

[issue39073] email incorrect handling of crlf in Address objects.

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: FYI I created https://python-security.readthedocs.io/vuln/email-address-header-injection.html to track fixes of this vulnerability. -- ___ Python tracker

[issue40794] dataclass signatures and docstrings w/future-annotations

2020-05-27 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > Hmm. That's a regression, at least from 3.7, which is the only version I have > ready access to: That is the same behavior with the current master, the problem I am having is related to using annotations feature on dataclasses itself rather than the

[issue40794] dataclass signatures and docstrings w/future-annotations

2020-05-27 Thread Guido van Rossum
Guido van Rossum added the comment: It,sounds like you are trying to get the effect of putting 'from __future__ import dataclasses' at the top of dataclasses'.py, right? Are you saying that without this, the output of the test script is correct? --

[issue40794] dataclass signatures and docstrings w/future-annotations

2020-05-27 Thread Guido van Rossum
Guido van Rossum added the comment: To clarify, for Eric: what Batuhan did is effectively adding `from __future__ import annotations` to the top of dataclasses.py. I believe the root cause is that dataclasses creates functions by synthesizing `def` statements (in _create_fn()) and the

[issue40741] Upgrade to SQLite v3.32.1 in Windows and macOS builds

2020-05-27 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Ready with PR as soon as GH-20448 is merged and cpython-source-deps (https://github.com/python/cpython-source-deps/pull/19) is merged and tagged. -- ___ Python tracker

[issue39073] email incorrect handling of crlf in Address objects.

2020-05-27 Thread miss-islington
miss-islington added the comment: New changeset 75635c6095bcfbb9fccc239115d3d03ae20a307f by Miss Islington (bot) in branch '3.8': bpo-39073: validate Address parts to disallow CRLF (GH-19007) https://github.com/python/cpython/commit/75635c6095bcfbb9fccc239115d3d03ae20a307f --

[issue39073] email incorrect handling of crlf in Address objects.

2020-05-27 Thread miss-islington
miss-islington added the comment: New changeset a93bf82980d7c02217a088bafa193f32a4d13abb by Miss Islington (bot) in branch '3.7': bpo-39073: validate Address parts to disallow CRLF (GH-19007) https://github.com/python/cpython/commit/a93bf82980d7c02217a088bafa193f32a4d13abb --

[issue40794] dataclass signatures and docstrings w/future-annotations

2020-05-27 Thread Eric V. Smith
Eric V. Smith added the comment: Hmm. That's a regression, at least from 3.7, which is the only version I have ready access to: $ python3 Python 3.7.3 (default, Mar 27 2019, 13:36:35) [GCC 9.0.1 20190227 (Red Hat 9.0.1-0.8)] on linux Type "help", "copyright", "credits" or "license" for more

[issue40275] test.support has way too many imports

2020-05-27 Thread hai shi
Change by hai shi : -- pull_requests: +19712 pull_request: https://github.com/python/cpython/pull/20459 ___ Python tracker ___ ___

[issue2897] Deprecate structmember.h

2020-05-27 Thread Matthias Braun
Change by Matthias Braun : -- components: +C API versions: +Python 3.10 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

[issue13097] [easy C issue] ctypes: segfault with large number of callback arguments

2020-05-27 Thread miss-islington
miss-islington added the comment: New changeset 788d7bfe189e715eab3855c20ea5d6da0d8bed70 by Miss Islington (bot) in branch '3.9': bpo-13097: ctypes: limit callback to 1024 arguments (GH-19914) https://github.com/python/cpython/commit/788d7bfe189e715eab3855c20ea5d6da0d8bed70 --

[issue13097] [easy C issue] ctypes: segfault with large number of callback arguments

2020-05-27 Thread miss-islington
miss-islington added the comment: New changeset a285af7e626d1b81cf09f8b2bf7656f100bc1237 by Miss Islington (bot) in branch '3.8': bpo-13097: ctypes: limit callback to 1024 arguments (GH-19914) https://github.com/python/cpython/commit/a285af7e626d1b81cf09f8b2bf7656f100bc1237 --

[issue2897] Deprecate structmember.h

2020-05-27 Thread Matthias Braun
Matthias Braun added the comment: > The issue title is misleading, it says "Deprecate structmember.h". Is the > plan still to deprecate it? Or to make it usable in the limited C API? Please > update the title. As far as I understand it: The attached diff, moves the interesting declaration

[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: We consider it closer to new feature as it changes existing behavior in a way that people cannot _depend_ on being present in older Python releases as it'd only appear in a bugfix release, so most people could never write code depending on it while

[issue40796] dataclasses.make_dataclass: Exception when called with different field orders

2020-05-27 Thread Darrick Yee
Change by Darrick Yee : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40796] dataclasses.make_dataclass: Exception when called with different field orders

2020-05-27 Thread Darrick Yee
Darrick Yee added the comment: TypeError: non-default argument 'field1' follows default argument You are right. For some reason I believed it would automatically gather the required fields first when creating the new class' signature. -- ___

[issue40794] dataclass signatures and docstrings w/future-annotations

2020-05-27 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: I have applied Guido's suggestion and it looks like it is working. -- ___ Python tracker ___

[issue2897] Deprecate structmember.h

2020-05-27 Thread Matthias Braun
Matthias Braun added the comment: This wasn't mentioned before: Having PyMemberDef part of the structmember.h is a big problem for users of PEP384/limited API, because structmember.h is not part of it. Which results in the odd situation that `Py_tp_members` or `PyDescr_NewMember()` are

[issue40792] Make PyNumber_Index() always returning an exact int instance

2020-05-27 Thread Mark Dickinson
Mark Dickinson added the comment: The behaviour change for range sounds reasonable to me. Just to make sure I understand the impact of the change: - For Python < 3.10, we sometimes convert the range inputs to Python ints, and sometimes don't. For example, a start value of `np.int64(5)`

[issue40794] dataclass signatures and docstrings w/future-annotations

2020-05-27 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : While I was working on making 'future annotations' default, I noticed that dataclasses acts differently under the annotation feature. One example would be the file [signature.py]: [ without future import] $ python t.py X(a: int, b: int) [ with future

[issue40780] float.__format__() handles trailing zeros inconsistently in “general” format

2020-05-27 Thread Mark Dickinson
Change by Mark Dickinson : -- versions: -Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue14562] urllib2 maybe blocks too long with small chunks

2020-05-27 Thread Zackery Spytz
Zackery Spytz added the comment: Python 2 is EOL, so I think this issue should be closed. -- nosy: +ZackerySpytz ___ Python tracker ___

[issue40791] hmac.compare_digest could try harder to be constant-time.

2020-05-27 Thread Zachary Ware
Change by Zachary Ware : -- nosy: +christian.heimes, gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40791] hmac.compare_digest could try harder to be constant-time.

2020-05-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for both of these suggestions -- nosy: +rhettinger type: -> security versions: -Python 3.5, Python 3.6 ___ Python tracker ___

[issue2897] Deprecate structmember.h

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: > The proposed patch here, would fix this! The issue title is misleading, it says "Deprecate structmember.h". Is the plan still to deprecate it? Or to make it usable in the limited C API? Please update the title. --

[issue13097] [easy C issue] ctypes: segfault with large number of callback arguments

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: Thanks Meador Inge for the bug report and thanks Sean Gillespie for the fix! It just took 9 years to fix this corner case ;-) Copy of the comment on the PR: https://github.com/python/cpython/pull/19914#pullrequestreview-419331432 I tried to rewrite

[issue40667] [Windows] Add global python and python3 commands

2020-05-27 Thread Steve Dower
Steve Dower added the comment: After thinking this through some more, I don't think this solves the problem, but only changes it. And we're better off leaving things as they are than just moving them around. -- resolution: -> rejected stage: patch review -> resolved status: open ->

[issue40796] dataclasses.make_dataclass: Exception when called with different field orders

2020-05-27 Thread Eric V. Smith
Eric V. Smith added the comment: Isn't this error that you're providing a field without a default value after one with a default value? What's the exception look like? -- nosy: +eric.smith ___ Python tracker

[issue40796] dataclasses.make_dataclass: Exception when called with different field orders

2020-05-27 Thread Darrick Yee
Darrick Yee added the comment: Yes, that makes sense. Thank you! On Wed, May 27, 2020, 1:40 PM Eric V. Smith wrote: > > Eric V. Smith added the comment: > > No problem! > > It can't reorder fields, because you might not be passing them by name. > There's some discussion about requiring

[issue13097] [easy C issue] ctypes: segfault with large number of callback arguments

2020-05-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +19709 pull_request: https://github.com/python/cpython/pull/20454 ___ Python tracker ___

[issue40794] dataclass signatures and docstrings w/future-annotations

2020-05-27 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: (I applied it to my own branch, don't know if a seperate PR needed) -- ___ Python tracker ___

[issue2897] Deprecate structmember.h

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: Also, the bare minimum enhancement would be add rename READONLY to PY_READONLY, but keep a deprecated alias READONLY to PY_READONLY, and update CPython code base to use PY_READONLY. (Same for other similar flags.) --

[issue2897] PyMemberDef missing in limited API / Deprecate structmember.h

2020-05-27 Thread Matthias Braun
Change by Matthias Braun : -- title: Deprecate structmember.h -> PyMemberDef missing in limited API / Deprecate structmember.h ___ Python tracker ___

[issue2897] Deprecate structmember.h

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: > Note that structmember.h pollutes global namespace with macros that do not > have conventional Py_ or PY_ prefix. READONLY and RESTRICTED macros seem to > be most likely to conflict with other code. One small enhance would be to add such prefix when

[issue40791] hmac.compare_digest could try harder to be constant-time.

2020-05-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: Christian - Devin could likely use some help with the build/ifdef plumbing required for (2) to use CRYPTO_memcmp from Modules/_operator.c when OpenSSL is available. -- assignee: -> christian.heimes ___ Python

[issue40791] hmac.compare_digest could try harder to be constant-time.

2020-05-27 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +19711 pull_request: https://github.com/python/cpython/pull/20456 ___ Python tracker ___

[issue40796] dataclasses.make_dataclass: Exception when called with different field orders

2020-05-27 Thread Eric V. Smith
Eric V. Smith added the comment: No problem! It can't reorder fields, because you might not be passing them by name. There's some discussion about requiring keyword-only parameters, in which case what you're doing would work (as long as they were keyword-only params). --

[issue40794] dataclass signatures and docstrings w/future-annotations

2020-05-27 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2897] PyMemberDef missing in limited API / Deprecate structmember.h

2020-05-27 Thread Matthias Braun
Matthias Braun added the comment: Happy to take the proposed diff here (assuming @belopolsky wont mind) and include it into a pull request that also renames the uses of the READONLY flags (and maybe removes the RESTRICTED flags) within cpython source itself. --

[issue40791] hmac.compare_digest could try harder to be constant-time.

2020-05-27 Thread Christian Heimes
Christian Heimes added the comment: GPS, I got you covered :) CRYPTO_memcmp() was on my TODO list for a while. Thanks for nagging me. _operator is a built-in module. I don't want to add libcrypto dependency to libpython. I copied the code, made some adjustments and added it to

[issue40796] dataclasses.make_dataclass: Exception when called with different field orders

2020-05-27 Thread Darrick Yee
New submission from Darrick Yee : https://docs.python.org/3/library/dataclasses.html#module-dataclasses `make_dataclass` takes a `field` parameter, which is an iterable whose entries may be tuples of `(name, type)` or `(name, type, dataclasses.Field)`. However, an exception is thrown if

[issue40794] dataclass signatures and docstrings w/future-annotations

2020-05-27 Thread Eric V. Smith
Eric V. Smith added the comment: I see. Not sure how I overlooked that. Thanks. At first blush, I think your approach would work. -- ___ Python tracker ___

[issue13097] [easy C issue] ctypes: segfault with large number of callback arguments

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 29a1384c040d39659e7d01f1fd7b6eb71ef2634e by Sean Gillespie in branch 'master': bpo-13097: ctypes: limit callback to 1024 arguments (GH-19914) https://github.com/python/cpython/commit/29a1384c040d39659e7d01f1fd7b6eb71ef2634e --

[issue13097] [easy C issue] ctypes: segfault with large number of callback arguments

2020-05-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +19710 pull_request: https://github.com/python/cpython/pull/20455 ___ Python tracker ___

[issue13097] [easy C issue] ctypes: segfault with large number of callback arguments

2020-05-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +19708 pull_request: https://github.com/python/cpython/pull/20453 ___ Python tracker

[issue40794] dataclass signatures and docstrings w/future-annotations

2020-05-27 Thread Guido van Rossum
Guido van Rossum added the comment: You can do this as part of your mega-PR to turn on `from __future__ import annotations` by default. -- ___ Python tracker ___

[issue13097] [easy C issue] ctypes: segfault with large number of callback arguments

2020-05-27 Thread miss-islington
miss-islington added the comment: New changeset 1c4dcafd0b025e771f4dbd7197d0b5f263c9cb54 by Miss Islington (bot) in branch '3.7': bpo-13097: ctypes: limit callback to 1024 arguments (GH-19914) https://github.com/python/cpython/commit/1c4dcafd0b025e771f4dbd7197d0b5f263c9cb54 --

[issue40787] Mysql + unittest crash

2020-05-27 Thread Lucas
Lucas added the comment: While trying to simplify my program for you, I found that the problem was caused by a very specific interaction of one of the functions that was being tested with the restore command, which did not happen when I tried to rule this problem out in other ways.

[issue40275] test.support has way too many imports

2020-05-27 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19720 pull_request: https://github.com/python/cpython/pull/20468 ___ Python tracker ___

[issue27779] Sync-up docstrings in C version of the the decimal module

2020-05-27 Thread Furkan Onder
Furkan Onder added the comment: Patches are prepared but not continued. It can be merge by small additions to the patches. -- nosy: +furkanonder ___ Python tracker ___

[issue40795] ctypes: PyErr_WriteUnraisable() called with no exception set on converting callback result failure

2020-05-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +19721 pull_request: https://github.com/python/cpython/pull/20469 ___ Python tracker

[issue40798] The deprecated-removed Sphinx extension need to change the error message based on the Python version

2020-05-27 Thread Ned Deily
Change by Ned Deily : -- nosy: +mdk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40275] test.support has way too many imports

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: Attached count_imports.py script counts how many modules are imported by "import test.support". With PR 20471, we are down to 74 modules. It's way better than 171 (when I created this issue)! -- Added file:

[issue39073] [security] email module incorrect handling of CR and LF newline characters in Address objects.

2020-05-27 Thread Ned Deily
Ned Deily added the comment: New changeset 7df32f844efed33ca781a016017eab7050263b90 by Miss Islington (bot) in branch '3.6': bpo-39073: validate Address parts to disallow CRLF (GH-19007) (#19224) https://github.com/python/cpython/commit/7df32f844efed33ca781a016017eab7050263b90 --

[issue40275] test.support has way too many imports

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset aa890630bc877c73ec806c9982d8b7b2e7019723 by Victor Stinner in branch 'master': bpo-40275: test.support imports subprocess lazily (GH-20471) https://github.com/python/cpython/commit/aa890630bc877c73ec806c9982d8b7b2e7019723 --

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-05-27 Thread Kyle Stanley
Kyle Stanley added the comment: > The new test_sock_client_racing() test seems to have... a race condition... I'm also a bit skeptical about relying on `time.sleep(0.01)` at the end of the loop in `_basetest_sock_recv_racing()`, but I don't have an idea for a better approach at the moment.

[issue40275] test.support has way too many imports

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset e80697d687b610bd7fb9104af905dec8f0bc55a7 by Hai Shi in branch 'master': bpo-40275: Adding threading_helper submodule in test.support (GH-20263) https://github.com/python/cpython/commit/e80697d687b610bd7fb9104af905dec8f0bc55a7 --

[issue40795] ctypes: PyErr_WriteUnraisable() called with no exception set on converting callback result failure

2020-05-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +19722 pull_request: https://github.com/python/cpython/pull/20470 ___ Python tracker ___

[issue40795] ctypes: PyErr_WriteUnraisable() called with no exception set on converting callback result failure

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 10228bad0452d94e66c964b625a0b61befa08e59 by Victor Stinner in branch 'master': bpo-40795: ctypes calls unraisablehook with an exception (GH-20452) https://github.com/python/cpython/commit/10228bad0452d94e66c964b625a0b61befa08e59 --

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-05-27 Thread Fantix King
Fantix King added the comment: Ouch ... looks like FreeBSD also needs a few more retries than a single retry. I'll test on a FreeBSD and create a PR for that. -- ___ Python tracker

[issue40795] ctypes: PyErr_WriteUnraisable() called with no exception set on converting callback result failure

2020-05-27 Thread miss-islington
miss-islington added the comment: New changeset 9e3c583954f75a6396d1935e000df85d89b78a3d by Miss Islington (bot) in branch '3.9': bpo-40795: ctypes calls unraisablehook with an exception (GH-20452) https://github.com/python/cpython/commit/9e3c583954f75a6396d1935e000df85d89b78a3d --

[issue40797] multiprocessing.Semaphore has undocumented get_value() method

2020-05-27 Thread Ned Deily
Change by Ned Deily : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-05-27 Thread Fantix King
Fantix King added the comment: Not a simple one - FreeBSD is returning ECONNREFUSED immediately when trying to connect to a non-listening port on the loopback address: https://lists.freebsd.org/pipermail/freebsd-current/2005-May/049876.html Then all following connect attempts on the same

[issue39939] PEP 616: Add str.removeprefix and str.removesuffix methods

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset de6b6841098e1a5967cb7a50b665ca7473d0ddad by Miss Islington (bot) in branch '3.9': bpo-39939: Fix removeprefix issue number in the What's New in Python 3.9 (GH-20473) (GH-20474)

[issue40795] ctypes: PyErr_WriteUnraisable() called with no exception set on converting callback result failure

2020-05-27 Thread miss-islington
miss-islington added the comment: New changeset 45ce0dbc4f8c68fe22ae97860faa8f2ec7faf27b by Miss Islington (bot) in branch '3.8': bpo-40795: ctypes calls unraisablehook with an exception (GH-20452) https://github.com/python/cpython/commit/45ce0dbc4f8c68fe22ae97860faa8f2ec7faf27b --

[issue23897] Update Python 3 extension module porting guide

2020-05-27 Thread Sumana Harihareswara
Sumana Harihareswara added the comment: Following the large rewrite in https://github.com/python/cpython/pull/9317 to point to other guides (including py3c) instead of providing a guide, should we a) add a pointer to Barry's notes as well b) migrate this bug to request enhancements to py3c

[issue37129] Add os.RWF_APPEND flag for os.pwritev

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: Thanks YoSTEALTH. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37028] Implement asyncio repl

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: This issue is now closed. If someone wants to enhane the asyncio REPL, please open a new issue. -- resolution: -> fixed ___ Python tracker

[issue30665] pass big values for arg to fcntl.ioctl

2020-05-27 Thread Ned Deily
Change by Ned Deily : -- versions: +Python 3.10, Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue14562] urllib2 maybe blocks too long with small chunks

2020-05-27 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue40798] The deprecated-removed Sphinx extension need to change the error message based on the Python version

2020-05-27 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : The new deprecated-removed extension in the documentation always produces text like this: Deprecated since version 3.4, will be removed in version 3.8: MD5 as implicit default digest This message should be used in the documentation of 3.4 to 3.7 and then

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-05-27 Thread STINNER Victor
STINNER Victor added the comment: The new test_sock_client_racing() test seems to have... a race condition... AMD64 FreeBSD Non-Debug 3.9: https://buildbot.python.org/all/#/builders/750/builds/11 ERROR: test_sock_client_racing (test.test_asyncio.test_sock_lowlevel.KqueueEventLoopTests)

[issue40795] ctypes: PyErr_WriteUnraisable() called with no exception set on converting callback result failure

2020-05-27 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 ___ Python tracker ___

  1   2   >