[issue38397] __init_subclass__ causes TypeError when used with more standard library metaclasses (such as EnumMeta)

2021-11-17 Thread Ethan Furman
Change by Ethan Furman : -- nosy: -ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45429] [Windows] time.sleep() should use CREATE_WAITABLE_TIMER_HIGH_RESOLUTION

2021-11-17 Thread Dong-hee Na
Change by Dong-hee Na : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue45795] urllib http client vulnerable to DOS attack

2021-11-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: > Timeout value should not be reset after client receives a data(bytes), > because it can easily be abused to achieve DOS. Interesting. I looked the server example. Does clients like curl have something like this too? --

[issue45788] Doc sys.prefix lib & include directories on Windows and Mac

2021-11-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +27847 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/29606 ___ Python tracker

[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-17 Thread Ma Lin
Ma Lin added the comment: They are LNK1268 error: LINK : fatal error LNK1268: inconsistent option 'pdbthreads:5' specified with /USEPROFILE but not with /GENPROFILE [e:\dev\cpython\PCbuild\_queue.vcx proj] LINK : fatal error LNK1268: inconsistent option 'pdbthreads:1' specified with

[issue45836] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size (Python 3.9)

2021-11-17 Thread Dennis Sweeney
Dennis Sweeney added the comment: https://github.com/python/cpython/pull/29605 was just opened as a backport -- nosy: +Dennis Sweeney ___ Python tracker ___

[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2021-11-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +27846 pull_request: https://github.com/python/cpython/pull/29605 ___ Python tracker ___

[issue45836] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size (Python 3.9)

2021-11-17 Thread Patrick Bourke
New submission from Patrick Bourke : Hi all, Forgive me if this is not the correct way to report this, but we have run into the issue from #29620 ( https://bugs.python.org/issue29620 ) on Python 3.9. The fix appears to be present in the tip of 3.8:

[issue40059] Provide a toml module in the standard library

2021-11-17 Thread Shantanu
Shantanu added the comment: Hopefully tomli being less than a year old should not be a blocker, after all, TOML v1.0.0 is itself less than a year old. Despite tomli being new code, it's pretty widely used. Reverse dependencies include pip, pytest, mypy, black, flit, coverage,

[issue45826] unittest.assertRaisesRegex is broken in Python 3.11 and leading to crashing if tested regex does not match name.

2021-11-17 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Dennis! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 ___ Python tracker

[issue45826] unittest.assertRaisesRegex is broken in Python 3.11 and leading to crashing if tested regex does not match name.

2021-11-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 8eabe60108b536b942c791b5d3dc3c3020497aac by Łukasz Langa in branch '3.10': [3.10] bpo-45826: Fix a crash in suggestions.c by checking for `traceback is None` (GH-29590) (GH-29602)

[issue45429] [Windows] time.sleep() should use CREATE_WAITABLE_TIMER_HIGH_RESOLUTION

2021-11-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset fc4474e45eecbea8e88095f28c98c5d56438d841 by Dong-hee Na in branch 'main': bpo-45429: Merge whatsnew about time.sleep (GH-29589) https://github.com/python/cpython/commit/fc4474e45eecbea8e88095f28c98c5d56438d841 -- nosy: +lukasz.langa

[issue45820] Parser can segfault if an error happens before reading any input

2021-11-17 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Pablo! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45820] Parser can segfault if an error happens before reading any input

2021-11-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 00ee14e814d35587ac55f89c7de871a01360c876 by Miss Islington (bot) in branch '3.9': [3.9] bpo-45820: Fix a segfault when the parser fails without reading any input (GH-29580) (GH-29584)

[issue45820] Parser can segfault if an error happens before reading any input

2021-11-17 Thread miss-islington
miss-islington added the comment: New changeset b455df59a8eca1b0c0793bc11a116ffc2829b175 by Miss Islington (bot) in branch '3.10': bpo-45820: Fix a segfault when the parser fails without reading any input (GH-29580)

[issue45822] Py_CompileString does not respect the coding cookie with the new parser if flags are empty

2021-11-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 0ef308a2890571c850c624fb99ac00f8951363c6 by Pablo Galindo Salgado in branch '3.9': bpo-45822: Respect PEP 263's coding cookies in the parser even if flags are not provided (GH-29582) (GH-29585)

[issue45822] Py_CompileString does not respect the coding cookie with the new parser if flags are empty

2021-11-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e3aa9fd77bf474bb3e8a7a1d1bd1ebf45147945a by Pablo Galindo Salgado in branch '3.10': [3.10] bpo-45822: Respect PEP 263's coding cookies in the parser even if flags are not provided (GH-29582) (GH-29586)

[issue45826] unittest.assertRaisesRegex is broken in Python 3.11 and leading to crashing if tested regex does not match name.

2021-11-17 Thread Łukasz Langa
Change by Łukasz Langa : -- pull_requests: +27845 pull_request: https://github.com/python/cpython/pull/29602 ___ Python tracker ___

[issue45826] unittest.assertRaisesRegex is broken in Python 3.11 and leading to crashing if tested regex does not match name.

2021-11-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 5d90c467c02ffefdb13c1abc83a171db1a99ffad by Dennis Sweeney in branch 'main': bpo-45826: Fix a crash in suggestions.c by checking for `traceback is None` (GH-29590) https://github.com/python/cpython/commit/5d90c467c02ffefdb13c1abc83a171db1a99ffad

[issue42540] Debug pymalloc crash when using os.fork() [regression]

2021-11-17 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Sam! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45833] NamedTemporaryFile deleted before enclosing context manager exit

