[issue44131] [C API] Add tests on Py_FrozenMain()

2021-05-18 Thread Petr Viktorin
Petr Viktorin added the comment: The tests are now skipped on Windows. It might be better to use a feature check: hasattr(ctypes.pythonapi, 'Py_FrozenMain') IMO, Py_FrozenMain is quite specific: it's OK if it's exported, but also OK if it's missing. (Unless you're compiling a special build

[issue44170] ShareableList cannot safely handle multibyte utf-8 characters

2021-05-18 Thread Huw Jones
Huw Jones added the comment: The workaround I am using is to manually encode/decode. For the MWE, this means encoding on the creation side ``` shared_list = smm.ShareableList([s.encode() for s in strings]) ``` and decoding before using the string ``` for enc_str in shared_list: string =

[issue25872] multithreading traceback KeyError when modifying file

2021-05-18 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +24828 pull_request: https://github.com/python/cpython/pull/26211 ___ Python tracker ___

[issue44168] Wrong syntax error hint when spurious colon present in function keyword comprehension assignment

2021-05-18 Thread Gerrit Holl
New submission from Gerrit Holl : In Python 3.9.4, in a function call, when assigning a comprehension to a keyword argument, and the comprehension contains a spurious colon (if a list or set comprehension) or a missing value (when a dict comprehension), the syntax error message gives a hint

[issue44169] Add HTTPS support to http.server

2021-05-18 Thread Fred
New submission from Fred : The http.server module only supports HTTP. https://docs.python.org/3/library/http.server.html I propose that it should also support HTTPS. This would allow it to serve files that depend on features that are restricted to secure contexts.

[issue42937] 192.0.0.8 (IPv4 dummy address) considered globally reachable

2021-05-18 Thread Martijn Pieters
Martijn Pieters added the comment: Oops, I got my issue numbers mixed up. This is related to #44167, I meant. -- ___ Python tracker ___

[issue25872] multithreading traceback KeyError when modifying file

2021-05-18 Thread Irit Katriel
Change by Irit Katriel : -- components: +Library (Lib) -Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42937] 192.0.0.8 (IPv4 dummy address) considered globally reachable

2021-05-18 Thread Martijn Pieters
Martijn Pieters added the comment: > Private is a subset of special use. Should a "_special_use" constant be > created. This would include multicast, link_local, private_use, and a few > more. There are already dedicated tests for those other special use networks in ipaddress.

[issue25872] multithreading traceback KeyError when modifying file

2021-05-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +24825 pull_request: https://github.com/python/cpython/pull/26208 ___ Python tracker ___

[issue44167] ipaddress.IPv6Address.is_private makes redundant checks

2021-05-18 Thread Martijn Pieters
Change by Martijn Pieters : -- keywords: +patch pull_requests: +24826 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26209 ___ Python tracker ___

[issue25872] multithreading traceback KeyError when modifying file

2021-05-18 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +24829 pull_request: https://github.com/python/cpython/pull/26212 ___ Python tracker ___

[issue44170] ShareableList cannot safely handle multibyte utf-8 characters

2021-05-18 Thread Huw Jones
New submission from Huw Jones : I've experienced a UnicodeDecodeError when adding unicode strings that contain multibye utf-8 characters into a shareable list. My observation is that ShareableList chunks the list of strings before sending it over the process boundary, however this chunking

[issue28937] str.split(): allow removing empty strings (when sep is not None)

2021-05-18 Thread Mark Bell
Mark Bell added the comment: So I have taken a look at the original patch that was provided and I have been able to update it so that it is compatible with the current release. I have also flipped the logic in the wrapping functions so that they take a `keepempty` flag (which is the opposite

[issue44167] ipaddress.IPv6Address.is_private makes redundant checks

2021-05-18 Thread Martijn Pieters
New submission from Martijn Pieters : ipaddress.IPv6Address.is_private uses a hard-coded list of `IPv6Network` objects that cover private networks to test against. This list contains two networks that are subnets of a 3rd network in the list. IP addresses that are not private are tested

[issue44160] speed up searching for keywords by using a dictionary

2021-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: BTW, we use different approaches for builtin and Python functions. * For Python functions: iterate all keyword arguments and search in the list of keyword parameter names. * For builtin functions: iterate all keyword parameters and search in the list of

[issue44166] Make IndexError messages for list more informative

2021-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The problem is that such exceptions are often used with the EAFP style. For example: while stop is None or i < stop: try: v = self[i] if v is value or v == value: return i

[issue44166] Make IndexError messages for list more informative

2021-05-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I share the same concern as Serhiy, see my comment in the PR: https://github.com/python/cpython/pull/26207#pullrequestreview-661799899 -- ___ Python tracker

[issue44168] Wrong syntax error hint when spurious colon present in function keyword comprehension assignment

2021-05-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +24827 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26210 ___ Python tracker

[issue42937] 192.0.0.8 (IPv4 dummy address) considered globally reachable

2021-05-18 Thread Martijn Pieters
Martijn Pieters added the comment: This is related to #42937, the IPv4 private network list is not considering the whole of 192.0.0.0/24 to be private. RFC 5736 / 6890 reserved 192.0.0.0/24 for special purposes (private networks) and to date a few subnets of that network have received

[issue43223] [security] http.server: Open Redirection if the URL path starts with //

2021-05-18 Thread Ken Jin
Change by Ken Jin : -- title: [security] http.server: Open Redirection if the URL path starts with //racha999coperation -> [security] http.server: Open Redirection if the URL path starts with // type: crash -> security ___ Python tracker

[issue25872] multithreading traceback KeyError when modifying file

2021-05-18 Thread Irit Katriel
Irit Katriel added the comment: New changeset 373741a97c9f6ffee427c2b4eaccb74347af228a by Irit Katriel in branch '3.10': [3.10] bpo-25872: Add unit tests for linecache and threading (GH-25913) (GH-26212) https://github.com/python/cpython/commit/373741a97c9f6ffee427c2b4eaccb74347af228a

[issue25872] multithreading traceback KeyError when modifying file

2021-05-18 Thread Irit Katriel
Irit Katriel added the comment: @uniocto - thank you for the tests. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44171] Cython cannot compile 'a = 5/6' and return 'a = 0'

2021-05-18 Thread Yao Zhang
Yao Zhang <792641...@qq.com> added the comment: However, in the source code, the source code runs normally, and when compiled and encapsulated with Cython, an exception occurs,Trigger divisible 'a = 5 // 6',this possibility does not exist.I checked it out :'a = 1,b = 5 / 6 + a',return :'b =

[issue41963] ConfigParser: stripping of comments should be documented

2021-05-18 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset c17ba233b3bdf6af4e9dad24374ab0a917b593e7 by Miss Islington (bot) in branch '3.9': bpo-41963: document that ConfigParser strips off comments (GH-26197) (GH-26213) https://github.com/python/cpython/commit/c17ba233b3bdf6af4e9dad24374ab0a917b593e7

[issue20131] warnings module offers no documented, programmatic way to reset "seen-warning" flag

2021-05-18 Thread Catherine Devlin
Catherine Devlin added the comment: I think that it's possible to get the desired behavior by setting a filter to "always". ``` > cat warnme.py import warnings for i in range(3): warnings.warn("oh noes!") > python warnme.py warnme.py:4: UserWarning: oh noes!

