[issue9529] Make re match object iterable

2019-12-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +easy -patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38981] better name for re.error Exception class.

2019-12-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Reopened after discussing on Python-ideas: https://mail.python.org/archives/list/python-id...@python.org/thread/64NHNY6RD4HQWBSBV6J7XIN7UAHNTQBR/. -- resolution: not a bug -> stage: resolved -> needs patch status: closed -> open type: ->

[issue38990] Import genericpath fails with python -S

2019-12-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +brett.cannon, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38887] test_asyncio: test_pipe_handle() failed on AMD64 Windows7 SP1 3.x

2019-12-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Similar past report : issue31007 -- nosy: +xtreak ___ Python tracker ___ ___

[issue38975] Add direct anchors to regex syntax documentation

2019-12-06 Thread Ned Deily
Change by Ned Deily : -- nosy: +mdk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38991] Remove test.support.strip_python_stderr()

2019-12-06 Thread STINNER Victor
STINNER Victor added the comment: > do we have any buildbots using -X showrefcount? No. What would be the purpose of such buildbot? -X showrefcount is tested by test_cmd_line.test_showrefcount(). I ran "./python -X showrefcount -m test -j0 -r": all tests pass. (test_pty fail when run in

[issue38815] test_ssl: test_min_max_version() fails on FreeBSD and Fedora

2019-12-06 Thread Ned Deily
Ned Deily added the comment: @koobs, FWIW, unlike for most other third-party libs, there now is a configure option to allow specifying the path to the desired OpenSSL version, actually two ways. Either use the --with-openssl= option to ./configure. Otherwise, if pkg-config info is

[issue38991] Remove test.support.strip_python_stderr()

2019-12-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: do we have any buildbots using -X showrefcount? -- nosy: +gregory.p.smith ___ Python tracker ___

[issue38991] Remove test.support.strip_python_stderr()

2019-12-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +16968 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17490 ___ Python tracker ___

[issue38699] socket: change listen() default backlog from 128 to 4096?

2019-12-06 Thread Nathaniel Smith
Nathaniel Smith added the comment: Another subtlety that that code handles, and that the stdlib socket module might also want to handle: if the user passes in a custom backlog argument that's >65535, then we silently replace it with 66535 before passing it to the system. The reason is that

[issue38699] socket: change listen() default backlog from 128 to 4096?

2019-12-06 Thread Nathaniel Smith
Nathaniel Smith added the comment: Trio uses 65535 as the default backlog argument. There's a big comment here explaining why: https://github.com/python-trio/trio/blob/master/trio/_highlevel_open_tcp_listeners.py This doesn't actually set the backlog to 65635; instead it tells the kernel to

[issue38991] Remove test.support.strip_python_stderr()

2019-12-06 Thread STINNER Victor
New submission from STINNER Victor : Python 3.3 compiled in debug mode dumps the total number of references at exit into stderr. Something like: $ python3.3-dbg -X showrefcount -c pass [18563 refs, 6496 blocks] In Python 3.4, bpo-17323 disabled this feature by default and added -X

[issue38697] test.support.find_unused_port() race condition: test_socket fails with OSError: [Errno 98] Address already in use

2019-12-06 Thread STINNER Victor
STINNER Victor added the comment: support.find_unused_port() has a race condition by design, but tests are re-run sequentially by buildbots and so the rare race condition is worked around in practice. -- resolution: -> not a bug stage: -> resolved status: open -> closed

[issue38594] importlib.metadata documentation deficiencies

2019-12-06 Thread Jason R. Coombs
Change by Jason R. Coombs : -- assignee: docs@python -> jaraco ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38989] pip install selects 32 bit wheels for 64 bit python if vcvarsall.bat amd64_x86 in environment

2019-12-06 Thread Kevin Puetz
Change by Kevin Puetz : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21820] unittest: unhelpful truncating of long strings.