2021-11-17 Thread Zachary Ware
Zachary Ware added the comment: It's a bit convoluted, but the file is actually deleted before the `os.stat` call. Because there are no references to anything but the `name` (which is just a string), the `_GeneratorContextManager` (result of `my_tmp_file`) and the `_TemporaryFileWrapper`

[issue42540] Debug pymalloc crash when using os.fork() [regression]

2021-11-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 87787c8774221c81602b31b0e0dc0678ad494e91 by Sam Gross in branch '3.9': [3.9] bpo-42540: reallocation of id_mutex should not force default allocator (GH-29564) (GH-29600)

[issue45832] Misleading membersip expression documentation

2021-11-17 Thread Harald Husum
Harald Husum added the comment: Might i then suggest mentioning in the docs that this assumes the invariance, combined with a backlink to the definition, instead of a full repeat? I'm sure the hash invariant is well known to you guys, working on python, but I was genuinely surprised by this

[issue45835] Race condition in test_queue can lead to test failures

2021-11-17 Thread Sam Gross
Change by Sam Gross : -- pull_requests: +27844 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29601 ___ Python tracker ___

[issue45831] _Py_DumpASCII() writes characters one by one leading to corrupted tracebacks

2021-11-17 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Victor! ✨  ✨ -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45831] _Py_DumpASCII() writes characters one by one leading to corrupted tracebacks

2021-11-17 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45831] _Py_DumpASCII() writes characters one by one leading to corrupted tracebacks

2021-11-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset ac89f8cab79800195687dd141de472f90c626ec3 by Miss Islington (bot) in branch '3.9': bpo-45831: _Py_DumpASCII() uses a single write() call if possible (GH-29596) (GH-29597)

[issue45831] _Py_DumpASCII() writes characters one by one leading to corrupted tracebacks

2021-11-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 4ffde90dccd741b04a448f2e44f0b82a41b6fe96 by Miss Islington (bot) in branch '3.10': bpo-45831: _Py_DumpASCII() uses a single write() call if possible (GH-29596) (GH-29598)

[issue45835] Race condition in test_queue can lead to test failures

2021-11-17 Thread Sam Gross
Change by Sam Gross : -- keywords: +patch Added file: https://bugs.python.org/file50447/issue45835_repro.patch ___ Python tracker ___

[issue45835] Race condition in test_queue can lead to test failures

2021-11-17 Thread Sam Gross
New submission from Sam Gross : The test_queue suite has a race condition that can lead to test failures in test_many_threads, test_many_threads_nonblock, and test_many_threads_timeout. Consumers are signaled to exit by a sentinel value (None). The sentinel values are at the end of the input

[issue45832] Misleading membersip expression documentation

2021-11-17 Thread Eric V. Smith
Eric V. Smith added the comment: I don’t think repeating the hash invariant in multiple places adds anything, I think it would just add clutter. I also think the existing docs are easier to understand than the version with the hashing containers split out. -- nosy: +eric.smith

[issue45796] Using tab to cycle through tkinter widgets breaks foreground styling

2021-11-17 Thread Ned Deily
Ned Deily added the comment: For the record, the Tk issue opened for this is at: https://core.tcl-lang.org/tk/tktview?name=300bad1beb -- nosy: +ned.deily ___ Python tracker

