[issue41192] Some audit events are undocumented

2020-07-01 Thread Saiyang Gou
Saiyang Gou added the comment: Update: `os.walk`, `os.fwalk`, `pathlib.Path.glob` and `pathlib.Path.rglob` are added and documented in 3.9. -- ___ Python tracker ___

[issue39960] Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)

2020-07-01 Thread Stefan Behnel
Change by Stefan Behnel : -- versions: -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue41165] [Python 3.10] Remove APIs deprecated long enough

2020-07-01 Thread Inada Naoki
Change by Inada Naoki : -- title: [Python 3.10] Remove APIs deprecated since Python 3.3 -> [Python 3.10] Remove APIs deprecated long enough ___ Python tracker ___

[issue41043] Escape the literal part of the path for glob()

2020-07-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +20426 pull_request: https://github.com/python/cpython/pull/21277 ___ Python tracker ___

[issue41192] Some audit events are undocumented

2020-07-01 Thread Saiyang Gou
New submission from Saiyang Gou : Currently the following audit events are not documented on docs.python.org: - _winapi.CreateFile - _winapi.CreateJunction - _winapi.CreateNamedPipe - _winapi.CreatePipe - _winapi.CreateProcess - _winapi.OpenProcess - _winapi.TerminateProcess - ctypes.PyObj_From

[issue41165] [Python 3.10] Remove APIs deprecated since Python 3.3

2020-07-01 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +20425 pull_request: https://github.com/python/cpython/pull/21276 ___ Python tracker ___ _

[issue41043] Escape the literal part of the path for glob()

2020-07-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +20424 pull_request: https://github.com/python/cpython/pull/21275 ___ Python tracker ___

[issue41165] [Python 3.10] Remove APIs deprecated since Python 3.3

2020-07-01 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue41043] Escape the literal part of the path for glob()

2020-07-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It may be not exactly what you meant, but see issue38144. This issue actually was opened after I looked how that feature can be used in the stdlib and found that most of uses of glob() are vulnerable. -- ___ Pyt

[issue41165] [Python 3.10] Remove APIs deprecated since Python 3.3

2020-07-01 Thread Inada Naoki
Inada Naoki added the comment: Unittest aliases are deprecated in #9424. Can we remove them in Python 3.10? -- ___ Python tracker ___ _

[issue9424] Deprecate assertEquals, assertNotEquals, assert_, assertAlmostEquals, assertNotAlmostEquals

2020-07-01 Thread Inada Naoki
Inada Naoki added the comment: Can we remove these aliases in Python 3.10? (See also #41165) -- nosy: +inada.naoki ___ Python tracker ___ __

[issue41157] email.message_from_string() is unable to find the headers for the .msg files

2020-07-01 Thread SilentGhost
Change by SilentGhost : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue41157] email.message_from_string() is unable to find the headers for the .msg files

2020-07-01 Thread SilentGhost
Change by SilentGhost : -- nosy: +barry, maxking, r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue41165] [Python 3.10] Remove APIs deprecated since Python 3.3

2020-07-01 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +20423 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21273 ___ Python tracker ___

[issue40967] asyncio.Task.all_tasks() and asyncio.Task.current_task() must be removed in 3.9

2020-07-01 Thread Kyle Stanley
Kyle Stanley added the comment: Thanks Rémi for working on this. -- priority: release blocker -> normal stage: patch review -> commit review ___ Python tracker ___

[issue40967] asyncio.Task.all_tasks() and asyncio.Task.current_task() must be removed in 3.9

2020-07-01 Thread miss-islington
miss-islington added the comment: New changeset df59293bf0d815fe37743025d639a63a78e0c771 by Miss Islington (bot) in branch '3.9': bpo-40967: Remove deprecated asyncio.Task.current_task() and asyncio.Task.all_tasks() (GH-20874) https://github.com/python/cpython/commit/df59293bf0d815fe37743025

[issue40967] asyncio.Task.all_tasks() and asyncio.Task.current_task() must be removed in 3.9

2020-07-01 Thread miss-islington
miss-islington added the comment: New changeset 004e64e8059fe68a72890314673282f2e60d5ce1 by Rémi Lapeyre in branch 'master': bpo-40967: Remove deprecated asyncio.Task.current_task() and asyncio.Task.all_tasks() (GH-20874) https://github.com/python/cpython/commit/004e64e8059fe68a72890314673282

[issue40967] asyncio.Task.all_tasks() and asyncio.Task.current_task() must be removed in 3.9

2020-07-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +20422 pull_request: https://github.com/python/cpython/pull/21272 ___ Python tracker ___ __

[issue41180] marshal load bypass code.__new__ audit event

2020-07-01 Thread Yunfan Zhan
Change by Yunfan Zhan : -- keywords: +patch pull_requests: +20421 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21271 ___ Python tracker ___

[issue41137] pdb uses the locale encoding for .pdbrc

2020-07-01 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue41100] Build failure on macOS 11 (beta)

2020-07-01 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue39579] Attribute node in a decorator has wrong end_col_offset

2020-07-01 Thread Francis Herne
Francis Herne added the comment: Sorry, on further inspection it was the other AST range change https://bugs.python.org/issue39474 , not this one. -- ___ Python tracker ___ _

[issue41133] Insufficient description of cyclic garbage collector for C API

2020-07-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I agree with what Tim said. We also cannot foresee every possible bug of someone misusing the C API, and the garbage collector interacts with many systems of the VM, and having gigantic documentation has shown to be always detrimental. > I think it

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-07-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +20420 pull_request: https://github.com/python/cpython/pull/21270 ___ Python tracker ___

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-07-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 666ecfb0957a2fa0df5e2bd03804195de74bdfbf by Victor Stinner in branch 'master': bpo-1635741: Release Unicode interned strings at exit (GH-21269) https://github.com/python/cpython/commit/666ecfb0957a2fa0df5e2bd03804195de74bdfbf -- _

[issue39579] Attribute node in a decorator has wrong end_col_offset

2020-07-01 Thread Francis Herne
Francis Herne added the comment: Note: this change causes a regression in kdev-python because our code was based on (and worked around) the long-standing previous behaviour; it produces broken results given the 'fixed' offset. I shall have to write a patch with a version-check before our nex

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-07-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +20419 pull_request: https://github.com/python/cpython/pull/21269 ___ Python tracker ___

[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-07-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 90db4653ae37ef90754cfd2cd6ec6857b87a88e6 by Victor Stinner in branch 'master': bpo-40521: Cleanup finalize_interp_types() (GH-21265) https://github.com/python/cpython/commit/90db4653ae37ef90754cfd2cd6ec6857b87a88e6 --

[issue39385] Add an assertNoLogs context manager to unittest TestCase

2020-07-01 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue39385] Add an assertNoLogs context manager to unittest TestCase

2020-07-01 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 6b34d7b51e33fcb21b8827d927474ce9ed1f605c by Kit Choi in branch 'master': bpo-39385: Add an assertNoLogs context manager to unittest.TestCase (GH-18067) https://github.com/python/cpython/commit/6b34d7b51e33fcb21b8827d927474ce9ed1f605c -- n

[issue41043] Escape the literal part of the path for glob()

2020-07-01 Thread Petr Viktorin
Petr Viktorin added the comment: Would it be worth it to add a "base" keyword argument to glob.glob? -- nosy: +petr.viktorin ___ Python tracker ___ ___

[issue41168] Lack of proper checking in PyObject_SetAttr leads to segmentation fault

2020-07-01 Thread Petr Viktorin
Petr Viktorin added the comment: What kind of security-related issues do you mean? A .pyc file is code; it can do anything. Never run untrusted code, be it .py or .pyc. See also: Lib/test/crashers/bogus_code_obj.py -- nosy: +petr.viktorin ___ Pyth

[issue41073] [C API] PyType_GetSlot() should accept static types

2020-07-01 Thread Petr Viktorin
Petr Viktorin added the comment: > If we extend PyType_GetSlot() to accept non-heaptype, we need find a way to > judge the max slot of non-heaptype. Static types can have some sub-slots structs but not others. A "max slot" will not help for types that have tp_as_mapping but not tp_as_number,

