[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 871eb4237b9be95263ca13ba8856e78344eb9eba by Erlend Egeberg Aasland in branch 'master': bpo-40170: Convert PyDescr_IsData() to static inline function (GH-24535) https://github.com/python/cpython/commit/871eb4237b9be95263ca13ba8856e78344eb9eba -

[issue43228] Regression in function builtins

2021-02-15 Thread Lumír Balhar
Lumír Balhar added the comment: I'm not an expert nor an author but this might help: Cloudpickle offers extended possibilities for pickling but uses the standard pickle module for unpickling: >>> import pickle, cloudpickle >>> cloudpickle.load is pickle.load True >>> cloudpickle.loads is pick

[issue43238] python picking garbage values randomly incase running palindrome function

2021-02-15 Thread Raghav Bhandari
New submission from Raghav Bhandari : temp value is & C:/Users/Raghav/AppData/Local/Programs/Python/Python3 and revtemp value is 3nohtyP/nohtyP/smargorP/lacoL/ataDppA/vahgaR/sresU/:C & temp value is & C:/Users/Raghav/AppData/Local/Programs/Python/Python39 and revtemp value is 93nohtyP/noht

[issue20364] Rename & explain sqlite3.Cursor.execute 'parameters' param

2021-02-15 Thread Michael Wayne Goodman
Michael Wayne Goodman added the comment: Sorry, typo in my last statement. I did *not* verify if the behavior is the same with earlier/later versions. -- ___ Python tracker _

[issue20364] Rename & explain sqlite3.Cursor.execute 'parameters' param

2021-02-15 Thread Michael Wayne Goodman
Michael Wayne Goodman added the comment: Sorry to resurrect an old bug, but I've also found the docs lacking and I can fill in some gaps with some experimental results. Setup: >>> import sqlite3 >>> conn = sqlite3.connect(':memory:') >>> conn.execute('CREATE TABLE foo (x INTEGER,

[issue43175] filecmp is not working for UTF-8 BOM file.

2021-02-15 Thread suresh
suresh added the comment: Dear Team, Any more details are required. Kindly let me know. -- ___ Python tracker ___ ___ Python-bug

[issue43237] datetime.__eq__ returns true when timezones don't match

2021-02-15 Thread Richard Wise
New submission from Richard Wise : from datetime import datetime, timezone, timedelta datetime_in_sgt = datetime(2021, 2, 16, 8, 0, 0, tzinfo=timezone(timedelta(hours=8))) datetime_in_utc = datetime(2021, 2, 16, 0, 0, 0, tzinfo=timezone.utc) print(datetime_in_sgt == datetime_in_utc) Expected

[issue43236] Windows IDLE taskbar icon jump list fails to open recent files

2021-02-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I will just note that the IDLE File menu has a Recent Files list, which is the same thing. (Notepad++ does also, in addition to a working icon jump list.) -- ___ Python tracker

[issue43236] Windows IDLE taskbar icon jump list fails to open recent files

2021-02-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is a Windows installer code issue rather than an IDLE code issue. On Win10, I do not see jump lists for IDLE icons but do for several others. Perhaps the installer was changed to disable the non-functional lists. I will let the installer people comme

[issue43230] typo in Simplified/Traditional Chinese documentation for library argparse

2021-02-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The translation is maintained under GitHub. Please report to https://github.com/python/python-docs-zh-cn/issues -- nosy: +xtreak resolution: -> third party stage: -> resolved status: open -> closed ___

[issue43236] Windows Taskbar Jump List fails to open Recent files

2021-02-15 Thread veganaiZe
New submission from veganaiZe : OS: Windows 8.1 (x86-64) Python: 3.8.7 When I right-click on IDLE's rectangle/icon in the Windows taskbar it displays a "jump list" which contains recent/pinned filenames. A program will typically open a file when it's selected from the list. IDLE doesn't open

[issue35026] Winreg's documentation lacks mentioning required permission at some points

2021-02-15 Thread Eryk Sun
Eryk Sun added the comment: winreg.DeleteKey[Ex] does not require any particular access on the `key` handle. This handle is used only as the native NT API RootDirectory [1] when opening `subkey` with DELETE access via NtOpenKeyEx [2]. The extra access with winreg.DeleteKeyEx [3] is just to a

[issue43235] Tools/scripts/stable_abi.py should also check PC/python3dll.c (Windows stable ABI)

2021-02-15 Thread Petr Viktorin
Petr Viktorin added the comment: I want to address this in PEP 652. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue15108] Incomplete tuple created by PyTuple_New() and accessed via the GC can trigged a crash

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: > Any C extension class that implements a new_whatever() method that leaves the > class tracked and not ready. I'm not aware of such C extension but they likely exists. If we have such extensions in the stdlib, we can try to fix them. We cannot fix such GC

[issue42819] readline 8.1 enables the bracketed paste mode by default

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: Thanks Dustin for the bug report *and* the fix! I close the issue. For people who want to support bracketed paste mode in Python, please disuss it in bpo-39820. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions:

[issue42819] readline 8.1 enables the bracketed paste mode by default

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 85fd9f4e45ee95e2608dbc8cc6d4fe28e4d2abc4 by Miss Islington (bot) in branch '3.9': bpo-42819, readline: Disable bracketed paste (GH-24108) (GH-24545) https://github.com/python/cpython/commit/85fd9f4e45ee95e2608dbc8cc6d4fe28e4d2abc4 --

[issue43235] Tools/scripts/stable_abi.py should also check PC/python3dll.c (Windows stable ABI)

2021-02-15 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue43235] Tools/scripts/stable_abi.py should also check PC/python3dll.c (Windows stable ABI)