[issue45796] Using tab to cycle through tkinter widgets breaks foreground styling

2021-11-17 Thread Ned Deily
Change by Ned Deily : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45795] urllib http client vulnerable to DOS attack

2021-11-17 Thread Ned Deily
Change by Ned Deily : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45834] Move runtime except: check to the parser

2021-11-17 Thread Irit Katriel
New submission from Irit Katriel : The compiler has a runtime check that an "except:" without type can only be the last in the try block: https://github.com/python/cpython/blob/15409c720be0503131713e3d3abc1acd0da07378/Python/compile.c#L3251 This could be detected by the parser instead.

[issue45833] NamedTemporaryFile deleted before enclosing context manager exit

2021-11-17 Thread Brian McCutchon
New submission from Brian McCutchon : Consider the following code: # Copyright 2021 Google LLC. # SPDX-License-Identifier: Apache-2.0 import contextlib import os @contextlib.contextmanager def my_tmp_file(): with tempfile.NamedTemporaryFile('w') as f: yield f

[issue42540] Debug pymalloc crash when using os.fork() [regression]

2021-11-17 Thread miss-islington
miss-islington added the comment: New changeset 1079b3e3cb3eba7062e174ecc6c0ab20c2d0722e by Miss Islington (bot) in branch '3.10': bpo-42540: reallocation of id_mutex should not force default allocator (GH-29564)

[issue42540] Debug pymalloc crash when using os.fork() [regression]

2021-11-17 Thread Sam Gross
Change by Sam Gross : -- pull_requests: +27843 pull_request: https://github.com/python/cpython/pull/29600 ___ Python tracker ___

Re: Proliferation of Python packaging formats

2021-11-17 Thread Mats Wichmann
On 11/17/21 07:44, Chris Angelico wrote: On Thu, Nov 18, 2021 at 12:20 AM Skip Montanaro wrote: Is the proliferation of packaging formats in Python as nutzo as this author believes? https://drewdevault.com/2021/11/16/Python-stop-screwing-distros-over.html Asking because I've never been in

[issue42540] Debug pymalloc crash when using os.fork() [regression]

2021-11-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 736684b1bb67369a2e95a9f621752deead44e7ef by Sam Gross in branch 'main': bpo-42540: reallocation of id_mutex should not force default allocator (GH-29564) https://github.com/python/cpython/commit/736684b1bb67369a2e95a9f621752deead44e7ef

[issue42540] Debug pymalloc crash when using os.fork() [regression]

2021-11-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +27842 pull_request: https://github.com/python/cpython/pull/29599 ___ Python tracker

[issue21876] os.rename(src, dst) does nothing when src and dst files are hard-linked

2021-11-17 Thread Eryk Sun
Eryk Sun added the comment: > It's nice if os.rename() can be atomic. How about fixing the behavior in shutil.move()? Currently it tries os.rename(src, dst) without checking for this case. For example: >>> os.path.samefile('src', 'dst') True >>> shutil.move('src', 'dst')

[issue45832] Misleading membersip expression documentation

2021-11-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: This section presumes that the usual hash invariant holds: a==b implies hash(a)==hash(b). We could repeat that here but I don't think it makes the docs better or more useable to require that docs repeat the same facts in multiple places.

[issue45831] _Py_DumpASCII() writes characters one by one leading to corrupted tracebacks

2021-11-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +27841 pull_request: https://github.com/python/cpython/pull/29598 ___ Python tracker ___

[issue45831] _Py_DumpASCII() writes characters one by one leading to corrupted tracebacks

2021-11-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +27840 pull_request: https://github.com/python/cpython/pull/29597 ___ Python tracker

[issue45831] _Py_DumpASCII() writes characters one by one leading to corrupted tracebacks

2021-11-17 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset b919d8105c4d77f00509b6d3ab2073f09db640de by Victor Stinner in branch 'main': bpo-45831: _Py_DumpASCII() uses a single write() call if possible (GH-29596) https://github.com/python/cpython/commit/b919d8105c4d77f00509b6d3ab2073f09db640de

[issue40059] Provide a toml module in the standard library

2021-11-17 Thread Michał Górny
Michał Górny added the comment: I've already asked that, and the author said it's fine but with the deprecated text file support removed: https://github.com/hukkin/tomli/issues/141#issuecomment-968056905 That said, for consistency with json and so on we'd probably want to combine tomli and

[issue45116] Performance regression 3.10b1: inlining issue in the big _PyEval_EvalFrameDefault() function with Visual Studio (MSC)