[issue41191] PyType_FromModuleAndSpec is not mentioned in 3.9 What's new

2020-07-01 Thread Matthieu Dartiailh
New submission from Matthieu Dartiailh : Looking at the What's new for Python 3.9 I noticed that there was no mention of PEP 573. The added functions are properly documented and should probably be mentioned in the What's new. -- assignee: docs@python components: Documentation messages

[issue41189] An exploitable segmentation fault in _PyEval_EvalFrameDefault

2020-07-01 Thread Iman Sharafodin
Iman Sharafodin added the comment: Thank you for the response. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue41189] An exploitable segmentation fault in _PyEval_EvalFrameDefault

2020-07-01 Thread Ned Deily
Ned Deily added the comment: > my only goal was to help Python community (which I love it) to improve the > code quality Thanks for trying to improve things, we do appreciate it! The idea here is that to be able to exploit the crashing pyc file, you need to be able to run an arbitrary pyc f

[issue41189] An exploitable segmentation fault in _PyEval_EvalFrameDefault

2020-07-01 Thread Iman Sharafodin
Iman Sharafodin added the comment: You're right. But if someone uses the exact same code to decompile a pyc to a Python code, attacker doesn't have access to the interpreter and cannot even run the pyc file on the server, but the attacker can cause a crash and run the malicious exploit code.

[issue41189] An exploitable segmentation fault in _PyEval_EvalFrameDefault

2020-07-01 Thread Ned Deily
Ned Deily added the comment: If users have unrestricted access to the interpreter, there are easier ways to crash Python than with modified byte code, for example, as is documented with ctypes. As noted on the Python Security Team web page (https://www.python.org/dev/security/): "If you can

[issue41100] Build failure on macOS 11 (beta)

2020-07-01 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue41133] Insufficient description of cyclic garbage collector for C API

2020-07-01 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +nanjekyejoannah, pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue41100] Build failure on macOS 11 (beta)

2020-07-01 Thread Lawrence D'Anna
Change by Lawrence D'Anna : -- pull_requests: +20418 pull_request: https://github.com/python/cpython/pull/21268 ___ Python tracker ___ _

[issue37999] No longer use implicit convertion to int with loss

2020-07-01 Thread Hans Petter Jansson
Change by Hans Petter Jansson : -- nosy: +hpj nosy_count: 2.0 -> 3.0 pull_requests: +20417 pull_request: https://github.com/python/cpython/pull/17536 ___ Python tracker ___ ___

[issue41189] An exploitable segmentation fault in _PyEval_EvalFrameDefault

2020-07-01 Thread Iman Sharafodin
Iman Sharafodin added the comment: It could be potential dangerous, for example some services might use Python Core to decompile pyc files and they could be hacked or some other services could run restricted pyc files for users but using this bug they can escape the sandbox and run the malic

[issue41187] Convert the _msi module to Argument Clinic

2020-07-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5d5c84ef78b19211671c2bfa68fe073485135eed by Serhiy Storchaka in branch 'master': bpo-41187: Convert the _msi module to Argument Clinic (GH-21264) https://github.com/python/cpython/commit/5d5c84ef78b19211671c2bfa68fe073485135eed -- _

[issue41189] An exploitable segmentation fault in _PyEval_EvalFrameDefault

2020-07-01 Thread Ned Deily
Ned Deily added the comment: Sorry, if you modified the pyc file, that is undefined behavior. We make no guarantees that you can't crash the interpreter with arbitrary byte code. -- resolution: -> not a bug stage: -> resolved status: open -> closed _

[issue41189] An exploitable segmentation fault in _PyEval_EvalFrameDefault

2020-07-01 Thread Iman Sharafodin
Iman Sharafodin added the comment: I created a Python file with 12 lines of code and then changed the bytecode to make Python crash (I was testing Python to find security related bugs). I can send the original file, do you need that? -- ___ Python

[issue41189] An exploitable segmentation fault in _PyEval_EvalFrameDefault

2020-07-01 Thread Ned Deily
Ned Deily added the comment: Thank you for the report. Can you please supply the Python code that was translated into the .pyc file you supplied? If there is some reason that you don't want to post it to this issue, you can email it to secur...@python.org. -- __