2021-02-15 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +pablogsal, petr.viktorin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43155] PyCMethod_New not defined in python3.lib

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: The symbol was exported on Unix since Python 3.9.0, but not on Windows. Is it ok to export it starting with Python 3.9.2? (backport the fix). IMO yes, it's ok. -- ___ Python tracker

[issue43155] PyCMethod_New not defined in python3.lib

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8a8b5df93f379f561aab4f2fc5b2ad54f5009f7a by Zackery Spytz in branch 'master': bpo-43155: Add PyCMethod_New to PC/python3dll.c (GH-24500) https://github.com/python/cpython/commit/8a8b5df93f379f561aab4f2fc5b2ad54f5009f7a --

[issue43155] PyCMethod_New not defined in python3.lib

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: > Is there a test suite that checks that the limited API functions can all be > linked against? Pablo Galindo wrote a new Tools/scripts/stable_abi.py for Unix, but this tool doesn't check PC/python3dll.c yet. The tool uses Doc/data/stable_abi.dat which *doe

[issue43235] Tools/scripts/stable_abi.py should also check PC/python3dll.c (Windows stable ABI)

2021-02-15 Thread STINNER Victor
New submission from STINNER Victor : bpo-43155 is just yet another example that we always forget to export symbols of the stable ABI on Windows. It would be great to have a tool to check that all symbols exported on Unix are also exported on Windows. Tools/scripts/stable_abi.py could check P

[issue42819] readline 8.1 enables the bracketed paste mode by default

2021-02-15 Thread miss-islington
miss-islington added the comment: New changeset f9d7c12b6c7ab978cb6c61a666bc06dd3fec9b3e by Miss Islington (bot) in branch '3.8': bpo-42819, readline: Disable bracketed paste (GH-24108) https://github.com/python/cpython/commit/f9d7c12b6c7ab978cb6c61a666bc06dd3fec9b3e -- ___

[issue35026] Winreg's documentation lacks mentioning required permission at some points

2021-02-15 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 7.0 -> 8.0 pull_requests: +23330 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24547 ___ Python tracker

[issue42819] readline 8.1 enables the bracketed paste mode by default

2021-02-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +23329 pull_request: https://github.com/python/cpython/pull/24546 ___ Python tracker ___ __

[issue42819] readline 8.1 enables the bracketed paste mode by default

2021-02-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +23328 pull_request: https://github.com/python/cpython/pull/24545 ___ Python tracker _

[issue42819] readline 8.1 enables the bracketed paste mode by default

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 755f3c1521b422bc2177013d289f5439975fdc4f by Dustin Rodrigues in branch 'master': bpo-42819, readline: Disable bracketed paste (GH-24108) https://github.com/python/cpython/commit/755f3c1521b422bc2177013d289f5439975fdc4f --

[issue15108] Incomplete tuple created by PyTuple_New() and accessed via the GC can trigged a crash

2021-02-15 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue15108] Incomplete tuple created by PyTuple_New() and accessed via the GC can trigged a crash

2021-02-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > PyList_New() is also affected. Do you think about other types? Any C extension class that implements a new_whatever() method that leaves the class tracked and not ready. -- ___ Python tracker

[issue42967] [CVE-2021-23336] urllib.parse.parse_qsl(): Web cache poisoning - `; ` as a query args separator

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: I created https://python-security.readthedocs.io/vuln/urllib-query-string-semicolon-separator.html to track fixes of this vulnerability. -- ___ Python tracker

[issue15108] Incomplete tuple created by PyTuple_New() and accessed via the GC can trigged a crash

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: > That's a lot slower unfortunately Ah sorry, I forgot PyTuple_Pack(3, item1, item2, item3) which should be very efficient. This function is also safe: only track the tuple when it is fully initialized. > This problem also is not unique to tuples, although

[issue43233] test_copy_file_range_offset fails on AMD64 FreeBSD Shared 3.9

2021-02-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This seems a problem in FreeBSD 14.0 CURRENT. Koobs, could you report this upstream? -- ___ Python tracker ___ __

[issue43233] test_copy_file_range_offset fails on AMD64 FreeBSD Shared 3.9

2021-02-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Hu. The last time it succeeded was with platform.platform: FreeBSD-13.0-CURRENT-amd64-64bit-ELF: https://buildbot.python.org/all/#/builders/151/builds/280 -- ___ Python tracker

[issue43233] test_copy_file_range_offset fails on AMD64 FreeBSD Shared 3.9

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: > https://buildbot.python.org/all/#/builders/151/builds/300/steps/5/logs/stdio This is the CURRENT version of FreeBSD (latest kernel and latest libc). test.pythoninfo says: os.uname: posix.uname_result(sysname='FreeBSD', nodename='140-CURRENT-amd64', release

[issue43231] test.test_curses.TestCurses.test_init_pair fails in s390x Fedora

2021-02-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset d0204963ec87beb9732e924e464b8a6a1ef4d341 by Pablo Galindo in branch 'master': bpo-43231: Correctly calculate the curses color pair limit when checking for it (GH-24541) https://github.com/python/cpython/commit/d0204963ec87beb9732e924e464

[issue43231] test.test_curses.TestCurses.test_init_pair fails in s390x Fedora

2021-02-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43231] test.test_curses.TestCurses.test_init_pair fails in s390x Fedora

2021-02-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +23327 pull_request: https://github.com/python/cpython/pull/24541 ___ Python tracker ___ ___

[issue43231] test.test_curses.TestCurses.test_init_pair fails in s390x Fedora

2021-02-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset ab2d48163901c9635401db0f6d784c45482d17ec by Pablo Galindo in branch 'master': bpo-43231: Fix test.test_curses.TestCurses.test_init_pair when running under -R (GH-24539) https://github.com/python/cpython/commit/ab2d48163901c9635401db0f6d784c45482d1

[issue42819] readline 8.1 enables the bracketed paste mode by default

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: > Instead of enabling it by default, why not just keep it but emulate the old > behavior by splitting and buffering the input lines? PR 24108 change can and should be backported to 3.8 and 3.9 branches. REPL enhancements can only land in the master branch an

[issue42819] readline 8.1 enables the bracketed paste mode by default

2021-02-15 Thread Aaron Meurer
Aaron Meurer added the comment: Instead of enabling it by default, why not just keep it but emulate the old behavior by splitting and buffering the input lines? That way you still get some of the benefits of bracketed paste, i.e., faster pasting, but without the hard work of fixing the REPL

[issue43108] test_curses is leaking references

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: The funny part is that the bug was there for 4 years. It's good that Serhiy added new tests to allow to catch this old bug! commit f7eae0adfcd4c50034281b2c69f461b43b68db84 Author: Serhiy Storchaka Date: Wed Jun 28 08:30:06 2017 +0300 [security] bpo-13

[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: > Should we strive to fix the cases in Include/internal as well? No. The internal C API access directly to structure members on purpose, for best performances. -- ___ Python tracker

[issue21309] Confusing "see also" for generic C-level __init__ methods in help output

2021-02-15 Thread Larry Hastings
Change by Larry Hastings : -- nosy: -larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue41028] Move docs.python.org language and version switcher out of cpython

2021-02-15 Thread Ned Deily
Ned Deily added the comment: @mdk, This seems to be working great for the the python.org doc builds. What do you think about backporting this to the current active branches so that the doc builds for individual releases and those included with binary installers show the new generic links rat

[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

2021-02-15 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: After GH-24533 and GH-24535, there's (AFAICS) only a handful of cases left. $ grep -r "\->tp_" Include/: Include/internal/pycore_abstract.h:PyNumberMethods *tp_as_number = Py_TYPE(obj)->tp_as_number; Include/internal/pycore_interp.h:unsigned i

[issue43105] Can't import extension modules resolved via relative paths in sys.path on Windows

2021-02-15 Thread Steve Dower
Steve Dower added the comment: > since they're allowed, I think importlib at least could try to resolve > relative paths in a copy of sys.path before searching. I agree with this fix. They can be resolved for each new import, if we think that's an important behaviour to preserve (might mess

[issue21309] Confusing "see also" for generic C-level __init__ methods in help output

2021-02-15 Thread Irit Katriel
Irit Katriel added the comment: Still the same in 3.10: Python 3.10.0a5+ (heads/master:bf2e7e55d7, Feb 11 2021, 23:09:25) [MSC v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> help(ImportError.__init__) Help on wrapper_descriptor: __i

[issue16608] immutable subclass constructor call error does not show subclass name

2021-02-15 Thread Irit Katriel
Irit Katriel added the comment: The issue still exists in 3.10: Python 3.10.0a5+ (heads/master:bf2e7e55d7, Feb 11 2021, 23:09:25) [MSC v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> class c(tuple): ... def __init__(s,a,b): ...tu

[issue43234] Prohibit passing non-ThreadPoolExecutor executors to loop.set_default_executor following a deprecation

2021-02-15 Thread Illia Volochii
Change by Illia Volochii : -- keywords: +patch pull_requests: +23326 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24540 ___ Python tracker ___ _

[issue16718] Mysterious atexit fail

2021-02-15 Thread Irit Katriel
Irit Katriel added the comment: Since this was fixed since 3.3, is there a reason why this issue is still open? I don't get the error anymore: C:\Users\User\src\cpython-dev>python.bat wow.py Running Release|x64 interpreter... Traceback (most recent call last): File "C:\Users\User\src\cpyth

[issue43234] Prohibit passing non-ThreadPoolExecutor executors to loop.set_default_executor following a deprecation

2021-02-15 Thread Illia Volochii
New submission from Illia Volochii : https://github.com/python/cpython/blob/a2f0654b0a5b4c4f726155620002cc1f5f2d206a/Lib/asyncio/base_events.py#L816-L821 Setting non-ThreadPoolExecutor executors was supposed to be prohibited in Python 3.9. -- components: asyncio messages: 387052 nosy:

[issue19073] Inability to specific __qualname__ as a property on a class instance.

2021-02-15 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19984] Add new format of fixed length string for PyErr_Format

2021-02-15 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43231] test.test_curses.TestCurses.test_init_pair fails in s390x Fedora

2021-02-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +23325 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24539 ___ Python tracker __

[issue43231] test.test_curses.TestCurses.test_init_pair fails in s390x Fedora

2021-02-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: >From the curses docs: init_pair The init_pair routine changes the definition of a color-pair. It takes three arguments: the number of the color-pair to be changed, the foreground color number, and the background color num

[issue43231] test.test_curses.TestCurses.test_init_pair fails in s390x Fedora

2021-02-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Hu, commenting out test_use_default_colors fixes the issue, so something is going on there -- ___ Python tracker ___

[issue42967] [CVE-2021-23336] urllib.parse.parse_qsl(): Web cache poisoning - `; ` as a query args separator

2021-02-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: This is resolved in all version of Python now. Thank you all for your contributions! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: [security] urllib.parse.parse_qsl(): Web cache poisoning - `; ` as a query ar

[issue43231] test.test_curses.TestCurses.test_init_pair fails in s390x Fedora

2021-02-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The logic in _curses_init_pair_impl is quite odd. Seems that _CURSES_INIT_PAIR_FUNC succeeds the first run of (-R) even if pair_number >= COLOR_PAIRS but fails the second. Serhiy, do you know what's going on here? -- _

[issue43233] test_copy_file_range_offset fails on AMD64 FreeBSD Shared 3.9

2021-02-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: koobs, can you give us access to the buildbot? The latest IP you provided do not work anymore -- ___ Python tracker ___ _

[issue43233] test_copy_file_range_offset fails on AMD64 FreeBSD Shared 3.9

2021-02-15 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : == FAIL: test_copy_file_range_offset (test.test_os.FileTests) -- Traceback (most recent call last): File "/usr/ho

[issue43232] Prohibit previously deprecated operations on asyncio.trsock.TransportSocket

2021-02-15 Thread Illia Volochii
Change by Illia Volochii : -- keywords: +patch pull_requests: +23324 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24538 ___ Python tracker ___ _

[issue43231] test.test_curses.TestCurses.test_init_pair fails in s390x Fedora

2021-02-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue42967] [security] urllib.parse.parse_qsl(): Web cache poisoning - `; ` as a query args separator

2021-02-15 Thread Ned Deily
Ned Deily added the comment: New changeset 5c17dfc5d70ce88be99bc5769b91ce79d7a90d61 by Senthil Kumaran in branch '3.6': [3.6] bpo-42967: only use '&' as a query string separator (GH-24297) (GH-24532) https://github.com/python/cpython/commit/5c17dfc5d70ce88be99bc5769b91ce79d7a90d61

[issue43232] Prohibit previously deprecated operations on asyncio.trsock.TransportSocket

2021-02-15 Thread Illia Volochii
New submission from Illia Volochii : https://github.com/python/cpython/blob/a2f0654b0a5b4c4f726155620002cc1f5f2d206a/Lib/asyncio/trsock.py#L19-L24 Using of the operations was supposed to be prohibited in Python 3.9, but that was missed. -- components: asyncio messages: 387044 nosy: as

[issue43231] test.test_curses.TestCurses.test_init_pair fails in s390x Fedora

2021-02-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This seems to happen only when running with -R -- ___ Python tracker ___ ___ Python-bugs-l

[issue43231] test.test_curses.TestCurses.test_init_pair fails in s390x Fedora

2021-02-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue43231] test.test_curses.TestCurses.test_init_pair fails in s390x Fedora

2021-02-15 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : https://buildbot.python.org/all/#/builders/433/builds/181/steps/5/logs/stdio == ERROR: test_init_pair (test.test_curses.TestCurses) --

[issue43108] test_curses is leaking references

2021-02-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset ede1ff226c9ef4efd053109c69b4e33f75b2b17b by Miss Islington (bot) in branch '3.8': bpo-43108: Fix a reference leak in the curses module (GH-24420) (GH-24429) https://github.com/python/cpython/commit/ede1ff226c9ef4efd053109c69b4e33f75b2b17b

[issue42967] [security] urllib.parse.parse_qsl(): Web cache poisoning - `; ` as a query args separator

2021-02-15 Thread Ned Deily
Ned Deily added the comment: New changeset d0d4d30882fe3ab9b1badbecf5d15d94326fd13e by Senthil Kumaran in branch '3.7': [3.7] bpo-42967: only use '&' as a query string separator (GH-24297) (GH-24531) https://github.com/python/cpython/commit/d0d4d30882fe3ab9b1badbecf5d15d94326fd13e

[issue42967] [security] urllib.parse.parse_qsl(): Web cache poisoning - `; ` as a query args separator

2021-02-15 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e3110c3cfbb7daa690d54d0eff6c264c870a71bf by Senthil Kumaran in branch '3.8': [3.8] bpo-42967: only use '&' as a query string separator (GH-24297) (#24529) https://github.com/python/cpython/commit/e3110c3cfbb7daa690d54d0eff6c264c870a71bf

[issue43222] Regular expression split fails on 3.6 and not 2.7 or 3.7+

2021-02-15 Thread Philip
Change by Philip : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-lis

[issue43179] Remove 32-bit s390 Linux support (s390-linux-gnu triplet)

2021-02-15 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: And to dig a bit further with a semi-official answer. RHEL4 had standalone support for s390, while since RHEL5+ we've had only multilib support (64 bits kernel and possibility of s390 userspace packages). RHEL7 that is the oldest currently supported R

[issue42967] [security] urllib.parse.parse_qsl(): Web cache poisoning - `; ` as a query args separator

2021-02-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset c9f07813ab8e664d8c34413c4fc2d4f86c061a92 by Senthil Kumaran in branch '3.9': [3.9] bpo-42967: only use '&' as a query string separator (GH-24297) (#24528) https://github.com/python/cpython/commit/c9f07813ab8e664d8c34413c4fc2d4f86c061a92 -

[issue43228] Regression in function builtins

2021-02-15 Thread Mark Shannon
Mark Shannon added the comment: You need to define __builtins__ in the globals dictionary. def func(s): return len(s) text = "abc" print(func(text)) FuncType = type(func) func_globals = {"__builtins__":__builtins__.__dict__} code = func.__code__ func2 = FuncType(code, func_globals) prin

[issue15108] Incomplete tuple created by PyTuple_New() and accessed via the GC can trigged a crash

2021-02-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > If the GIL is released before the tuple is fully populated and something > access to this tuple via the GC (ex: gc.get_objects()), accessing the tuple > can crash, especially in the Python land (for example, repr(the_tuple) is > likely to crash).

[issue15108] Incomplete tuple created by PyTuple_New() and accessed via the GC can trigged a crash

2021-02-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > There are other safe alternatives like Py_BuildValue("(OOO)", item1, item2, > item3). That's a lot slower unfortunately -- ___ Python tracker ___

[issue15108] Incomplete tuple created by PyTuple_New() and accessed via the GC can trigged a crash

2021-02-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > IMO the unsafe PyTuple_New() API should be avoided. Is not that simple, there are other APIs that track the tuple as _PyTuple_Resize. This problem also is not unique to tuples, although is mainly prominent in them. We have this warning in the docs:

[issue39820] Bracketed paste mode for REPL: don't execute pasted command before ENTER is pressed explicitly

2021-02-15 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: -mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue43228] Regression in function builtins

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: func_builtins.py: reproducer which has no import. func2 builtins is {'None': None} on Python 3.10. Oh. This script also fails on Python 3.9. I'm not sure why cloudpickle_bug.py works on Python 3.9. -- Added file: https://bugs.python.org/file49811/f

[issue43230] typo in Simplified/Traditional Chinese documentation for library argparse

2021-02-15 Thread NKID00
New submission from NKID00 : For Simplified Chinese(https://docs.python.org/zh-cn/3/library/argparse.html#description): "程度" should probably be replaced by "程序". 这个参数简要描述这个程度做什么以及怎么做。 -> 这个参数简要描述这个程序做什么以及怎么做。 For Traditional Chinese(https://docs.python.org/zh-tw/3/library/argparse.html#descr

[issue43228] Regression in function builtins

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: > How is cloudpickle supposed to work? It creates a CodeType object and then create a function with this code object. It serializes the bytecode. pickle is not affected since it doesn't create function objects, but retrieve them from imported modules. ---

[issue15108] Incomplete tuple created by PyTuple_New() and accessed via the GC can trigged a crash

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: The general issue here is a the PyTuple_New() is unsafe: it immediately tracks the newly created tuple in the GC, whereas the tuple is not initialized yet. If the GIL is released before the tuple is fully populated and something access to this tuple via the

[issue42967] [security] urllib.parse.parse_qsl(): Web cache poisoning - `; ` as a query args separator

2021-02-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset a2f0654b0a5b4c4f726155620002cc1f5f2d206a by Ken Jin in branch 'master': bpo-42967: Fix urllib.parse docs and make logic clearer (GH-24536) https://github.com/python/cpython/commit/a2f0654b0a5b4c4f726155620002cc1f5f2d206a -- _

[issue43228] Regression in function builtins

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: > It looks like the globals dict passed to FunctionType(...) lacks a > __builtins__. Right. But it worked in Python 3.9 :-) -- ___ Python tracker _

[issue43148] Call sys.unraisablehook in the REPL when sys.excepthook is broken

2021-02-15 Thread Julian Berman
Julian Berman added the comment: Thanks Victor. Yes likely happy to send a PR (have to clear a few things off the yak stack first) On Tue, Feb 9, 2021 at 5:38 AM STINNER Victor wrote: > > STINNER Victor added the comment: > > It makes sense to call _PyErr_WriteUnraisableMsg() when sys.excep

[issue42861] ipaddress - add ability to get next closest network of any prefix size

2021-02-15 Thread Éric Araujo
Change by Éric Araujo : -- nosy: +pmoody title: ipaddress - add ability to get next closet network of any prefix size -> ipaddress - add ability to get next closest network of any prefix size ___ Python tracker _

[issue43179] Remove 32-bit s390 Linux support (s390-linux-gnu triplet)

2021-02-15 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: For RHEL7 which is the older OS that buildbots are still running, only the System Z architecture is supported. From the release notes [0]: Note that Red Hat Enterprise Linux 7 supports IBM zEnterprise 196 hardware or later; IBM System z10 mainframe sy

[issue43181] Python macros don’t shield arguments

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: Thanks Vitaliy for the bug report and Erlend for the fix ;-) For Python 3.9 and older, a workaround is to wrap the call to PyObject_TypeCheck() with your own static inline function. -- resolution: -> fixed stage: patch review -> resolved status: ope

[issue43181] Python macros don’t shield arguments

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4bb2a1ebc569eee6f1b46ecef1965a26ae8cb76d by Erlend Egeberg Aasland in branch 'master': bpo-43181: Convert PyObject_TypeCheck to static inline function (GH-24533) https://github.com/python/cpython/commit/4bb2a1ebc569eee6f1b46ecef1965a26ae8cb76d

[issue43179] Remove 32-bit s390 Linux support (s390-linux-gnu triplet)

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: Łukasz Langa: > +1 from me. Whatever few users s390 still has, they can keep using Python 3.9 > which is 5 years newer than the latest kernel they can use. Nowadays, it became trivial to maintain downstream patches. It is easy to fork the Python Git repositor

[issue43179] Remove 32-bit s390 Linux support (s390-linux-gnu triplet)

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: > s390 is a 31-bit platform, not a 32-bit platform. ARM64 only uses 48 bits for the address, but it uses 64-bit CPU words. Usually, we refer to an architecture by its CPU word, 32 or 64 bits. s390 uses 32-bit CPU words, no? The Wikipedia article says: "ESA

[issue6253] optparse.OptionParser.get_usage uses wrong formatter

2021-02-15 Thread Irit Katriel
Irit Katriel added the comment: optparse is deprecated an no longer in development, so unless someone objects I will close this issue. -- resolution: -> wont fix status: open -> pending ___ Python tracker _

[issue43179] Remove 32-bit s390 Linux support (s390-linux-gnu triplet)

2021-02-15 Thread David Edelsohn
David Edelsohn added the comment: This has nothing to do with AIX. This conversation should include Charalampos Stratakis, but I don't see him as an option for Nosy. It probably is easy to add a s390 31-bit build to one of the buildbots. -- nosy: -aixto...@gmail.com __

[issue43228] Regression in function builtins

2021-02-15 Thread Mark Shannon
Mark Shannon added the comment: Do you have a reproducer that does not use cloudpickle? Pickling functions seems to work correctly. >>> import pickle >>> def func(): ... return len([]) ... >>> func2 = pickle.loads(pickle.dumps(func)) >>> >>> func2() 0 How is cloudpickle supposed to wor

[issue40939] Remove the old parser

2021-02-15 Thread STINNER Victor
STINNER Victor added the comment: FYI the unbound project was fixed by calling Py_CompileString() on Python 3.9 and newer: https://github.com/NLnetLabs/unbound/commit/e0d426ebb10653a78bf5c4053198f6ac19bfcd3e -- ___ Python tracker

[issue43220] Argparse: Explicit default required arguments with add_mutually_exclusive_group are rejected

2021-02-15 Thread Irit Katriel
Change by Irit Katriel : -- title: Explicit default required arguments with add_mutually_exclusive_group are rejected -> Argparse: Explicit default required arguments with add_mutually_exclusive_group are rejected versions: -Python 3.6, Python 3.7 ___

[issue43146] 3.10a5 regression: AttributeError: 'NoneType' object has no attribute '__suppress_context__' in traceback.py

2021-02-15 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +3.10regression ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue42967] [security] urllib.parse.parse_qsl(): Web cache poisoning - `; ` as a query args separator

2021-02-15 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +23323 pull_request: https://github.com/python/cpython/pull/24536 ___ Python tracker ___ ___ P

[issue43229] freeze searches libpython3.9.so in /usr/lib instead /usr/lib/x86_64-linux-gnu

2021-02-15 Thread Christian Bachmaier
Christian Bachmaier added the comment: Sorry, my Ubuntu version I mentioned above is the development version of 21.04 and not 20.04. I you would like or this would be a comfortable option for you, I can show this live/interactively in a shell of my test system to track down the error, say v

[issue43229] freeze searches libpython3.9.so in /usr/lib instead /usr/lib/x86_64-linux-gnu

2021-02-15 Thread Christian Bachmaier
New submission from Christian Bachmaier : Now that the patch from issue 42591 (https://bugs.python.org/issue42591), i.e., msg383154 from 12/16/20 has made it to Ubuntu 20.04 with packet version python3.9.1-1, there show some problems with that. I did: > freeze/freeze.py -o frozen helloworld.

  1   2   >