[issue44171] Cython cannot compile 'a = 5/6' and return 'a = 0'

2021-05-18 Thread Eric V. Smith
New submission from Eric V. Smith : If this is really a Cython issue, you should report it on the Cython bug tracker. This bug tracker is for CPython. -- nosy: +eric.smith ___ Python tracker

[issue41963] ConfigParser: stripping of comments should be documented

2021-05-18 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +24830 pull_request: https://github.com/python/cpython/pull/26213 ___ Python tracker

[issue38593] Python 3.7 does not catch infinite recursion for some values of sys.getrecursionlimit()

2021-05-18 Thread Irit Katriel
Irit Katriel added the comment: 3.7 is no longer getting bugfixes. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue41963] ConfigParser: stripping of comments should be documented

2021-05-18 Thread Łukasz Langa
Change by Łukasz Langa : -- nosy: +lukasz.langa nosy_count: 2.0 -> 3.0 pull_requests: +24831 pull_request: https://github.com/python/cpython/pull/26214 ___ Python tracker ___

[issue42591] Method Py_FrozenMain missing in libpython3.9

2021-05-18 Thread Petr Viktorin
Petr Viktorin added the comment: Is this function actually usable in Windows? ISTM that you need to define three more functions, PyWinFreeze_ExeInit, PyWinFreeze_ExeTerm and PyInitFrozenExtensions. Was adding this undocumented function to the Windows stable ABI deliberate? I see no