2019-12-06 Thread Ella Sharakanski
Ella Sharakanski added the comment: Any news on this? I also consider this a bug. -- nosy: +Ella Sharakanski ___ Python tracker ___

[issue38699] socket: change listen() default backlog from 128 to 4096?

2019-12-06 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +njs, yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38988] Killing asyncio subprocesses on timeout?

2019-12-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: There have been changes to asyncio since 3.6. I you have not, please check the 3.8 version to see if any of them are relevant to your issue. -- nosy: +terry.reedy ___ Python tracker

[issue38975] Add direct anchors to regex syntax documentation

2019-12-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: ΒΆ anchors are generated automatically for headers, but I don't know what the policy might be for items within section. It might be useful to add some subsection headers within the Regular Expression Syntax section. -- nosy: +serhiy.storchaka,

[issue38965] test_stack_overflow (test.test_faulthandler.FaultHandlerTests) is stuck with GCC10

2019-12-06 Thread STINNER Victor
STINNER Victor added the comment: > Would it make sense to also backport this fix to the 3.6 release? Sadly, 3.6 no longer accept bugfixes: https://devguide.python.org/#status-of-python-branches -- ___ Python tracker

[issue38947] dataclass defaults behave inconsistently for init=True/init=False when default is a descriptor

2019-12-06 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38974] using tkinter.filedialog.askopenfilename() freezes python 3.8

2019-12-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: filedialog.askopenfilename returns 'Open(**options).show()'. IDLE's File => Open (^O) calls Open and show directly. It continues to run on all versions on my machine (and presumably those of numerous others). I have TortoiseGit now and only recently

[issue38961] Flaky detection of compiler vendor

2019-12-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38953] Untokenize and retokenize does not round-trip

2019-12-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38952] asyncio cannot handle Python3 IPv4Address

2019-12-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: If this is a duplicate of #35019, then this issue should be closed, the original post here should be copied over, and the PR should be edited to point to the original issue, both in the title and the box below the title. -- nosy: +terry.reedy

[issue38989] pip install selects 32 bit wheels for 64 bit python if vcvarsall.bat amd64_x86 in environment

2019-12-06 Thread Kevin Puetz
Kevin Puetz added the comment: Just to link the various pieces together: I think https://bitbucket.org/pypa/distlib/src/2d145da7cb42590039fbd56a9ab764d5d4716a98/distlib/wheel.py#lines-53 is the place in distlib that's being breaking pip due to redefining distutils.util.get_platform() as

[issue38990] Import genericpath fails with python -S

2019-12-06 Thread Brittany Reynoso
New submission from Brittany Reynoso : When running python -S, attempting to run "import genericpath" fails with an attribute error due to a circular dependency between posixpath and genericpath that's triggered when "import os" is called from within genericpath.py. Traceback (most recent

[issue38989] pip install selects 32 bit wheels for 64 bit python if vcvarsall.bat amd64_x86 in environment

2019-12-06 Thread Kevin Puetz
Kevin Puetz added the comment: Besides the fact the MSVC's target platform isn't really related to the architecture for dependencies being installed, I'm not sure VSCMD_ARG_TGT_ARCH is an appropriate variable to look at in the first place. It doesn't seem to be at all documented, and (from

[issue37096] Add large-file tests for modules using sendfile(2)

2019-12-06 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Can we reopen the issue? Clearly this change modifies the expectations of free disk space for the temp files created by the tests. Or at least clarify that those tests require more than 6gb of free disk space in /tmp for unix --

[issue38965] test_stack_overflow (test.test_faulthandler.FaultHandlerTests) is stuck with GCC10

2019-12-06 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Would it make sense to also backport this fix to the 3.6 release? People compiling 3.6 with gcc 10 will stumble upon that. -- nosy: +cstratak ___ Python tracker

[issue37931] crash reimporting posix after Py_Finalize on mac

2019-12-06 Thread miss-islington
miss-islington added the comment: New changeset 836cf31a3cf468ed9598a220b8e194b366287bfe by Miss Islington (bot) in branch '3.8': bpo-37931: Fix crash on OSX re-initializing os.environ (GH-15428) https://github.com/python/cpython/commit/836cf31a3cf468ed9598a220b8e194b366287bfe --

[issue38916] Remove array.fromstring

2019-12-06 Thread STINNER Victor
STINNER Victor added the comment: bpo-38897 removed usage of deprecated array.fromstring() method. Commit in master: https://github.com/python/cpython/commit/386d00cc341b549800776b906bfc6b20ea40c7db -- ___ Python tracker

[issue37931] crash reimporting posix after Py_Finalize on mac

2019-12-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset 723f71abf7ab0a7be394f9f7b2daa9ecdf6fb1eb by Victor Stinner (Benoit Hudson) in branch 'master': bpo-37931: Fix crash on OSX re-initializing os.environ (GH-15428) https://github.com/python/cpython/commit/723f71abf7ab0a7be394f9f7b2daa9ecdf6fb1eb

[issue37931] crash reimporting posix after Py_Finalize on mac

2019-12-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +16967 pull_request: https://github.com/python/cpython/pull/17488 ___ Python tracker ___

[issue38544] test_venv: test_isolation() failed on AMD64 Windows7 SP1 3.x: directory not empty: Scripts\

2019-12-06 Thread STINNER Victor
STINNER Victor added the comment: Maybe the test can replace shutil.rmtree() with test.support.rmtree() temporarily in test_venv, since test.support.rmtree() handles the anti-malwares protections by retrying and/or sleep (if I recall correctly). --

[issue38544] test_venv: test_isolation() failed on AMD64 Windows7 SP1 3.x: directory not empty: Scripts\

2019-12-06 Thread Vinay Sajip
Vinay Sajip added the comment: Not sure what's changed in this area, if anything, to cause this. Can we check if there is anti-virus software running on the buildbot box? This can sometimes hold files open for short periods while scanning for malware, causing this type of permission error

[issue27822] Fail to create _SelectorTransport with unbound socket

2019-12-06 Thread STINNER Victor
STINNER Victor added the comment: > In writing a simple UDP client using asyncio, I tripped over a call to > getsockname() in the _SelectorTransport class in asyncio/selector_events.py. > (...) This bug has been fixed recently by: commit 63deaa5b70108ef441c57728322da6b4321db4fc Author:

[issue38989] pip install selects 32 bit wheels for 64 bit python if vcvarsall.bat amd64_x86 in environment

2019-12-06 Thread Ryan Thornton
New submission from Ryan Thornton : ## Expected Behavior pip install should download dependencies matching the architecture of the python executable being used. ## Actual Behavior When calling pip install from a Visual Studio command prompt configured to cross compile from x64 to x86, pip

[issue33125] Windows 10 ARM64 platform support

2019-12-06 Thread Steve Dower
Steve Dower added the comment: This site seems like a pretty good aggregation of news around Windows on ARM64 devices: https://www.windows-arm.com/ Short story is, it's a real thing, but for (what I consider) obvious reasons the OSS developer experience isn't great yet. --

[issue33125] Windows 10 ARM64 platform support

2019-12-06 Thread Steve Dower
Steve Dower added the comment: Closing this as the work we need for support is now added. Whether we start releasing binaries from python.org is a discussion to have on python-dev and with the broader community. Right now, I don't think the ecosystem is ready to add support (mainly because

[issue38544] test_venv: test_isolation() failed on AMD64 Windows7 SP1 3.x: directory not empty: Scripts\

2019-12-06 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38916] Remove array.fromstring

2019-12-06 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +16966 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17487 ___ Python tracker ___

[issue38916] Remove array.fromstring

2019-12-06 Thread STINNER Victor
STINNER Victor added the comment: I chose to write PR 17487 even if the issue was tagged as "easy (C)", just to make sure that the change is done as soon as possible in the 3.9 dev cycle. -- ___ Python tracker

[issue38916] Remove array.fromstring

2019-12-06 Thread STINNER Victor
STINNER Victor added the comment: > If it was documented as deprecated and raising a deprecation warning then 3.2 > is definitely far enough back to warrant removing it. Exactly. I'm in favor of removing fromstring() and tostring() methods right now, and update 3.7 and 3.8 documentation to

[issue38988] Killing asyncio subprocesses on timeout?

2019-12-06 Thread dontbugme
New submission from dontbugme : I'm trying to use asyncio.subproceess and am having difficulty killing the subprocesses after timeout. My use case is launching processes that hold on to file handles and other exclusive resources, so subsequent processes can only be launched after the first

[issue33125] Windows 10 ARM64 platform support

2019-12-06 Thread Steve Dower
Steve Dower added the comment: New changeset c9f480d2ccda9de46584cabe086f0acfa45f2faf by Steve Dower in branch '3.8': bpo-33125: Add support for building and releasing Windows ARM64 packages (GH-17480) https://github.com/python/cpython/commit/c9f480d2ccda9de46584cabe086f0acfa45f2faf

[issue38546] test_concurrent_futures: reap_children() warnings on RHEL7 and RHEL8 buildbots

2019-12-06 Thread STINNER Victor
STINNER Victor added the comment: New failure on AMD64 RHEL7 LTO 3.x: https://buildbot.python.org/all/#/builders/103/builds/17 test_interpreter_shutdown (test.test_concurrent_futures.ProcessPoolSpawnProcessPoolShutdownTest) ... 1.61s Warning -- reap_children() reaped child process 9934

[issue38982] test_asyncio: SubprocessPidfdWatcherTests..test_close_dont_kill_finished() leaks a file descriptor

2019-12-06 Thread STINNER Victor
STINNER Victor added the comment: I manually validated that my change fixed the test_asyncio leak: $ ./python -m test test_asyncio -R 3:3 --fail-env-changed -v -m test_subprocess (...) Tests result: SUCCESS I close the issue. Thanks Pablo for the review ;-) -- resolution: -> fixed

[issue5396] os.read not handling O_DIRECT flag

2019-12-06 Thread Logan Gunthorpe
Logan Gunthorpe added the comment: Paul's solution works in 3.7 if you set the buffer size to zero when calling fdopen. fd = os.open("my_file", os.O_DIRECT | os.O_RDWR) f = os.fdopen(fd, "rb+", 0) m = mmap.mmap(-1, 4096) f.readinto(m) This is according to a comment in _pyio.py: # If

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

2019-12-06 Thread STINNER Victor
STINNER Victor added the comment: > In case of malloc, every memory allocating code need to use > malloc/calloc/realloc. This is official and the only way to allocate a > memory. But we do not guarantee that Python core uses only public C API like > PyErr_Occurred(). It can use more

[issue38544] test_venv: test_isolation() failed on AMD64 Windows7 SP1 3.x: directory not empty: Scripts\

2019-12-06 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-38983 as a duplicate of this issue. It's the same error in the same function (clear_directory()). Copy of the first message: Failure on AMD64 Windows7 SP1 3.x: https://buildbot.python.org/all/#builders/81/builds/16

[issue38987] 3.8.0 on GNU/Linux fails to find shared library

2019-12-06 Thread Kevin Buchs
New submission from Kevin Buchs : I just downloaded Python 3.8.0 and built (from source) on Ubuntu 18.04. I used these options to configure: ./configure --enable-shared --enable-ipv6 --enable-optimizations The shared library gets installed into /usr/local/lib: find / -type f -name

[issue38868] Shutil cannot delete a folder that contains an .ini file

2019-12-06 Thread Svetlana Vodianova
Svetlana Vodianova added the comment: I think eryksun is correct. I agree. The code sample provided by him, and the Python docs, mean I'm able to remove a folder with a .ini file without getting WinError 5. I should mark this as closed as he solved my problem. -- stage: ->

[issue33125] Windows 10 ARM64 platform support

2019-12-06 Thread Zachary Ware
Change by Zachary Ware : -- Removed message: https://bugs.python.org/msg357922 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue33125] Windows 10 ARM64 platform support

2019-12-06 Thread wayo man
wayo man added the comment: Have you heard of this songs https://fakazamusic.co/khuzani-isilingo/ https://fakazamusic.co/kabza-de-small-dj-maphorisa-sha-sha-kea-go-rata/ https://fakazamusic.co/amabhotela-uzongithola-ematshwaleni/ https://fakazamusic.co/khuzani-new-album-2019/

[issue38983] test_venv: test_overwrite_existing() failed on AMD64 Windows7 SP1 3.x

2019-12-06 Thread STINNER Victor
STINNER Victor added the comment: > https://bugs.python.org/issue38544#msg355041 seems like a related old report Right, same error in the same function (clear_directory()). I mark it as a duplicate of bpo-38544. -- resolution: -> duplicate stage: -> resolved status: open -> closed

[issue38858] new_interpreter() should reuse more Py_InitializeFromConfig() code

2019-12-06 Thread STINNER Victor
STINNER Victor added the comment: Py_NewInterpreter() (new_interpreter() in practice) and Py_InitializeEx() now share almost all their code. Py_EndInterpreter() shares almost all its code with Py_Finalizer(). It's not perfect, but it's way better than previously. Py_NewInterpreter() now

[issue38982] test_asyncio: SubprocessPidfdWatcherTests..test_close_dont_kill_finished() leaks a file descriptor

2019-12-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset e76ee1a72b9e3f5da287663ea3daec4bb3f67612 by Victor Stinner in branch 'master': bpo-38982: Fix asyncio PidfdChildWatcher on waitpid() error (GH-17477) https://github.com/python/cpython/commit/e76ee1a72b9e3f5da287663ea3daec4bb3f67612 --

[issue36820] Captured exceptions are keeping user objects alive unnecessarily in the stdlib

2019-12-06 Thread miss-islington
miss-islington added the comment: New changeset 5ba591fa2c1f74c4a84372fb4ffc0b16863f1ad7 by Miss Islington (bot) in branch '3.7': bpo-36820: Break unnecessary cycle in socket.py, codeop.py and dyld.py (GH-13135)

[issue36820] Captured exceptions are keeping user objects alive unnecessarily in the stdlib

2019-12-06 Thread miss-islington
miss-islington added the comment: New changeset 681285d052977e3a3a82ef665e788946fca1ac59 by Miss Islington (bot) in branch '3.8': bpo-36820: Break unnecessary cycle in socket.py, codeop.py and dyld.py (GH-13135)

[issue36820] Captured exceptions are keeping user objects alive unnecessarily in the stdlib

2019-12-06 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36820] Captured exceptions are keeping user objects alive unnecessarily in the stdlib

2019-12-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +16965 pull_request: https://github.com/python/cpython/pull/17486 ___ Python tracker ___

[issue36820] Captured exceptions are keeping user objects alive unnecessarily in the stdlib

2019-12-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +16964 pull_request: https://github.com/python/cpython/pull/17485 ___ Python tracker ___

[issue36820] Captured exceptions are keeping user objects alive unnecessarily in the stdlib

2019-12-06 Thread miss-islington
miss-islington added the comment: New changeset b64334cb93d0ddbb551c8cd712942bab2fc72772 by Miss Islington (bot) (Mario Corchero) in branch 'master': bpo-36820: Break unnecessary cycle in socket.py, codeop.py and dyld.py (GH-13135)

[issue38986] Suppport TaskWakeupMethWrapper.__self__ to conform asyncio _format_handle logic

2019-12-06 Thread Andrew Svetlov
Andrew Svetlov added the comment: For the note: TaskStepMethWrapper has the same fix already, TaskWakeupMethWrapper was accidentally missed. -- ___ Python tracker ___

[issue38986] Suppport TaskWakeupMethWrapper.__self__ to conform asyncio _format_handle logic

2019-12-06 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +16963 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17484 ___ Python tracker ___

[issue38608] Undocumented behavior that IsolatedAsyncioTestCase would enable event loop debug mode

2019-12-06 Thread Andrew Svetlov
Andrew Svetlov added the comment: The output will be fixed by #38986 Nothing to do here. -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker

[issue38986] Suppport TaskWakeupMethWrapper.__self__ to conform asyncio _format_handle logic

2019-12-06 Thread Andrew Svetlov
New submission from Andrew Svetlov : _format_handle() behaves differently if handle._callback.__self__ is asyncio.Task instance. To follow this logic TaskWakeupMethWrapper from _asynciomodule.c should support the corresponding member. The fix is very desired for analyzing slow callbacks,

[issue38906] copy2 doesn't copy metadata on Windows and MacOS

2019-12-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: The relevant API on macOS is [f]copyfile(3) which is at the POSIX layer. The copyFile API linked to in msg357395 is a higher-level ObjC/Swift API. Using the copyfile(3) API has another advantage beyond this issue: This API can perform a clone action on

[issue38706] What should the error message in the exception raised by assertTrue and assertFalse be?

2019-12-06 Thread Steven D'Aprano
Steven D'Aprano added the comment: I tried sending this message earlier, but it seems to have disappeared into the void, so I'm trying again. Apologies if it turns up twice. * * * > There are almost 500 occurrences of "is true". We can worry about them if and when somebody raises them as a

[issue38955] Non indemnpotent behavior of asyncio.get_event_loop and asyncio.run sequence.

2019-12-06 Thread Andrew Svetlov
Andrew Svetlov added the comment: Asyncio has a few own exceptions, the library tries to utilize existing ones, e.g. ValueError, TypeError, and OSError family. RuntimeError falls into this category. get_event_loop() never returns None, it was from very beginning. If we change it existing

[issue38973] Shared Memory List Returns 0 Length

2019-12-06 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38985] `compile` returns the first line of file on termination

2019-12-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38973] Shared Memory List Returns 0 Length

2019-12-06 Thread Andrew Svetlov
Change by Andrew Svetlov : -- nosy: -asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38973] Shared Memory List Returns 0 Length

2019-12-06 Thread Andrew Svetlov
Andrew Svetlov added the comment: Antoine is marked as the multiprocessing expert -- nosy: +pitrou ___ Python tracker ___ ___

[issue38985] `compile` returns the first line of file on termination

2019-12-06 Thread Christian Heimes
Christian Heimes added the comment: Yes, that is expected behavior. Python is not designed for sandboxing and doesn't support sandboxing. *If* Python would support sandboxing, then compile() would be one of the first functions to go, because it allows an attacker to construct custom

[issue38985] `compile` returns the first line of file on termination

2019-12-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: It's not necessarily the first line. The code is executed with the context of the given file. Hence the corresponding line number of error from traceback with respect to file is printed. $ cat /tmp/passwd line 1 line 2 line 3 line 4 $ python3 -c

[issue38984] Value add to the wrong key in a dictionary

2019-12-06 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38985] `compile` returns the first line of file on termination

2019-12-06 Thread Koh
New submission from Koh : By specifying a filename in the compile function and then improperly terminating it, we are able to return the first line of any file. >> compile('yield', '/etc/passwd', 'exec') File "/etc/passwd", line 1 root:x:0:0:root:/root:/bin/bash ^ SyntaxError: 'yield'

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

2019-12-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In case of malloc, every memory allocating code need to use malloc/calloc/realloc. This is official and the only way to allocate a memory. But we do not guarantee that Python core uses only public C API like PyErr_Occurred(). It can use more low-level and