2021-11-17 Thread neonene
neonene added the comment: >This essentially disables PGO. Thank you for the suggestion. I'll take another experimental aproach to reduce the size of 3.11 evalfunc for stronger validation. >@neonene what's the importance of PR29565? While we are talking about function size, I would like

[issue45518] Invalid example for typing

2021-11-17 Thread Bozhi You
Bozhi You added the comment: My bad. Didn't notice the version constraint. Thank you, Logan! -- stage: -> resolved status: pending -> closed ___ Python tracker ___

[issue41735] Thread locks in zlib module may go wrong in rare case

2021-11-17 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith resolution: later -> stage: resolved -> patch review ___ Python tracker ___

[issue45832] Misleading membersip expression documentation

2021-11-17 Thread Harald Husum
New submission from Harald Husum : https://docs.python.org/3/reference/expressions.html#membership-test-operations > For container types such as list, tuple, set, frozenset, dict, or > collections.deque, the expression `x in y` is equivalent to `any(x is e or x > == e for e in y)`. Yet:

[issue40059] Provide a toml module in the standard library

2021-11-17 Thread Brett Cannon
Brett Cannon added the comment: > I'd love it if we could make this happen for Python 3.11. What can I do to > help, e.g. would it be helpful if I drafted a PEP? A PEP isn't necessarily required right now as

[issue45691] Partial moving of core objects to interpreter state is incorrect at best, unsafe at worse.

2021-11-17 Thread STINNER Victor
STINNER Victor added the comment: > many classes are allocated statically Right. Changing that is an hard problem :-( See for example bpo-40601 "[C API] Hide static types from the limited C API". I tried once to "free" / reset static types in Py_Finalize(), but it's hard to implement

[issue21876] os.rename(src, dst) does nothing when src and dst files are hard-linked

2021-11-17 Thread STINNER Victor
STINNER Victor added the comment: It's nice if os.rename() can be atomic. It can be atomic if it is implemented as a single syscall and the source and the destination are on the same filesystem. If we modify the implement to check if src and/or dst is a hardlink, we will need more syscalls

[issue40222] "Zero cost" exception handling

2021-11-17 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45831] _Py_DumpASCII() writes characters one by one leading to corrupted tracebacks

2021-11-17 Thread STINNER Victor
STINNER Victor added the comment: > This is also a performance issue Yep. On Windows, it already happened to me to see characters written one by one when the machine and the terminal was super slow. I expect faster dump if an ASCII string can be written at once. --

[issue45831] _Py_DumpASCII() writes characters one by one leading to corrupted tracebacks

2021-11-17 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch nosy: +vstinner nosy_count: 1.0 -> 2.0 pull_requests: +27839 pull_request: https://github.com/python/cpython/pull/29596 ___ Python tracker

[issue45831] _Py_DumpASCII() writes characters one by one leading to corrupted tracebacks

2021-11-17 Thread Łukasz Langa
New submission from Łukasz Langa : This is also a performance issue but I'm mostly concerned about the stdout corruption aspect. When more than one thread aborts at the same time, output ends up looking like the example below on the terminal. Unless you understand the issue is output written

[issue45116] Performance regression 3.10b1: inlining issue in the big _PyEval_EvalFrameDefault() function with Visual Studio (MSC)

2021-11-17 Thread Guido van Rossum
Guido van Rossum added the comment: @neonene what's the importance of PR29565? -- ___ Python tracker ___ ___ Python-bugs-list

[issue45830] Custom pickler memory leak

2021-11-17 Thread Douglas Raillard
New submission from Douglas Raillard : The following script exhibits the memory leak. It only happens if "dispatch_table" is set _before_ calling super().__init__, which is pretty unexpected. import pickle import io import gc import tracemalloc tracemalloc.start(10)

[issue44525] Implement CALL_FUNCTION adaptive interpreter optimizations

2021-11-17 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +27838 pull_request: https://github.com/python/cpython/pull/29595 ___ Python tracker ___

[issue45829] Remove C stack use by specializing BINARY_SUBSCR, STORE_SUBSCR, LOAD_ATTR, and STORE_ATTR

2021-11-17 Thread Guido van Rossum
Guido van Rossum added the comment: That's a good one too, and perhaps simpler. -- ___ Python tracker ___ ___ Python-bugs-list

[issue45829] Remove C stack use by specializing BINARY_SUBSCR, STORE_SUBSCR, LOAD_ATTR, and STORE_ATTR