[issue41158] IDLE: rewrite the code for handling file encoding

2020-07-01 Thread miss-islington
miss-islington added the comment: New changeset c3fa7534c7173d338880a1727f17795670518610 by Miss Islington (bot) in branch '3.8': bpo-41158: IDLE: rewrite the code for handling file encoding (GH-21215) https://github.com/python/cpython/commit/c3fa7534c7173d338880a1727f17795670518610 ---

[issue41181] [macOS] Build macOS installer with LTO and PGO optimizations

2020-07-01 Thread Ned Deily
Ned Deily added the comment: er, "macOS 11.0 Big Sur" :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38980] Compile libpython with -fno-semantic-interposition

2020-07-01 Thread Tianon
Change by Tianon : -- nosy: +tianon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[issue41181] [macOS] Build macOS installer with LTO and PGO optimizations

2020-07-01 Thread Ned Deily
Ned Deily added the comment: I should have made it clearer that we expect to release a new installer variant for macOS 11.6 Big Sur that supports both Intel and Apple Silicon architectures later this year (i.e. in several months) when Big Sur releases. It will be much easier to support newer

[issue41189] An exploitable segmentation fault in _PyEval_EvalFrameDefault

2020-07-01 Thread SilentGhost
Change by SilentGhost : -- nosy: +ned.deily type: -> security ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41190] msilib: SetProperty() accepts str, but GetProperty() returns bytes

2020-07-01 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : There is an inconsistency in the _msi.SummaryInformation class. Its method SetProperty() accepts str, but GetProperty() returns bytes (encoded with the Windows ANSI encoding). Since os.fsencode()/os.fsdecode() now use UTF-8 encoding, it is not so easy to

[issue41158] IDLE: rewrite the code for handling file encoding

2020-07-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +20416 pull_request: https://github.com/python/cpython/pull/21267 ___ Python tracker ___ __

[issue41189] An exploitable segmentation fault in _PyEval_EvalFrameDefault

2020-07-01 Thread Iman Sharafodin
New submission from Iman Sharafodin : Python 3.6 (June 27, 2020) (https://www.python.org/ftp/python/3.6.11/Python-3.6.11.tgz). I found an exploitable segmentation fault in Python 3.6.11 (I validated that by using GDB's Exploitable plugin). Please find the attachment. #0 0x00b63bf4 i

[issue41188] Prepare CPython for opaque PyObject structure.

2020-07-01 Thread William Pickard
Change by William Pickard : -- keywords: +patch pull_requests: +20415 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21262 ___ Python tracker ___

[issue41188] Prepare CPython for opaque PyObject structure.

2020-07-01 Thread William Pickard
New submission from William Pickard : The goal of issue 39573 is to make "PyObject" and opaque structure in the limited API. To do that, a few mandatory changes will be required to CPython in order to allow for seamless implementation. Namely: 1) User types need to get away from directly ref

[issue41184] Reconciling IDLE's Comment Out Region / Uncomment Region with PEP 8 guidelines for commenting

2020-07-01 Thread Guido van Rossum
Guido van Rossum added the comment: The IDLE feature should not change, for all the reasons Terry have. I am quite done with changes to PEP in order to settle arguments, and I do not believe this convention needs mentioning in that PEP. Remember there is text in PEP 8 reminding readers to us

[issue41100] Build failure on macOS 11 (beta)

2020-07-01 Thread Lawrence D'Anna
Change by Lawrence D'Anna : -- pull_requests: +20414 pull_request: https://github.com/python/cpython/pull/21266 ___ Python tracker ___ _

[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2020-07-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +20413 pull_request: https://github.com/python/cpython/pull/21265 ___ Python tracker ___ __

[issue40512] [subinterpreters] Meta issue: per-interpreter GIL

2020-07-01 Thread STINNER Victor
STINNER Victor added the comment: > Update of the EXPERIMENTAL_ISOLATED_SUBINTERPRETERS status. Also: * _PyLong_Zero and _PyLong_One singletons are shared * Py_None, Py_True and Py_False singletons are shared: bpo-39511 and PR 18301 * Static types like PyUnicode_Type and PyLong_Type are share

[issue41184] Reconciling IDLE's Comment Out Region / Uncomment Region with PEP 8 guidelines for commenting

2020-07-01 Thread Terry J. Reedy

[issue41180] marshal load bypass code.__new__ audit event

2020-07-01 Thread Steve Dower
Steve Dower added the comment: I like using the existing event for unmarshalling code objects, assuming we have all the arguments available. I'm not sure whether it's worth auditing all marshal.load() calls (just as we don't audit all pickle.load() calls). But depending on the code paths we

[issue41007] test_importlib logs ResourceWarning: test_path.CommonTests.test_importing_module_as_side_effect()

2020-07-01 Thread STINNER Victor
STINNER Victor added the comment: Alright, this issue was fixed by: commit 2fb5f038f2a2e91a7293d62dfd5601e6eb500c55 (HEAD) Author: Jason R. Coombs Date: Mon Jun 29 16:59:22 2020 -0400 bpo-40924: Ensure importlib.resources.path returns an extant path (GH-20857) -- resolution:

[issue41187] Convert the _msi module to Argument Clinic

2020-07-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +20412 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21264 ___ Python tracker ___

[issue41187] Convert the _msi module to Argument Clinic

2020-07-01 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR converts the _msi module to Argument Clinic. * Fixes deprecation warnings with the "u" format. * Adds signatures. * Adds meaningful docstrings. -- components: Argument Clinic, Windows messages: 372769 nosy: larry, paul.moore, serhi

[issue41186] distutils.version epoch compatibility

2020-07-01 Thread Bar Harel
Bar Harel added the comment: Actually, it looks like distutils days are quite over and pip itself uses setuptools with pypa packaging. I'll take the initiative and close this. -- resolution: -> wont fix stage: -> resolved status: open -> closed

[issue41137] pdb uses the locale encoding for .pdbrc

2020-07-01 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- keywords: +patch nosy: +thatiparthy nosy_count: 2.0 -> 3.0 pull_requests: +20411 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21263 ___ Python tra

[issue41181] [macOS] Build macOS installer with LTO and PGO optimizations

2020-07-01 Thread STINNER Victor
STINNER Victor added the comment: If clang 6.0 is a dead end for LTO, another option is to build a recent clang version on macOS 10.9. If I manage to do that, would it sound like an acceptable solution? I don't expect any API/ABI issue just by changing the clang version. Upgrading clang shou

[issue41181] [macOS] Build macOS installer with LTO and PGO optimizations

2020-07-01 Thread STINNER Victor
STINNER Victor added the comment: >> Clang 6.0 doesn't support LTO and PGO? > No, it appears not. That's really surprising. I see LTO mentioned in LLVM 3.4 changelog for example: https://releases.llvm.org/3.4/tools/clang/docs/ReleaseNotes.html#new-compiler-flags Did you try to build Python wi

[issue41186] distutils.version epoch compatibility

2020-07-01 Thread Bar Harel
New submission from Bar Harel : Is distutils.version aware of the PEP440 epoch version modifier? I haven't seen any reference to this. AFAIK pypa packaging does take it into consideration, but should the stdlib also care about it? I would like to believe pip takes it into consideration but n

[issue41179] find_library on macOS Big Sur

2020-07-01 Thread Ned Deily
Change by Ned Deily : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41181] [macOS] Build macOS installer with LTO and PGO optimizations

2020-07-01 Thread Ned Deily
Ned Deily added the comment: > Clang 6.0 doesn't support LTO and PGO? No, it appears not. And it's not an oversight that we don't use the these options. As Łukasz points out, for the current macOS installer variants we supply are designed to run on all Mac systems from macOS 10.9 on. To acc

[issue41106] os.scandir() Windows bug dir_entry.stat() not works on file during writing.

2020-07-01 Thread Eryk Sun
Eryk Sun added the comment: > As far as I know os.stat() resets d.stat() maybe should be added > some option to d.stat() to force update(). d.stat(nt_force_update=True). It depends on the filesystem. NTFS will update the directory entry as soon as the link is accessed by CreateFileW. But tha

[issue41007] test_importlib logs ResourceWarning: test_path.CommonTests.test_importing_module_as_side_effect()

2020-07-01 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: (allhub) ➜ cpython git:(master) ✗ ./python.exe -X tracemalloc=20 -m test test_importlib -m test.test_importlib.test_path.CommonTests.test_importing_module_as_side_effect -v == CPython 3.10.0a0 (heads/master:d0981e6

[issue41007] test_importlib logs ResourceWarning: test_path.CommonTests.test_importing_module_as_side_effect()

2020-07-01 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) added the comment: I can repro on 843c27765652e2322011fb3e5d88f4837de38c06 but I have tried this on latest master d0981e6 and I do not see the warning. can be closed? -- nosy: +thatiparthy __

[issue41185] lib2to3 generation of pickle files is racy

2020-07-01 Thread Marco Barisione
New submission from Marco Barisione : The generation of pickle files in load_grammar in lib2to3/pgen2/driver.py is racy as other processes may end up reading a half-written pickle file. This is reproducible with the command line tool, but it's easier to reproduce by importing lib2to3. You jus

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

2020-07-01 Thread William Pickard
Change by William Pickard : -- nosy: +WildCard65 nosy_count: 9.0 -> 10.0 pull_requests: +20410 pull_request: https://github.com/python/cpython/pull/21262 ___ Python tracker ___

[issue41066] Update documentation for Pathlib

2020-07-01 Thread శ్రీనివాస్ రెడ్డి తాటిపర్తి
Change by Srinivas Reddy Thatiparthy(శ్రీనివాస్ రెడ్డి తాటిపర్తి) : -- keywords: +patch pull_requests: +20409 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21261 ___ Python tracker

[issue41158] IDLE: rewrite the code for handling file encoding

2020-07-01 Thread miss-islington
miss-islington added the comment: New changeset fe0175f5b50967aae90cb759a0d2d016fb745584 by Miss Islington (bot) in branch '3.9': bpo-41158: IDLE: rewrite the code for handling file encoding (GH-21215) https://github.com/python/cpython/commit/fe0175f5b50967aae90cb759a0d2d016fb745584 ---

[issue41181] [macOS] Build macOS installer with LTO and PGO optimizations

2020-07-01 Thread STINNER Victor
STINNER Victor added the comment: > We cannot depend on PGO and LTO for it unless we start building the installer > on 10.15. Clang 6.0 doesn't support LTO and PGO? Would you mind to elaborate? -- ___ Python tracker

[issue41184] Reconciling IDLE's Comment Out Region / Uncomment Region with PEP 8 guidelines for commenting

2020-07-01 Thread Anthropologist
New submission from Anthropologist : IDLE's Comment Out Region formatting tool currently adds two octothorpe characters followed by no spaces. The Uncomment Region tool removes up to 2 octothorpes but does not remove spaces. The Python Style Guide (PEP 8) specifies that: "An inline comment

[issue41158] IDLE: rewrite the code for handling file encoding

2020-07-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +20408 pull_request: https://github.com/python/cpython/pull/21260 ___ Python tracker ___ __

[issue41158] IDLE: rewrite the code for handling file encoding

2020-07-01 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +20407 pull_request: https://github.com/python/cpython/pull/21259 ___ Python tracker _

[issue41183] Workaround or fix for SSL "EE_KEY_TOO_SMALL" test failures

2020-07-01 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +20405 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/21258 ___ Python tracker

[issue34542] [TLS] Update test certs to future proof settings

2020-07-01 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +20406 pull_request: https://github.com/python/cpython/pull/21258 ___ Python tracker ___

[issue41177] ConvertingList and ConvertingTuple lack iterators and ConvertingDict lacks items()

2020-07-01 Thread Brett Hannigan
Change by Brett Hannigan : -- versions: -Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue41183] Workaround or fix for SSL "EE_KEY_TOO_SMALL" test failures

2020-07-01 Thread Christian Heimes
Christian Heimes added the comment: I'll look into it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue41183] Workaround or fix for SSL "EE_KEY_TOO_SMALL" test failures

2020-07-01 Thread Larry Hastings
New submission from Larry Hastings : I'm testing 3.5.10rc1 on a freshly installed Linux (Pop!_OS 20.04), and I'm getting a lot of these test failures: ssl.SSLError: [SSL: EE_KEY_TOO_SMALL] ee key too small (_ssl.c:2951) Apparently the 2048 keys used in the tests are considered "too small" wit

[issue41179] find_library on macOS Big Sur

2020-07-01 Thread Sumanth Ratna
Sumanth Ratna added the comment: I see; thanks for letting me know! I saw Issue41100 but I had assumed that it was only for build issues :) Should I close this issue? -- ___ Python tracker

[issue41169] socket.inet_pton raised when pass an IPv6 address like "[::]" to it

2020-07-01 Thread Wator Sead
Wator Sead added the comment: Can you try bind "::". My ask is "Can make a consistent behave via constraints it?". -- ___ Python tracker ___ _

[issue41170] Use strnlen instead of strlen when the size i known.

2020-07-01 Thread Larry Hastings
Larry Hastings added the comment: strnlen() isn't standard C, but an exciting new function strnlen_s() is, as of C11. https://en.cppreference.com/w/c/string/byte/strlen (At this rate, we should be able to code CPython using that standard in about 2030.) But! I found a 2005 thread on /. ta

[issue41169] socket.inet_pton raised when pass an IPv6 address like "[::]" to it

2020-07-01 Thread Christian Heimes
Christian Heimes added the comment: The behavior of sockets depends on platform and implementation details of OS and libc. Binding to ('[::]', 888) does not work for me on Linux. It might work on other problems. The majority of functions and methods in the socket module are thin wrappers aro

[issue41169] socket.inet_pton raised when pass an IPv6 address like "[::]" to it

2020-07-01 Thread Wator Sead
Wator Sead added the comment: [::] can be bound, but the resoult is [::1], you must use this address to connect. Excuse me, are you a developer of the Python? >>> import socket >>> ls = socket.socket(socket.AF_INET6) >>> cs = socket.socket(socket.AF_INET6) >>> ls.bind(('[::]', 888)) # no rai

[issue41176] revise Tkinter mainloop dispatching flag behavior

2020-07-01 Thread Richard Sheridan
Richard Sheridan added the comment: Removing `WaitForMainloop` would surely break some existing programs, but that's why I suggested deprecation instead of just removing it suddenly. We could issue a RuntimeWarning if `WaitForMainloop` actually waits and tell the client to take responsibility f

[issue41153] [easy Doc] "PyPreConfig_InitIsolatedConfig" and "PyPreConfig_InitPythonConfig" are given the opposite's documentation.

2020-07-01 Thread William Pickard
Change by William Pickard : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue41106] os.scandir() Windows bug dir_entry.stat() not works on file during writing.

2020-07-01 Thread Cezary Wagner
Cezary Wagner added the comment: As far as I know os.stat() resets d.stat() maybe should be added some option to d.stat() to force update(). d.stat(nt_force_update=True). I am not sure if os.path.getmtime() can reset d.stat(). os.stat() is 2x times slower than os.path.getmtime() and os.path.

[issue41181] [macOS] Build macOS installer with LTO and PGO optimizations

2020-07-01 Thread Łukasz Langa
Łukasz Langa added the comment: The installer is built on Mac OS X 10.9 so that it is forward compatible with all OS X and macOS versions. We cannot depend on PGO and LTO for it unless we start building the installer on 10.15. We cannot do this currently as those installers would not work wit

[issue41182] DefaultSelector fails to detect selector on VMware ESXi

2020-07-01 Thread Abhijeet Kasurde
Change by Abhijeet Kasurde : -- keywords: +patch pull_requests: +20403 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21257 ___ Python tracker ___

[issue41182] DefaultSelector fails to detect selector on VMware ESXi

2020-07-01 Thread Abhijeet Kasurde
New submission from Abhijeet Kasurde : When DefaultSelector is used on VMware ESXi, it fails with >>> import selectors >>> selector = selectors.DefaultSelector() Traceback (most recent call last): File "", line 1, in File "/build/mts/release/bora-4887370/bora/build/esx/release/vmvisor/sy

  1   2   >