[issue38580] select()'s documentation claims only sequences are accepted, but it allows all iterables

2020-05-25 Thread Tal Einat
Tal Einat added the comment: New changeset 372ee27d4958302dac7ad6a8711f6fd04771b2e6 by Jakub Stasiak in branch 'master': bpo-38580: Document that select() accepts iterables, not just sequences (GH-16832) https://github.com/python/cpython/commit/372ee27d4958302dac7ad6a8711f6fd04771b2e6

[issue38580] select()'s documentation claims only sequences are accepted, but it allows all iterables

2020-05-25 Thread miss-islington
Change by miss-islington : -- keywords: +patch nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +19635 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20372 ___ Python tracker

[issue38580] select()'s documentation claims only sequences are accepted, but it allows all iterables

2020-05-25 Thread Tal Einat
Tal Einat added the comment: Nothing further is required; I've merged the PR. Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 ___ Python tracker ___

[issue40763] zipfile.extractall is safe by now

2020-05-25 Thread Va
New submission from Va : In documentation of all Python 3 versions, [ZipFile.extractall](https://docs.python.org/3/library/zipfile.html#zipfile.ZipFile.extractall) states with a big red warning: > Warning > Never extract archives from untrusted sources without prior inspection. It is > possi

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

2020-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In any case this is a new feature, so it can be added only in 3.10, and we need the documentation patch for 3.9 and older. As a workaround you can use os.fsdecode(): tempfile.tempdir = os.fsdecode(b'/doesntexist') -- _

[issue40373] urlunparse does not escape slash (/) for http+unix:// in netloc field

2020-05-25 Thread Tal Einat
Tal Einat added the comment: This seems to simply be a misunderstanding: urlunparse() and urlunsplit() intentionally do not do any encoding of their components. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python trac

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

2020-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: According to the documentation (https://docs.python.org/3/library/csv.html#writer-objects): """ A row must be an iterable of strings or numbers for Writer objects and a dictionary mapping fieldnames to strings or numbers (by passing them through str() fir

[issue40761] unittest.TestCase.asserTrue return True even if the expr is False

2020-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: assertTrue() always returns None, but its returned value is irrelevant, because it is only used for its side effect. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue35714] Document that the null character '\0' terminates a struct format spec

2020-05-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +19639 pull_request: https://github.com/python/cpython/pull/20376 ___ Python tracker ___ __

[issue35714] Document that the null character '\0' terminates a struct format spec

2020-05-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +19637 pull_request: https://github.com/python/cpython/pull/20374 ___ Python tracker ___ __

[issue35714] Document that the null character '\0' terminates a struct format spec

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

[issue35714] Document that the null character '\0' terminates a struct format spec

2020-05-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +19638 pull_request: https://github.com/python/cpython/pull/20375 ___ Python tracker ___ __

[issue35714] Document that the null character '\0' terminates a struct format spec

2020-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3f59b55316f4c6ab451997902579aa69020b537c by Zackery Spytz in branch 'master': bpo-35714: Reject null characters in struct format strings (GH-16928) https://github.com/python/cpython/commit/3f59b55316f4c6ab451997902579aa69020b537c --

[issue39301] Specification of bitshift on integers should clearly state floor division used

2020-05-25 Thread Mark Dickinson
Change by Mark Dickinson : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue29882] Add an efficient popcount method for integers

2020-05-25 Thread Mark Dickinson
Mark Dickinson added the comment: I'm re-reviewing this discussion three years on. I'd be happy for this to go into 3.10. Are there other strong opinions? It would be good to either update and merge the PR, or close as rejected. -- ___ Python trac

[issue40695] hashlib: OpenSSL hash detection should obey security policy

2020-05-25 Thread miss-islington
miss-islington added the comment: New changeset 4cc2f9348c6e899b76af811fa3bb6c60de642a28 by Christian Heimes in branch 'master': bpo-40695: Limit hashlib builtin hash fallback (GH-20259) https://github.com/python/cpython/commit/4cc2f9348c6e899b76af811fa3bb6c60de642a28 -- nosy: +miss

[issue40695] hashlib: OpenSSL hash detection should obey security policy

2020-05-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +19640 pull_request: https://github.com/python/cpython/pull/20377 ___ Python tracker ___ __

[issue40671] Convert _hashlib to PEP 489 multiphase initialization

2020-05-25 Thread Christian Heimes
Christian Heimes added the comment: New changeset 20c22db602bf2a51f5231433b9054290f8069b90 by Christian Heimes in branch 'master': bpo-40671: Prepare _hashlib for PEP 489 (GH-20180) https://github.com/python/cpython/commit/20c22db602bf2a51f5231433b9054290f8069b90 -- ___

[issue40671] Convert _hashlib to PEP 489 multiphase initialization

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

[issue40695] hashlib: OpenSSL hash detection should obey security policy

2020-05-25 Thread miss-islington
miss-islington added the comment: New changeset 7015823971e7c0cf41cd7d9d9991ed0abdc2f1f4 by Miss Islington (bot) in branch '3.9': bpo-40695: Limit hashlib builtin hash fallback (GH-20259) https://github.com/python/cpython/commit/7015823971e7c0cf41cd7d9d9991ed0abdc2f1f4 -- _

[issue40734] /usr/bin surprisingly in sys.path under IDLE

2020-05-25 Thread Matthias Klose
Matthias Klose added the comment: I can't reproduce that: $ python3.7 -c 'import sys; print (sys.path)' ['', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/dist-packages', '/usr/lib/python3/dist-packages'] -- resolution: -

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

2020-05-25 Thread Sidhant Bansal
Sidhant Bansal added the comment: Yes, I do recognise that the current doc states that csv only supports strings and numbers. However the use case here is motivated when the user wants to write bytes and numbers/strings mixed to a CSV file. Currently providing bytes to write to a CSV passes

[issue40764] Conflation of Counter with Multiset

2020-05-25 Thread Paul
New submission from Paul : The collections docs state: "Several mathematical operations are provided for combining Counter objects to produce multisets (counters that have counts greater than zero)." I am surprised at the clear level of decision into conflating counters with multisets. Why b

[issue40734] /usr/bin surprisingly in sys.path under IDLE

2020-05-25 Thread paul rubin
paul rubin added the comment: Matthias, I get the same result you do when I run python from the shell command line. I see /usr/bin in the path when I import sys and print sys.path from inside IDLE. In other words this is an IDLE configuration oddity. Again I don't know if it's a bug. It'

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

2020-05-25 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > As an example, if I write character "A" as a byte, i.e b'A' in a csv file But you can't write b'A' in a csv file, what you can't do is write `b'a'.decode()` or `b'a'.decode('latin1')` or `b'a'.decode('whatever')` but the string representation of a byte string

[issue40745] Typo in library/typing

2020-05-25 Thread zihengCat
Change by zihengCat : -- keywords: +patch nosy: +zihengcat nosy_count: 3.0 -> 4.0 pull_requests: +19643 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20379 ___ Python tracker __

[issue17258] multiprocessing.connection challenge implicitly uses MD5

2020-05-25 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +19644 pull_request: https://github.com/python/cpython/pull/20380 ___ Python tracker ___

[issue40765] clear screen in idle

2020-05-25 Thread sagar
New submission from sagar : please provide clear screen option in windows idle. clear screen means moving command line to start of the page. -- assignee: terry.reedy components: IDLE messages: 369870 nosy: sagarkancharlas, terry.reedy priority: normal severity: normal status: open title

[issue40766] Add support for SQLITE_DIRECTONLY and SQLITE_INNOCUOUS for user-defined functions

2020-05-25 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : Add support for SQLITE_DIRECTONLY and SQLITE_INNOCUOUS in `sqlite3.create_function()` and `sqlite3.create_aggregate()`. >From the SQLite 3.31.0 changelog: - Provide the ability to tag application-defined SQL functions with new properties SQLITE_INN

[issue10572] Move test sub-packages to Lib/test

2020-05-25 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue40767] Allow pure Wayland to get default XDG webbrowser

2020-05-25 Thread Jeremy Attali
New submission from Jeremy Attali : In a pure Wayland environment (without xwayland), the DISPLAY environment variable is not present. Therefore the call to `xdg-settings get default-browser` is not made. So the webbrowser behaviour is different between X11 and Wayland environment. I'm working

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

2020-05-25 Thread Sidhant Bansal
Sidhant Bansal added the comment: Hi Remi, Currently a code like this: ``` with open("abc.csv", "w", encoding='utf-8') as f: data = [b'\x41'] w = csv.writer(f) w.writerow(data) with open("abc.csv", "r") as f: rows = csv.reader(f) for row in rows: print(row[0]) # pri

[issue40671] Convert _hashlib to PEP 489 multiphase initialization

2020-05-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +19645 pull_request: https://github.com/python/cpython/pull/20381 ___ Python tracker ___ __

[issue40767] Allow pure Wayland to get default XDG webbrowser

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

[issue36073] sqlite crashes with converters mutating cursor

2020-05-25 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue40671] Convert _hashlib to PEP 489 multiphase initialization

2020-05-25 Thread miss-islington
miss-islington added the comment: New changeset 1fe1a14703001ec8076412ca28a3fbdf1f5c0735 by Miss Islington (bot) in branch '3.9': bpo-40671: Prepare _hashlib for PEP 489 (GH-20180) https://github.com/python/cpython/commit/1fe1a14703001ec8076412ca28a3fbdf1f5c0735 --

[issue40764] Conflation of Counter with Multiset

2020-05-25 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue13299] namedtuple row factory for sqlite3

2020-05-25 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue40768] pyaudio

2020-05-25 Thread Mansi
Change by Mansi : -- files: Screenshot (22).png nosy: mansi priority: normal severity: normal status: open title: pyaudio type: compile error versions: Python 3.8 Added file: https://bugs.python.org/file49193/Screenshot (22).png ___ Python tracker <

[issue40768] pyaudio

2020-05-25 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : Hi Mansi, this is not an issue in the Python interpreter but with a third party module. This bug tracker is only for reporting issues with the CPython interpreter. If you read the error message you attached, there is some steps given to fix your issue, you c

[issue40734] /usr/bin surprisingly in sys.path under IDLE

2020-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: *Exactly* how are you starting IDLE? This should only happen if you start IDLE in /usr/bin or edit a file in /usr/bin. Is there any such thing on Linux/Debian as 'start IDLE from an icon', as on Windows? If so, is the starting directory part of the icon c

[issue40765] clear screen in idle

2020-05-25 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> IDLE - clear and restart the shell window type: behavior -> enhancement ___ Python tracker __

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

2020-05-25 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > in real-life that b-prefixed string is just not readable by another program > in an easy way If another program opens this CSV file, it will read the string "b'A'" which is what this field actually contains. Everything that is not a number or a string gets c

[issue29882] Add an efficient popcount method for integers

2020-05-25 Thread Tim Peters
Tim Peters added the comment: I see I never explicitly said +1, so I will now: +1 on merging this :-) -- ___ Python tracker ___ ___

[issue38972] [venv] Link to instructions to change PowerShell execution policy for venv activation

2020-05-25 Thread Miro Hrončok
Change by Miro Hrončok : -- nosy: +hroncok nosy_count: 7.0 -> 8.0 pull_requests: +19647 pull_request: https://github.com/python/cpython/pull/20383 ___ Python tracker ___ ___

[issue29882] Add an efficient popcount method for integers

2020-05-25 Thread STINNER Victor
STINNER Victor added the comment: Adding a function to a new hypothetical imath module sounds reasonable. I'm less comfortable with adding a new method to int type: it would mean that any int subtype "should" implement it. For example, should numpy.int64 get this method as well? What is the

[issue32280] Expose `_PyRuntime` through a section name

2020-05-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: @steve.dower, please take a look at this PR when you have a chance. Thanks! -- nosy: +cheryl.sabella ___ Python tracker ___

[issue29882] Add an efficient popcount method for integers

2020-05-25 Thread STINNER Victor
STINNER Victor added the comment: > In CPython itself: See count_set_bits in Modules/mathmodule.c Python/hamt.c contains an optimized function: static inline uint32_t hamt_bitcount(uint32_t i) { /* We could use native popcount instruction but that would require to either add config

[issue38972] [venv] Link to instructions to change PowerShell execution policy for venv activation

2020-05-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset ef16958d17e83723334a51428f410f726d6492a7 by Miro Hrončok in branch 'master': bpo-38972: Fix typos in PowerShell Execution Policies links (GH-20383) https://github.com/python/cpython/commit/ef16958d17e83723334a51428f410f726d6492a7 -- nos

[issue38972] [venv] Link to instructions to change PowerShell execution policy for venv activation

2020-05-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +19648 pull_request: https://github.com/python/cpython/pull/20384 ___ Python tracker ___ __

[issue34397] remove redundant overflow checks in tuple and list implementations

2020-05-25 Thread miss-islington
miss-islington added the comment: New changeset e682b26a6bc6d3db1a44d82db09d26224e82ccb5 by Sergey Fedoseev in branch 'master': bpo-34397: Remove redundant overflow checks in list and tuple implementation. (GH-8757) https://github.com/python/cpython/commit/e682b26a6bc6d3db1a44d82db09d26224e8

[issue38972] [venv] Link to instructions to change PowerShell execution policy for venv activation

2020-05-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +19649 pull_request: https://github.com/python/cpython/pull/20385 ___ Python tracker ___ __

[issue10572] Move test sub-packages to Lib/test

2020-05-25 Thread Ido Michael
Change by Ido Michael : -- nosy: -Ido Michael ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue34397] remove redundant overflow checks in tuple and list implementations

2020-05-25 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue40736] better message for re.search TypeError ("expected string or bytes-like object")

2020-05-25 Thread Ido Michael
Ido Michael added the comment: I agree it should be more informative and have the same standard as the rest of the Errors messages. Can I start a PR? -- nosy: +Ido Michael ___ Python tracker __

[issue40769] Pegen: cover extra surrounding parentheses for invalid annotated assignment

2020-05-25 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue40673] urllib.request.URLopener raises different exceptions based on implementation detail

2020-05-25 Thread Ido Michael
Ido Michael added the comment: Does it includes the FancyURLopener? This class is derived from URLopener. Also what needs to be done? Remove the URLopener, URLopener_Tests and DummyURLopeners ? -- nosy: +Ido Michael ___ Python tracker

[issue29882] Add an efficient popcount method for integers

2020-05-25 Thread Mark Dickinson
Mark Dickinson added the comment: > For example, should numpy.int64 get this method as well? That's for the NumPy folks to decide (and I've added Nathaniel Smith to the nosy in case he wants to comment), but I don't see any particularly strong reason that NumPy would need to add it. It looks

[issue40769] Pegen: cover extra surrounding parentheses for invalid annotated assignment

2020-05-25 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : $ python -X oldparser Python 3.10.0a0 (heads/bpo-x:f2947e354c, May 21 2020, 18:54:57) [GCC 9.2.1 20191008] on linux Type "help", "copyright", "credits" or "license" for more information. >>> (()): int File "", line 1 SyntaxError: only single target (n

[issue40769] Pegen: cover extra surrounding parentheses for invalid annotated assignment

2020-05-25 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +19650 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20387 ___ Python tracker ___

[issue40769] Pegen: cover extra surrounding parentheses for invalid annotated assignment

2020-05-25 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +gvanrossum, lys.nikolaou, pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue40768] pyaudio

2020-05-25 Thread SilentGhost
Change by SilentGhost : -- resolution: -> third party stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker ___

[issue38972] [venv] Link to instructions to change PowerShell execution policy for venv activation

2020-05-25 Thread miss-islington
miss-islington added the comment: New changeset 331b2dfadb2a5dd990145c043d006166e568af7b by Miss Islington (bot) in branch '3.8': bpo-38972: Fix typos in PowerShell Execution Policies links (GH-20383) https://github.com/python/cpython/commit/331b2dfadb2a5dd990145c043d006166e568af7b

[issue38972] [venv] Link to instructions to change PowerShell execution policy for venv activation

2020-05-25 Thread miss-islington
miss-islington added the comment: New changeset 20b2bf318345170502b9840673594a5a12a40829 by Miss Islington (bot) in branch '3.9': bpo-38972: Fix typos in PowerShell Execution Policies links (GH-20383) https://github.com/python/cpython/commit/20b2bf318345170502b9840673594a5a12a40829

[issue39245] Public API for Vectorcall (PEP 590)

2020-05-25 Thread Miro Hrončok
Change by Miro Hrončok : -- nosy: +hroncok nosy_count: 2.0 -> 3.0 pull_requests: +19651 pull_request: https://github.com/python/cpython/pull/20388 ___ Python tracker ___ ___

[issue39245] Public API for Vectorcall (PEP 590)

2020-05-25 Thread miss-islington
miss-islington added the comment: New changeset e50883ccc4bfa198c3d5e3367306324fc49730cb by Miro Hrončok in branch 'master': bpo-39245: Fix docs links to the stable ABI (GH-20388) https://github.com/python/cpython/commit/e50883ccc4bfa198c3d5e3367306324fc49730cb -- nosy: +miss-islingt

[issue39245] Public API for Vectorcall (PEP 590)

2020-05-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +19652 pull_request: https://github.com/python/cpython/pull/20389 ___ Python tracker ___ __

[issue39245] Public API for Vectorcall (PEP 590)

2020-05-25 Thread miss-islington
miss-islington added the comment: New changeset 9a5e643483578c3a944ceb5aa511d6c24280aedc by Miss Islington (bot) in branch '3.9': bpo-39245: Fix docs links to the stable ABI (GH-20388) https://github.com/python/cpython/commit/9a5e643483578c3a944ceb5aa511d6c24280aedc --

[issue40770] RFE: Run linkchecker on documentation on the CI

2020-05-25 Thread Miro Hrončok
New submission from Miro Hrončok : In Fedora, we run the following check when we build Python documentation: # Verify that all of the local links work # # (we can't check network links, as we shouldn't be making network connections # within a build. Also, don't bother checking the .txt source f

[issue40770] RFE: Run linkchecker on documentation on the CI

2020-05-25 Thread Miro Hrončok
Miro Hrončok added the comment: Side note: linkchecker can be installed via pip, but the released version is not Python 3 compatible. In Fedora, we package it from git. -- ___ Python tracker

[issue40748] Tutorial 4.7 More on Defining Functions missing screen prompts

2020-05-25 Thread Ama Aje My Fren
Ama Aje My Fren added the comment: On Sun, May 24, 2020 at 11:34 PM Chas Belov wrote: > > I'm guessing your point is that we only need to show >>> and ... when there > will be print output so that we need to distinguish between what is input and > what is output. > Yes, that is my understa

[issue39465] [subinterpreters] Design a subinterpreter friendly alternative to _Py_IDENTIFIER

2020-05-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19653 pull_request: https://github.com/python/cpython/pull/20390 ___ Python tracker ___ __

[issue40771] python3 fromtimestamp generates OSError

2020-05-25 Thread Jim Carroll
New submission from Jim Carroll : We encountered an interesting mtime problem in the field, that I believe represents a bug in python's datetime timestamp handling. A file stored on a windows server had the last-modified date '1/1/4501' (that's the year 4501). os.path.getmtime() returns a val

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

2020-05-25 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset ad3252bad905d41635bcbb4b76db30d570cf0087 by Dong-hee Na in branch 'master': bpo-39573: Convert Py_TYPE() to a static inline function (GH-20290) https://github.com/python/cpython/commit/ad3252bad905d41635bcbb4b76db30d570cf0087 --

[issue40770] RFE: Run linkchecker on documentation on the CI

2020-05-25 Thread Andy Lester
Change by Andy Lester : -- nosy: +petdance ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

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

2020-05-25 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +19654 pull_request: https://github.com/python/cpython/pull/20391 ___ Python tracker ___ _

[issue40764] Conflation of Counter with Multiset

2020-05-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: For the most part, Counter() works fine with negative counts. The update() and subtract() methods were specifically designed to work with negative values. Nothing prevents use cases with negative counts. In addition, there are some methods like elements

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

2020-05-25 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 7d847e29d76b178c2db66b180065771b4d90c78f by Dong-hee Na in branch 'master': bpo-39573: Fix buildbot failure for tupleobject.c (GH-20391) https://github.com/python/cpython/commit/7d847e29d76b178c2db66b180065771b4d90c78f -- ___

[issue40750] Support -d flag in the new parser

2020-05-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 800a35c623bbcdb5793c7d7a4974524286311479 by Pablo Galindo in branch 'master': bpo-40750: Support -d flag in the new parser (GH-20340) https://github.com/python/cpython/commit/800a35c623bbcdb5793c7d7a4974524286311479 --

[issue40750] Support -d flag in the new parser

2020-05-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40750] Support -d flag in the new parser

2020-05-25 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +19655 pull_request: https://github.com/python/cpython/pull/20392 ___ Python tracker _

[issue40763] zipfile.extractall is safe by now

2020-05-25 Thread Ama Aje My Fren
Ama Aje My Fren added the comment: Hi, On Mon, May 25, 2020 at 10:18 AM Va wrote: > > So, the big red warning in Python 3 documentation might be relevant only for > Python < 2.7.4, not for any Python 3 version. > You may be on to something. It does appear to be what was discussed in msg181

[issue40750] Support -d flag in the new parser

2020-05-25 Thread miss-islington
miss-islington added the comment: New changeset 82da2c3eb4d69b55d9e300ab5d9c1d22bd09b9cd by Miss Islington (bot) in branch '3.9': bpo-40750: Support -d flag in the new parser (GH-20340) https://github.com/python/cpython/commit/82da2c3eb4d69b55d9e300ab5d9c1d22bd09b9cd -- ___

[issue40737] Fix possible reference leak for sqlite3 initialization

2020-05-25 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- title: Handle PyModule_AddObject() error correctly in sqlite3 -> Fix possible reference leak for sqlite3 initialization ___ Python tracker __

[issue40772] module 'resource' has no attribute 'RLIMIT_VMEM'

2020-05-25 Thread Titusz Ban
New submission from Titusz Ban : While trying to limit the virtual memory used by a process, using import resource MAX_VIRTUAL_MEMORY = 1 * 1024 * 1024 resource.setrlimit(resource.RLIMIT_VMEM, (MAX_VIRTUAL_MEMORY, MAX_VIRTUAL_MEMORY)) The following error occurred: AttributeError: module 'res

[issue30008] OpenSSL 1.1.0 deprecated functions

2020-05-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: @christian.heimes, is this issue and PR still relevant? You mention 3.8 in msg291343. Thanks! -- nosy: +cheryl.sabella ___ Python tracker

[issue40771] python3 fromtimestamp generates OSError

2020-05-25 Thread SilentGhost
SilentGhost added the comment: You seem to have read the docs, so I'm a bit confused why you think that is a bug. According to https://docs.python.org/3/library/datetime.html#datetime.datetime.fromtimestamp > fromtimestamp() may raise OverflowError, if the timestamp is out of the range > of

[issue40756] Second argument of LoggerAdapter.__init__ should default to None

2020-05-25 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> vinay.sajip nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue40753] Remove Python 2 compatibility code from pathlib

2020-05-25 Thread Brett Cannon
Brett Cannon added the comment: > Is this an axiom or is the reasoning written down somewhere? It should be written down in the devguide at devguide.python.org. I agree with Serhiy that this isn't really adding anything by making the code that much more readable, idiomatic, or faster to warr

[issue30008] OpenSSL 1.1.0 deprecated functions

2020-05-25 Thread Christian Heimes
Christian Heimes added the comment: Yes, it's still relevant. I haven't got time to look into the matter yet. -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.7 ___ Python tracker

[issue23721] Set up a daily test coverage run

2020-05-25 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue40750] Support -d flag in the new parser

2020-05-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +19656 pull_request: https://github.com/python/cpython/pull/20393 ___ Python tracker ___ ___

[issue40753] Remove Python 2 compatibility code from pathlib

2020-05-25 Thread Ram Rachum
Ram Rachum added the comment: Brett: Oh well, I understand. Looking at the devguide, I can't find where this is written. I'm interested in seeing how it's phrased, because I do think that tiny, incremental changes are important. I would want to know why, for example, my change https://github

[issue40750] Support -d flag in the new parser

2020-05-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset deb4355a37e41edf1199920789fe9572c1fb43c2 by Pablo Galindo in branch 'master': bpo-40750: Do not expand the new parser debug flags if Py_BUILD_CORE is not defined (GH-20393) https://github.com/python/cpython/commit/deb4355a37e41edf1199920

[issue40750] Support -d flag in the new parser

2020-05-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +19657 pull_request: https://github.com/python/cpython/pull/20394 ___ Python tracker ___ __

[issue40558] update CONTRIBUTING.rst docs

2020-05-25 Thread Zachary Ware
Zachary Ware added the comment: New changeset 2377a9bae3f698efaa81ff0426d0feb14c9f6329 by Hai Shi in branch 'master': Closes bpo-40558: update CONTRIBUTING.rst to reflect current branches (GH-19989) https://github.com/python/cpython/commit/2377a9bae3f698efaa81ff0426d0feb14c9f6329 --

[issue40740] Missing api-ms-win-core-path-l1-1.0.dll for python-3.9.0b1-amd64.exe Under Win7

2020-05-25 Thread Steve Dower
Steve Dower added the comment: Sorry, Windows 7 is no longer supported in Python 3.9. You'll need to update, ideally to Windows 10, but if you want to stay on Windows 8.1 then I believe that one's supported until Python 3.10. -- resolution: -> not a bug stage: -> resolved status: o

[issue32280] Expose `_PyRuntime` through a section name

2020-05-25 Thread Steve Dower
Steve Dower added the comment: It looks fine to me, but we probably want to clearly document it as unsupported/likely to change between releases/etc., especially since it's relying on an assumption that we want to change (one static runtime per process). --

[issue40754] ModuleNotFoundError: No module named '_testinternalcapi' under Win10

2020-05-25 Thread Zachary Ware
Zachary Ware added the comment: At a guess, it looks like we're not including that module in the Windows installer. And indeed, it looks like it's left out of Tools/msi/test/test_files.wxs if you would like to provide a PR :) On the other hand, I'm not sure that test (and any other dependin

[issue40750] Support -d flag in the new parser

2020-05-25 Thread miss-islington
miss-islington added the comment: New changeset 31084be618b6b7602d58e4d21ceef2e65ed8ef1b by Miss Islington (bot) in branch '3.9': bpo-40750: Do not expand the new parser debug flags if Py_BUILD_CORE is not defined (GH-20393) https://github.com/python/cpython/commit/31084be618b6b7602d58e4d21c

  1   2   >