[issue25872] multithreading traceback KeyError when modifying file

2021-05-18 Thread Irit Katriel
Irit Katriel added the comment: New changeset c05d8a6b67785450b1fec0d30fe26d5478bc4f0b by Irit Katriel in branch '3.9': bpo-25872: Add unit tests for linecache and threading (GH-25913) (GH-26211) https://github.com/python/cpython/commit/c05d8a6b67785450b1fec0d30fe26d5478bc4f0b --

[issue44171] Cython cannot compile 'a = 5/6' and return 'a = 0'

2021-05-18 Thread Yao Zhang
Change by Yao Zhang <792641...@qq.com>: -- components: Parser nosy: lys.nikolaou, pablogsal, zz792641209 priority: normal severity: normal status: open title: Cython cannot compile 'a = 5/6' and return 'a = 0' type: compile error versions: Python 3.8

[issue44171] Cython cannot compile 'a = 5/6' and return 'a = 0'

2021-05-18 Thread Yao Zhang
Yao Zhang <792641...@qq.com> added the comment: I'm not going to report the problem yet, I'm a rookie, and this is my first time to report the problem --原始邮件-- 发件人:

[issue44171] Cython cannot compile 'a = 5/6' and return 'a = 0'

2021-05-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Closing as this is a Cython bug and not a CPython one. I also suspect this is triggering integer division and therefore is actually not a bug at all. -- resolution: -> not a bug stage: -> resolved status: open -> closed

[issue44171] Cython cannot compile 'a = 5/6' and return 'a = 0'

2021-05-18 Thread Yao Zhang
Yao Zhang <792641...@qq.com> added the comment: However, in the source code, the source code runs normally, and when compiled and encapsulated with Cython, an exception occurs,Trigger divisible 'a = 5 // 6',this possibility does not exist.I checked it out :'a = 1,b = 5 / 6 + a',return :'a =

[issue28937] str.split(): allow removing empty strings (when sep is not None)

2021-05-18 Thread Matthew Barnett
Matthew Barnett added the comment: The case: ' a b c '.split(maxsplit=1) == ['a', 'b c '] suggests that empty strings don't count towards maxsplit, otherwise it would return [' a b c '] (i.e. the split would give ['', ' a b c '] and dropping the empty strings would give [' a b c

[issue44171] Cython cannot compile 'a = 5/6' and return 'a = 0'

2021-05-18 Thread Eric V. Smith
Eric V. Smith added the comment: Please report this to the Cython bug tracker: https://github.com/cython/cython/issues/ When you do that, you'll want to show the actual code you're having a problem with. You're using both "//" and "/" here. As Pablo said, you're probably having a problem

[issue40670] supplying an empty string to timeit causes an IndentationError

2021-05-18 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41963] ConfigParser: stripping of comments should be documented

2021-05-18 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 4d17c93dfe760478509bcf709345b0522fd3a7e8 by Łukasz Langa in branch '3.10': [3.10] bpo-41963: document that ConfigParser strips off comments (GH-26197) (GH-26214) https://github.com/python/cpython/commit/4d17c93dfe760478509bcf709345b0522fd3a7e8

[issue44171] Cython cannot compile 'a = 5/6' and return 'a = 0'

2021-05-18 Thread Yao Zhang
Yao Zhang <792641...@qq.com> added the comment: I want 'a=5/6' to return 'a= 0.833.. 'after compilation. -- Added file: https://bugs.python.org/file50051/problem.py ___ Python tracker

[issue28937] str.split(): allow removing empty strings (when sep is not None)

2021-05-18 Thread Matthew Barnett
Matthew Barnett added the comment: The best way to think of it is that .split() is like .split(' '), except that it's splitting on any whitespace character instead of just ' ', and keepempty is defaulting to False instead of True. Therefore: ' x y z'.split(maxsplit=1, keepempty=True)

[issue44131] [C API] Add tests on Py_FrozenMain()

2021-05-18 Thread STINNER Victor
STINNER Victor added the comment: > The tests are now skipped on Windows. It might be better to use a feature > check: hasattr(ctypes.pythonapi, 'Py_FrozenMain') On Unix, _testembed gets the symbol since it's used. Currently, hasattr(ctypes.pythonapi, 'Py_FrozenMain') returns false if

[issue28937] str.split(): allow removing empty strings (when sep is not None)

2021-05-18 Thread Matthew Barnett
Matthew Barnett added the comment: We have that already, although it's spelled: ' x y z'.split(maxsplit=1) == ['x', 'y z'] because the keepempty option doesn't exist yet. -- ___ Python tracker

[issue28937] str.split(): allow removing empty strings (when sep is not None)

2021-05-18 Thread Mark Bell
Mark Bell added the comment: > suggests that empty strings don't count towards maxsplit Thank you for the confirmation. Although just to clarify I guess you really mean "empty strings *that are dropped from the output* don't count towards maxsplit". Just to double check this, what do we

[issue44099] [c-api] Introduce a new slot in PyModuleDef to hold the classes

2021-05-18 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: A friendly ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44171] Cython cannot compile 'a = 5/6' and return 'a = 0'

2021-05-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: -pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28937] str.split(): allow removing empty strings (when sep is not None)

2021-05-18 Thread Mark Bell
Mark Bell added the comment: So I think I agree with you about the difference between .split() and .split(' '). However wouldn't that mean that ' x y z'.split(maxsplit=1, keepempty=False) == ['x', 'y z'] since it should do one split. -- ___

[issue44171] Cython cannot compile 'a = 5/6' and return 'a = 0'

2021-05-18 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: -eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7760] [doc] ctypes: use_errno=True does not work

2021-05-18 Thread Irit Katriel
Irit Katriel added the comment: The recommendation not to use absolute paths in CDLL is still not mentioned in the docs: https://docs.python.org/3/library/ctypes.html#ctypes.CDLL Adding the (active) ctypes experts to nosy. -- components: +Documentation keywords: +easy nosy:

[issue44147] [WinError 193] %1 is not a valid Win32 application

2021-05-18 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Are you kidding me, What's going wrong with this issue tracker? I sent a message and it's set to open now? I'm not even a core dev or triager. What the heck is going on? -- ___ Python tracker

[issue44147] [WinError 193] %1 is not a valid Win32 application

2021-05-18 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Eryk, Steve, can we close this? AFAICT, this belongs to a user forum. Shreyan: it seems like a bpo bug to me. I have a feeling closing the issue will help. -- ___ Python tracker

[issue24929] _strptime.TimeRE should not enforce range in regex

2021-05-18 Thread Catherine Devlin
Change by Catherine Devlin : -- keywords: +patch nosy: +Catherine.Devlin nosy_count: 2.0 -> 3.0 pull_requests: +24832 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/26215 ___ Python tracker

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-05-18 Thread Eric Snow
Change by Eric Snow : -- nosy: +eric.snow nosy_count: 4.0 -> 5.0 pull_requests: +24833 pull_request: https://github.com/python/cpython/pull/26216 ___ Python tracker ___

[issue35889] sqlite3.Row doesn't have useful repr

2021-05-18 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > What about a __repr__ that includes the primary key value(s) (for tables > where that is defined)? I’d rather have that as a Row method, or read-only property. It should be straight-forward to implement. SQLite provides an API for such purposes.

[issue35889] sqlite3.Row doesn't have useful repr

2021-05-18 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: See: - https://www.sqlite.org/c3ref/column_database_name.html - https://www.sqlite.org/c3ref/table_column_metadata.html Notice that the former is only available if SQLITE_ENABLE_COLUMN_METADATA was defined at compile time. --

[issue38768] [feature request] Add lldb equivalent to Tools/gdb

2021-05-18 Thread STINNER Victor
STINNER Victor added the comment: Does lldb support scripting in any way? For basic scripting, see also Misc/gdbinit which provides gdb macros: * pyo * pyg * pylocals * linenon * pyframev * pyframe * printframe * pystack * pystackv * pu I don't know if these macros are up to date for Python

[issue44147] [WinError 193] %1 is not a valid Win32 application

2021-05-18 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I've noticed whenever a core dev or triager sends a message the status is automatically set to open. But that's a different glitch or issue. -- status: pending -> open ___ Python tracker

[issue44171] Cython cannot compile 'a = 5/6' and return 'a = 0'

2021-05-18 Thread Yao Zhang
Yao Zhang <792641...@qq.com> added the comment: Thank you for your patient answer, but I still don't understand.I have uploaded my file (*.py).I hope you can solve my problem. I want 'a=5/6' to return 'a= 0.833.. 'after compilation. --原始邮件--

[issue44147] [WinError 193] %1 is not a valid Win32 application

2021-05-18 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Setting status to pending again. (Seems like bpo likes this dance) -- nosy: +erlendaasland status: open -> pending ___ Python tracker ___

[issue35765] Document references object x but doesn't show it in the example

2021-05-18 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +24835 pull_request: https://github.com/python/cpython/pull/26218 ___ Python tracker

[issue30593] sqlite3 executescript does not respect isolation_level?

2021-05-18 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Mentioning this behaviour in the documentation should be sufficient. -- assignee: -> docs@python components: +Documentation -Library (Lib) nosy: +berker.peksag, docs@python, erlendaasland versions: +Python 3.10, Python 3.11, Python 3.9 -Python

[issue44166] Make IndexError messages for list more informative

2021-05-18 Thread Miguel Brito
Miguel Brito added the comment: Thanks for your comments, folks! I really appreciate it. I left a comment about this issue in the PR thread: https://github.com/python/cpython/pull/26207#issuecomment-843531990 -- ___ Python tracker

[issue35765] Document references object x but doesn't show it in the example

2021-05-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +24836 pull_request: https://github.com/python/cpython/pull/26219 ___ Python tracker ___

[issue37439] Add random.binomialvariate()

2021-05-18 Thread Zachary Kneupper
Zachary Kneupper added the comment: Is adding random.binomialvariate() still under consideration? I would be willing to work on this addition to Lib/random.py, as well as the accompanying tests and docs. Should I use the type of algorithm hinted at by Mark on 2019-07-01 17:56? --

[issue24929] _strptime.TimeRE should not enforce range in regex

2021-05-18 Thread Paul Ganssle
Paul Ganssle added the comment: I also commented on GH-26215 ( https://github.com/python/cpython/pull/26215 ), but for posterity, I'll note a few things: 1. It seems that (and this may have changed since 2015), `_strptime._strptime` now has a stage that (unconditionally?) constructs a

[issue7760] [doc] ctypes: use_errno=True does not work

2021-05-18 Thread Eryk Sun
Eryk Sun added the comment: > The recommendation not to use absolute paths in CDLL is still > not mentioned in the docs: It's not generally the case. Load just a base filename only if the shared library is in the loader's search path. Otherwise use a qualified path that contains at least

[issue42783] asyncio.sleep(0) idiom is not documented

2021-05-18 Thread Irit Katriel
Irit Katriel added the comment: New changeset 632b4034ab517b5d7f302c94fd9dc5a28c85f049 by Ken Jin in branch '3.9': [3.9] bpo-42783: Documentation for asyncio.sleep(0) (GH-24002) (GH-24153) https://github.com/python/cpython/commit/632b4034ab517b5d7f302c94fd9dc5a28c85f049 -- nosy:

[issue42783] asyncio.sleep(0) idiom is not documented

2021-05-18 Thread Irit Katriel
Change by Irit Katriel : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue34932] Add macOS TCP_KEEPALIVE to available socket options

2021-05-18 Thread Shane Harvey
Shane Harvey added the comment: I opened a PR to add the socket.TCP_KEEPALIVE flag *on macOS only*. I don't see a reason to add it on Windows since as far as I can tell, TCP_KEEPALIVE is completely undocumented there. Besides there are already two ways to configure keepalive times on

[issue35765] Document references object x but doesn't show it in the example

2021-05-18 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7, Python 3.8 ___ Python tracker ___ ___

[issue30593] Document that sqlite3.Cursor.executescript disregards isolation_level

2021-05-18 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- title: sqlite3 executescript does not respect isolation_level? -> Document that sqlite3.Cursor.executescript disregards isolation_level ___ Python tracker

[issue30593] sqlite3 executescript does not respect isolation_level?

2021-05-18 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +24837 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/26220 ___ Python tracker ___

[issue28937] str.split(): allow removing empty strings (when sep is not None)

2021-05-18 Thread Mark Bell
Change by Mark Bell : -- pull_requests: +24839 pull_request: https://github.com/python/cpython/pull/26222 ___ Python tracker ___

[issue12403] Mention sys.displayhook in code module docs and the compile builtin docs

2021-05-18 Thread Norman Lorrain
Change by Norman Lorrain : -- keywords: +patch nosy: +Norman Lorrain nosy_count: 7.0 -> 8.0 pull_requests: +24834 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/26217 ___ Python tracker

[issue43753] [C API] Add Py_Is(x, y) and Py_IsNone(x) functions

2021-05-18 Thread STINNER Victor
STINNER Victor added the comment: Well, nobody came up with a better definition, so let's go with: "Test if the x object is the y object, the same as x is y in Python." Thanks for the feedback and reviews! Py_Is(x, y), Py_IsNone(x), Py_IsTrue(x) and Py_IsFalse(x) are now part of Python 3.10

[issue43813] Denial of service on http.server module with large request method.

2021-05-18 Thread Mohammed Dief
Change by Mohammed Dief : -- keywords: +patch pull_requests: +24840 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26223 ___ Python tracker ___

[issue32307] Bad assumption on thread stack size makes python crash with musl libc

2021-05-18 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 2.0 -> 3.0 pull_requests: +24841 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26224 ___ Python tracker

[issue29639] test suite intentionally avoids referring to localhost, destroying abstraction away from IPv6 vs IPv4

2021-05-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'm making progress on https://bugs.python.org/issue37901 and related IPv6-only issues, the changes of which tend to shake out improper uses of 127.0.0.1 hardcoded. I'm closing this issue as there aren't specific needs that the rest won't cover.

[issue44172] curses module may call delwin() on original window before subwindows

2021-05-18 Thread Michael Forney
New submission from Michael Forney : When subwin() is used to create a subwindow for an original window, it does not keep a reference to the original window object. This can result in the original window getting deleted with delwin() before the subwindow. According to the X/Open curses

[issue44172] curses module may call delwin() on original window before subwindows

2021-05-18 Thread Michael Forney
Change by Michael Forney : -- keywords: +patch pull_requests: +24843 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26226 ___ Python tracker ___

[issue44151] Improve parameter names and return value ordering for linear_regression

2021-05-18 Thread Zachary Kneupper
Zachary Kneupper added the comment: > Any objections to linear_regression(x, y) -> (slope, intercept)? I think `linear_regression(x, y)` would be intuitive for a wide range of users. Just to clarify, is the proposal to return a regular tuple instead of named tuple? Would we do this:

[issue27334] [sqlite3] context manager leaves db locked if commit fails in __exit__

2021-05-18 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > I believe the reason for this problem is that the exception happened in the > implicit `commit` that is run on exiting the context manager, rather than > inside it. In fact the exception is in the `pass` line rather than in the > `execute` line. This

[issue44151] Improve parameter names and return value ordering for linear_regression

2021-05-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Any objections to linear_regression(x, y) -> (slope, intercept)? -- ___ Python tracker ___

[issue40339] Instead of skipping, IPV6 test(s) fail on a non-IPV6 machine

2021-05-18 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Test suite fails when Ipv6 is unavailable ___ Python tracker

[issue22891] code removal from urllib.parse.urlsplit()

2021-05-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: There are still a lot of cleanliness and even logical issues lurking within urllib.parse. But this bug is dated and other changes have happened since. I'm closing it as out of date. Open new issues for specific action items. -- nosy:

[issue44173] Stored (uncompressed) ZipExtFile in zipfile can be seekable at lower cost

2021-05-18 Thread JuniorJPDJ
New submission from JuniorJPDJ : At the moment stored ZipExtFile is being read to the place of seek like all other compressed variants. It's not needed as it's possible to freely seek uncompressed file inside zip without this penalty. Lots of apps depend on ZipExtFile seeking ability and it

[issue37901] 21 tests fail when run on an IPv6-only host

2021-05-18 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +24842 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/26225 ___ Python tracker

[issue44173] Stored (uncompressed) ZipExtFile in zipfile can be seekable at lower cost

2021-05-18 Thread JuniorJPDJ
Change by JuniorJPDJ : -- keywords: +patch pull_requests: +24844 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26227 ___ Python tracker ___

[issue44175] What do "cased" and "uncased" mean?

2021-05-18 Thread Josh Rosenberg
Josh Rosenberg added the comment: "Cased": Characters which are either lowercase or uppercase (they have some other equivalent form in a different case) "Uncased": Characters which are neither uppercase nor lowercase. Do you have a suggested alternate wording? -- nosy: +josh.r

[issue42109] Use hypothesis for testing the standard library, falling back to stubs

2021-05-18 Thread Guido van Rossum
Guido van Rossum added the comment: Okay, well, I'm trying to understand minithesis.py, but I am despairing. The shrinking code (really everything in class TestingState) is too much to grok. You can tell from the amount of comments that this is the tour-de-force of the code, but the

[issue44175] What do "cased" and "uncased" mean?

2021-05-18 Thread Isaac Ge
Change by Isaac Ge : -- title: What does "cased" and "uncased" mean? -> What do "cased" and "uncased" mean? ___ Python tracker ___

[issue44176] asyncio.as_completed() raises TypeError when the first supplied parameter is a generator that yields awaitables

2021-05-18 Thread Alex DeLorenzo
New submission from Alex DeLorenzo : According to the documentation, asyncio.as_completed() takes a positional argument, aws, as an iterable of awaitables[1]: asyncio.as_completed(aws, *, loop=None, timeout=None) Run awaitable objects in the aws iterable concurrently. As seen in

[issue44174] Unclear meaning of _Private__names in enum docs.

2021-05-18 Thread Gregory P. Smith
New submission from Gregory P. Smith : https://docs.python.org/3/library/enum.html#private-names """ _Private__names Private names will be normal attributes in Python 3.10 instead of either an error or a member (depending on if the name ends with an underscore). Using these names in 3.9

[issue44175] What does "cased" and "uncased" mean?

2021-05-18 Thread Isaac Ge
New submission from Isaac Ge : str.istitle(): Return True if the string is a titlecased string and there is at least one character, for example uppercase characters may only follow uncased characters and lowercase characters only cased ones. Return False otherwise. I saw this description

[issue44176] asyncio.as_completed() raises TypeError when the first supplied parameter is a generator that yields awaitables

2021-05-18 Thread Alex DeLorenzo
Change by Alex DeLorenzo : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44166] Make IndexError messages for list more informative

2021-05-18 Thread Miguel Brito
Change by Miguel Brito : -- keywords: +patch pull_requests: +24824 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26207 ___ Python tracker ___

[issue44166] Make IndexError messages for list more informative

2021-05-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44176] asyncio.as_completed() raises TypeError when the first supplied parameter is a generator that yields awaitables

2021-05-18 Thread Alex DeLorenzo
Change by Alex DeLorenzo : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44160] speed up searching for keywords by using a dictionary

2021-05-18 Thread Dennis Sweeney
Dennis Sweeney added the comment: Good catch -- with interning, the cutoff is more like 20-50, so it's probably not worth optimizing for. Before: 1 --> 1.67e-07 2 --> 1.77e-07 3 --> 1.90e-07 4 --> 2.05e-07 5 --> 2.14e-07 6 --> 2.35e-07 7 --> 2.51e-07 8 --> 2.67e-07 9 --> 2.76e-07 10 -->

[issue44165] [sqlite3] sqlite3_prepare_v2 micro optimisation: pass string size

2021-05-18 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +24823 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26206 ___ Python tracker

  1   2   >