2021-11-17 Thread Mark Shannon
Mark Shannon added the comment: I don't think it matter much which we do first. I happened to do BINARY_SUBSCR first. -- ___ Python tracker ___

[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-17 Thread Steve Dower
Steve Dower added the comment: Could you post the errors? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45116] Performance regression 3.10b1: inlining issue in the big _PyEval_EvalFrameDefault() function with Visual Studio (MSC)

2021-11-17 Thread Steve Dower
Steve Dower added the comment: > -set pgo_job=-m test --pgo > +set pgo_job=-c"pass" This essentially disables PGO. You won't get anything valid or useful from analysing its results if you don't give it a somewhat reasonable profile (preferably one that exercises the interpreter loop, which

Re: Symbolic links on Windows

2021-11-17 Thread ast
Le 17/11/2021 à 13:10, Python a écrit : ast wrote: Hello, It seems that symbolic links on Windows are not well reconized by modules os or pathlib. I have a file named json.txt on my destop. With a drag and drop right click on it I create a link automatically named: json.txt - Raccourci.lnk

Symbolic links on Windows

2021-11-17 Thread ast
Hello, It seems that symbolic links on Windows are not well reconized by modules os or pathlib. I have a file named json.txt on my destop. With a drag and drop right click on it I create a link automatically named: json.txt - Raccourci.lnk Then: >>> from pathlib import Path >>> p2 =

Re: Proliferation of Python packaging formats

2021-11-17 Thread Jon Ribbens via Python-list
On 2021-11-17, Skip Montanaro wrote: > Is the proliferation of packaging formats in Python as nutzo as this author > believes? > > https://drewdevault.com/2021/11/16/Python-stop-screwing-distros-over.html > > Asking because I've never been in the business of releasing "retail" Python >

[issue45829] Remove C stack use by specializing BINARY_SUBSCR, STORE_SUBSCR, LOAD_ATTR, and STORE_ATTR

2021-11-17 Thread Guido van Rossum
Guido van Rossum added the comment: Of these, presumably LOAD_GETATTR is by far the most used, so should we try that first? -- ___ Python tracker ___

[issue45829] Remove C stack use by specializing BINARY_SUBSCR, STORE_SUBSCR, LOAD_ATTR, and STORE_ATTR

2021-11-17 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45825] Heap Segmentation Fault

2021-11-17 Thread Bill Borskey
Bill Borskey added the comment: No worries. I find bugs in my day job, thought this might be a useful segfault but it segfaults because it’s incrementing that reference count on the pyobj that don’t exist. So pretty lame. I did spend an hour tracking it down so I thought I’d let y’all know

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-17 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27837 pull_request: https://github.com/python/cpython/pull/29594 ___ Python tracker ___

Re: Proliferation of Python packaging formats

2021-11-17 Thread Chris Angelico
On Thu, Nov 18, 2021 at 12:20 AM Skip Montanaro wrote: > > Is the proliferation of packaging formats in Python as nutzo as this author > believes? > > https://drewdevault.com/2021/11/16/Python-stop-screwing-distros-over.html > > Asking because I've never been in the business of releasing "retail"

[issue45116] Performance regression 3.10b1: inlining issue in the big _PyEval_EvalFrameDefault() function with Visual Studio (MSC)

2021-11-17 Thread neonene
neonene added the comment: Here are the 3 steps to reproduce with minimal pgo training. (vs2019) 1. Download the source archive of PR29565 and extract. https://github.com/python/cpython/archive/6a84d61c55f2e543cf5fa84522d8781a795bba33.zip 2. Apply the following patch.

[issue45825] Heap Segmentation Fault

2021-11-17 Thread Zachary Ware
Zachary Ware added the comment: In general, as soon as you touch ctypes you're on your own :). ctypes has no protections for this kind of case, so you need to protect yourself. If you came across this some way that *should* have been safe, please provide more information. But just passing

Proliferation of Python packaging formats

2021-11-17 Thread Skip Montanaro
Is the proliferation of packaging formats in Python as nutzo as this author believes? https://drewdevault.com/2021/11/16/Python-stop-screwing-distros-over.html Asking because I've never been in the business of releasing "retail" Python applications or packages. Skip --

[issue45512] [sqlite3] simplify "isolation level"

2021-11-17 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +27836 pull_request: https://github.com/python/cpython/pull/29593 ___ Python tracker ___

[issue45512] [sqlite3] simplify "isolation level"

