[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

Re: New Python implementation

2021-02-15 Thread Christian Gollwitzer
Am 16.02.21 um 06:36 schrieb dn: Pascal's value as a teaching language was that it embodied many aspects of structured programming, and like Python, consisted of a limited range of items which could be learned very quickly (in contrast to PL/I's many 'bells and whistles'). ROFL. Maybe that

[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

Re: New Python implementation

2021-02-15 Thread Christian Gollwitzer
Am 15.02.21 um 21:37 schrieb Roel Schroeven: So your claim is that your compiler is able to, or will be able to, compile any language just by specifying a small schema file. Great! Do you maybe have a proof-of-concept? A simple language with a simple schema file to test the basic workings

[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

Re: New Python implementation

2021-02-15 Thread Dan Stromberg
On Mon, Feb 15, 2021 at 9:37 PM dn via Python-list wrote: > On 16/02/2021 17.57, Dan Stromberg wrote: > > On Mon, Feb 15, 2021 at 8:52 PM Igor Korot wrote: > > > >> Hi, guys, > >> Let me try to throw in another one - PL/1. > >> This guys used to be very popular with the accounting community...

[RELEASE] Python 3.7.10 and 3.6.13 security updates now available

2021-02-15 Thread Ned Deily
Python 3.7.10 and 3.6.13, the lastest security fix rollups for Python 3.7 and Python 3.6, are now available. You can find the release files, links to the changelogs, and more information here: https://www.python.org/downloads/release/python-3710/

Re: New Python implementation

2021-02-15 Thread dn via Python-list
On 16/02/2021 17.57, Dan Stromberg wrote: > On Mon, Feb 15, 2021 at 8:52 PM Igor Korot wrote: > >> Hi, guys, >> Let me try to throw in another one - PL/1. >> This guys used to be very popular with the accounting community... >> > > Actually PL/I is basically proprietary Pascal - from IBM.

[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,

Re: New Python implementation

2021-02-15 Thread Dan Stromberg
On Mon, Feb 15, 2021 at 8:52 PM Igor Korot wrote: > Hi, guys, > Let me try to throw in another one - PL/1. > This guys used to be very popular with the accounting community... > Actually PL/I is basically proprietary Pascal - from IBM. My Intro Comp Sci classes at the University of Cincinnati

[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 ___ ___

Re: New Python implementation

2021-02-15 Thread Igor Korot
Hi, guys, Let me try to throw in another one - PL/1. This guys used to be very popular with the accounting community... Thank you. On Mon, Feb 15, 2021 at 9:51 PM Alan Gauld via Python-list wrote: > > On 15/02/2021 22:24, Roel Schroeven wrote: > > Grant Edwards schreef op 15/02/2021 om 21:59: >

[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)

[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

Re: New Python implementation

2021-02-15 Thread Alan Gauld via Python-list
On 15/02/2021 22:24, Roel Schroeven wrote: > Grant Edwards schreef op 15/02/2021 om 21:59: >> On 2021-02-15, Roel Schroeven wrote: >> >>> Is it your intention to not only compile procedural and object-oriented >>> languages, or also functional languages such as Haskell, Ocaml, Scheme? >> >> And

[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

[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

Re: New Python implementation

2021-02-15 Thread Dan Stromberg
On Mon, Feb 15, 2021 at 3:25 PM Grant Edwards wrote: > On 2021-02-15, Avi Gross via Python-list wrote: > Of all the languages I've used, Prolog was by far the hardest to get > my head around. The dialect I used the most (which still wasn't much) > was part of Digitalk's Smalltalk system. I

[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

[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

[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

[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:

[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

[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

Re: Mr. Flibble

2021-02-15 Thread Ben Bacarisse
Ethan Furman writes: > On 2/15/21 2:02 PM, Grant Edwards wrote: >> On 2021-02-15, Ben Bacarisse wrote: >> >>> You said you used Usenet (and your reply here was via Usenet). >>> Usenet posts to comp.lang.python don't go to the mailing list (the >>> "here" that Ethan is talking about). Mails to

[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 --

Re: New Python implementation

2021-02-15 Thread Grant Edwards
On 2021-02-15, Avi Gross via Python-list wrote: > Haven't thought about Prolog in a LOOONG time but it had some wild > twists on how to specify a problem that might not be trivial to > integrate with other languages as our now seemingly censored person > with much delusion of grandeur suggests.

[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:

Re: Mr. Flibble

2021-02-15 Thread dn via Python-list
On 16/02/2021 07.09, Ethan Furman wrote: > Thank you to those who pointed out this individual to the moderators. As > Mr. Flibble accurately noted, he is not on the mailing list -- so his > posts won't be here either. Appreciating the work you(s) invest on my/our behalf! -- Regards, =dn --

[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

Re: New Python implementation

2021-02-15 Thread Roel Schroeven
Grant Edwards schreef op 15/02/2021 om 21:59: On 2021-02-15, Roel Schroeven wrote: Is it your intention to not only compile procedural and object-oriented languages, or also functional languages such as Haskell, Ocaml, Scheme? And Prolog! Ha, yes, that one was the next one I thought

Re: New Python implementation

2021-02-15 Thread Buck Evan
On Thu, Feb 11, 2021 at 1:49 PM dn via Python-list wrote: > When I first met it, one of the concepts I found difficult to 'wrap my > head around' was the idea that "open software" allowed folk to fork the > original work and 'do their own thing'. My thinking was (probably) > "surely, the

RE: New Python implementation

2021-02-15 Thread Avi Gross via Python-list
Grant, Haven't thought about Prolog in a LOOONG time but it had some wild twists on how to specify a problem that might not be trivial to integrate with other languages as our now seemingly censored person with much delusion of grandeur suggests. It is a language that does not specify what to do

[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 ___

Re: New Python implementation

2021-02-15 Thread Igor Korot
And C. Thank you. On Mon, Feb 15, 2021, 3:56 PM Grant Edwards wrote: > On 2021-02-15, Roel Schroeven wrote: > > > Is it your intention to not only compile procedural and object-oriented > > languages, or also functional languages such as Haskell, Ocaml, Scheme? > > And Prolog! > > -- > Grant

[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',

[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)

[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 ___

Re: Mr. Flibble

2021-02-15 Thread Ethan Furman
On 2/15/21 2:02 PM, Grant Edwards wrote: On 2021-02-15, Ben Bacarisse wrote: You said you used Usenet (and your reply here was via Usenet). Usenet posts to comp.lang.python don't go to the mailing list (the "here" that Ethan is talking about). Mails to the list /are/ sent here, but it's

Re: Mr. Flibble

2021-02-15 Thread Grant Edwards
On 2021-02-15, Ben Bacarisse wrote: > You said you used Usenet (and your reply here was via Usenet). > Usenet posts to comp.lang.python don't go to the mailing list (the > "here" that Ethan is talking about). Mails to the list /are/ sent > here, but it's one-way traffic. That's new -- it

Re: New Python implementation

2021-02-15 Thread Grant Edwards
On 2021-02-15, Roel Schroeven wrote: > Is it your intention to not only compile procedural and object-oriented > languages, or also functional languages such as Haskell, Ocaml, Scheme? And Prolog! -- Grant -- https://mail.python.org/mailman/listinfo/python-list

Re: Mr. Flibble

2021-02-15 Thread Ben Bacarisse
Mr Flibble writes: > On 15/02/2021 18:09, Ethan Furman wrote: >> Thank you to those who pointed out this individual to the >> moderators. As Mr. Flibble accurately noted, he is not on the mailing >> list -- so his posts won't be here either. > > ORLY? You said you used Usenet (and your reply

[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)

[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

[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

Re: New Python implementation

2021-02-15 Thread Roel Schroeven
Mr Flibble schreef op 15/02/2021 om 0:32: On 14/02/2021 23:00, Christian Gollwitzer wrote: I'm not saying that it is unfeasible or very difficult. I'm saying that it is a lot of work, and for a single developer who has this as a side project / support for his graphics engine and who wants to

[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]

[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:

[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

[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

[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

[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:

[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): ...

[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

[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

[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

[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

[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

[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

Re: Is email.message.get() case insensitive for the header name?

2021-02-15 Thread dn via Python-list
On 15/02/2021 09.50, Chris Green wrote: > It isn't clear from the documentation. Does email.message.get() care > about the case of the header it's getting? > > I checking mailing list mails and the "List-Id:" header is a bit > 'mixed', i.e. it can be List-Id:, or List-ID: or list-id:, will >

[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

[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:

[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:

[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 ___ ___

[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

[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)

[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 ___ ___

Re: Change first occurrence of character x in a string - how?

2021-02-15 Thread rust buckett
Grant Edwards wrote: > On 2021-02-14, Mr Flibble wrote: >> On 14/02/2021 21:14, Chris Green wrote: >>> What's the easiest way to change the first occurrence of a specified >>> character in a string? >> >> By using a grown up (i.e. non-toy) programming language. > > > > [gotta love slrn's

[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

Mr. Flibble

2021-02-15 Thread Ethan Furman
Thank you to those who pointed out this individual to the moderators. As Mr. Flibble accurately noted, he is not on the mailing list -- so his posts won't be here either. -- ~Ethan~ Python List Moderator -- https://mail.python.org/mailman/listinfo/python-list

[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)

[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

  1   2   >