2021-11-17 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > Now we close this issue right? Not yet ;) I have an AC tweak I'd like to add. Wait for a PR anytime soon. -- ___ Python tracker ___

[issue45512] [sqlite3] simplify "isolation level"

2021-11-17 Thread Dong-hee Na
Dong-hee Na added the comment: @erlendaasland Now we close this issue right? -- ___ Python tracker ___ ___ Python-bugs-list

[issue45512] [sqlite3] simplify "isolation level"

2021-11-17 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset e002bbc6cce637171fb2b1391ffeca8643a13843 by Dong-hee Na in branch 'main': bpo-45512: Simplify manage isolation level (GH-29562) https://github.com/python/cpython/commit/e002bbc6cce637171fb2b1391ffeca8643a13843 --

[issue40059] Provide a toml module in the standard library

2021-11-17 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39026] Include/cpython/pystate.h contains non-relative of initconfig.h include causing macOS Framework include failure

2021-11-17 Thread Gaige Paulsen
Gaige Paulsen added the comment: Short version is not yet. I spent time on it but ran into an issue getting the full build on the machine I was building on. I expect to try it again before the weekend. Is there a binary copy of the framework from the CI somewhere? If so, I can certainly do

[issue45824] CSV module document does not include how to append files

2021-11-17 Thread Eric V. Smith
Eric V. Smith added the comment: I agree with Raymond. -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing

[issue45829] Remove C stack use by specializing BINARY_SUBSCR, STORE_SUBSCR, LOAD_ATTR, and STORE_ATTR

2021-11-17 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +27835 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29592 ___ Python tracker ___

[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-17 Thread Ma Lin
Ma Lin added the comment: There are 5 link errors when building the PGO build. Command: build --pgo -- nosy: +malin ___ Python tracker ___

[issue45512] [sqlite3] simplify "isolation level"

2021-11-17 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 5f9247e36a0213b0dcfd43533db5cf6570895cfd by Erlend Egeberg Aasland in branch 'main': bpo-45512: Extend `sqlite3` test suite regarding isolation levels (GH-29576) https://github.com/python/cpython/commit/5f9247e36a0213b0dcfd43533db5cf6570895cfd

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-11-17 Thread Mark Shannon
Mark Shannon added the comment: https://bugs.python.org/issue45829 is the related issue for special methods -- ___ Python tracker ___

[issue45829] Remove C stack use by specializing BINARY_SUBSCR, STORE_SUBSCR, LOAD_ATTR, and STORE_ATTR

2021-11-17 Thread Mark Shannon
New submission from Mark Shannon : We can remove the C stack use and general overhead of calling special methods implemented in Python for attribute access and indexing. Each operation has a special method that implements it. When that special method is implemented in Python, we should avoid

[issue45828] [sqlite3] use unraisable exceptions in callbacks

2021-11-17 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +27834 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29591 ___ Python tracker

[issue45828] [sqlite3] use unraisable exceptions in callbacks

2021-11-17 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45643] SIGSTKFLT is missing from the signals module on Linux

2021-11-17 Thread Gareth Rees
Gareth Rees added the comment: Tagging vstinner as you have touched Modules/signalmodule.c a few times in the last year. What do you think? -- nosy: +vstinner ___ Python tracker

[issue45828] [sqlite3] use unraisable exceptions in callbacks

2021-11-17 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : In order to print tracebacks from exceptions in SQLite callbacks, the sqlite3 extension module provides sqlite3.enable_callback_tracebacks(flag). Setting the flag to True instructs the sqlite3 extension module to PyErr_Print() if an exception occurs

[issue28806] Improve the netrc library

2021-11-17 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.11 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40059] Provide a toml module in the standard library

2021-11-17 Thread Shantanu
Shantanu added the comment: I'd love it if we could make this happen for Python 3.11. What can I do to help, e.g. would it be helpful if I drafted a PEP? Several projects have switched to using tomli (https://github.com/hukkin/tomli), which is fully compatible with TOML v1.0.0 and is maybe

[issue28806] Improve the netrc library

2021-11-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 15409c720be0503131713e3d3abc1acd0da07378 by Emmanuel Arias in branch 'main': bpo-28806: Continue work: improve the netrc library (GH-26330) https://github.com/python/cpython/commit/15409c720be0503131713e3d3abc1acd0da07378 -- nosy:

[issue45126] [sqlite3] cleanup and harden Connection and Cursor __init__

2021-11-17 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: