[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-08 Thread miss-islington
miss-islington added the comment: New changeset c6e7cf1ee09c88d35e6703c33a61eca7b9db54f3 by Miss Islington (bot) in branch '3.9': bpo-43332: Buffer proxy connection setup packets before sending. (GH-24780) https://github.com/python/cpython/commit/c6e7cf1ee09c88d35e6703c33a61eca7b9db54f3

[issue43432] Add function `clear` to the `os` module

2021-03-08 Thread parsa mpsh
New submission from parsa mpsh : I wanna add a new function named `clear` to the os module. This function runs the `clear` command in the os. but this function checks that is os windows, if yes, runs `cls`. I'm working on my patch. -- components: Library (Lib) messages: 388262 nosy:

[issue43420] Optimize rational arithmetics

2021-03-08 Thread Sergey B Kirpichev
Sergey B Kirpichev added the comment: On Sun, Mar 07, 2021 at 12:16:36PM +, Mark Dickinson wrote: > but not the "incompatible denominators" part. :-) The typical use there is > that those fractions have been converted from floats But there is no limits to use Fraction's for input, e.g.

[issue43353] Document that logging.getLevelName() can return a numeric value.

2021-03-08 Thread miss-islington
miss-islington added the comment: New changeset bbba28212ce0f58096a4043f32442c6e727b74fc by Mariusz Felisiak in branch 'master': bpo-43353: Document that logging.getLevelName() accepts string representation of logging level. (GH-24693)

[issue43432] Add function `clear` to the `os` module

2021-03-08 Thread parsa mpsh
Change by parsa mpsh : -- keywords: +patch pull_requests: +23550 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24784 ___ Python tracker ___

[issue43285] ftplib use host from PASV response

2021-03-08 Thread confd0
confd0 added the comment: Any response here? If you need more information let me know. -- ___ Python tracker ___ ___

[issue43435] Py_BuildValue("y#".... returns incomplete result

2021-03-08 Thread David Wood
New submission from David Wood : I have a c function to encrypt values which returns an array of bytes. The function returns proper values outside of python. When used as a python function, the result is incomplete usually 10-20% of the time. If I add a sleep(1) call before returning from

[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-03-08 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch Added file: https://bugs.python.org/file49858/patch.diff ___ Python tracker ___

[issue43431] Subprocess timeout causes output to be returned as bytes in text mode

2021-03-08 Thread Eryk Sun
Eryk Sun added the comment: communicate() is incomplete, so decoding the output may fail. For example, say the encoding is UTF-8, and the last multibyte character sequence (2-4 bytes) is incomplete. Maybe communicate() should always set `stdout_bytes` and `stderr_bytes` attributes on the

[issue43432] Add function `clear` to the `os` module

2021-03-08 Thread Eryk Sun
Eryk Sun added the comment: The idea of adding some kind of clear_screen() function in the os or shutil module was discussed extensively on python-ideas a few months ago: https://mail.python.org/archives/list/python-id...@python.org/thread/EWQ2BOL3WVZAU2V2MT3HLXN3AEBHANNZ

[issue43433] xmlrpc.client ignores query in URI ("?action=xmlrpc2") from python-3.9

2021-03-08 Thread OndrejPtak
New submission from OndrejPtak : xmlrpc.client proxy behaviour changed and broke tools depending on URI containing query part. Last working version: https://github.com/python/cpython/blob/3.8/Lib/xmlrpc/client.py#L1417 Changed behaviour here:

[issue43433] xmlrpc.client ignores query in URI ("?action=xmlrpc2") since python-3.9

2021-03-08 Thread OndrejPtak
Change by OndrejPtak : -- title: xmlrpc.client ignores query in URI ("?action=xmlrpc2") from python-3.9 -> xmlrpc.client ignores query in URI ("?action=xmlrpc2") since python-3.9 ___ Python tracker

[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-03-08 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : The module level connect method is guarded by PySys_Audit(), but sqlite3.Connection.__init__() is not. It is possible to bypass the module level connect() method simply by creating a new sqlite3.Connection object directly. Easily fixed by either

[issue43436] bounded _lru_cache_wrapprer behaves as if typed=True when it wasn't

2021-03-08 Thread Dan Snider
New submission from Dan Snider : Isn't the point of setting typed=True to make it so that e.g. True doesn't register as a hit when there is already a cache entry for 1.0? Assuming that is the case, although this report specifically targets 3.8 I found no indication that what I believe is the

[issue43435] Py_BuildValue("y#".... returns incomplete result

2021-03-08 Thread Christian Heimes
Christian Heimes added the comment: Does mcrypt_generic() output base64 or ASCII-only data? Since you are converting the output to bytes, I assume the output may contain any byte. In that case strcpy() is not safe. You have to use memcpy(). Fun fact: Nintendo had a similar bug many years

[issue43432] Add function `clear` to the `os` module

2021-03-08 Thread parsa mpsh
parsa mpsh added the comment: Well, some times we are writing a flexible Text ui program. we may use `clear` lot of times. This should be used when we haven't any valuable data on the screen. Also, who that uses this function, knows this will clear valuable data :). Sometimes also i use

[issue43432] Add function `clear` to the `os` module

2021-03-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If you write a flexible Text ui program, you should use functions provided by a text ui library which you use to clear the screen or a part of screen. If you want to call an external command, use os.system(), os.popen() or more flexible subprocess module.

[issue8304] time.strftime() and Unicode characters on Windows

2021-03-08 Thread STINNER Victor
STINNER Victor added the comment: > time.tzset() should be implemented I'm not sure of what you mean. The function is implemented: static PyObject * time_tzset(PyObject *self, PyObject *unused) { PyObject* m; m = PyImport_ImportModuleNoBlock("time"); if (m == NULL) {

[issue43437] venv activate bash script has wrong line endings on windows

2021-03-08 Thread Jeff Moguillansky
New submission from Jeff Moguillansky : when running python.exe -m venv on Windows, It creates several activate scripts. The activate bash script has the wrong line endings (it should be unix-style, not windows-style). Bash scripts should always end with unix style line endings --

[issue43435] Py_BuildValue("y#".... returns incomplete result

2021-03-08 Thread Christian Heimes
Christian Heimes added the comment: What do you mean by "incomplete"? Does it return less data or invalid data? Could you please paste your implementation of encryptBlowfishCfb(), too? -- nosy: +christian.heimes ___ Python tracker

[issue43435] Py_BuildValue("y#".... returns incomplete result

2021-03-08 Thread David Wood
David Wood added the comment: I have not gone to the extent of comparing the direct output against what python gets, although it appears to be incomplete. The following is my encrypt function which has been used successfully for many years in a separate c program, so I have high confidence

[issue43431] Subprocess timeout causes output to be returned as bytes in text mode

2021-03-08 Thread Jordan Macdonald
Jordan Macdonald added the comment: Eryk Sun: Well, I think step 1 should be to update the documentation for Python 3.7 through 3.10 on `subprocess.run()` and `subprocess.TimeoutExpired` to clearly state that `TimeoutExpired.stdout` and `TimeoutExpired.stderr` will be in bytes format even

[issue10653] test_time test_strptime fails on windows

2021-03-08 Thread STINNER Victor
STINNER Victor added the comment: Eryk Sun: This issue is now closed. If you want to enhance the time module, please open a new issue. -- ___ Python tracker ___

[issue36779] time.tzname returns empty string on Windows if default codepage is a Unicode codepage

2021-03-08 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43436] bounded _lru_cache_wrapprer behaves as if typed=True when it wasn't

2021-03-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43422] Revert _decimal C API changes

2021-03-08 Thread STINNER Victor
STINNER Victor added the comment: I have a concern about the current _decimal C API: bpo-43060. I'm fine with removing it in Python 3.10, and add it back fixed in Python 3.11 or later. > I can turn it into a PR but first I'd like to gather reactions here. Go ahead. --

[issue43416] Add README files in Include/cpython and Include/internal

2021-03-08 Thread STINNER Victor
STINNER Victor added the comment: * Include/internal/ with extern: C API which must not and can not be used outside CPython code base, only stdlib extensions built as built-in extensions can use it. * Include/internal/ with PyAPI_FUNC/PyAPI_DATA: API which should be be used outside

[issue43430] Exception raised when attempting to create Enum via functional API

2021-03-08 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28712] Non-Windows mappings for a couple of Windows code pages

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

[issue43436] bounded _lru_cache_wrapprer behaves as if typed=True when it wasn't

2021-03-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the report, but this isn't a bug. Setting typed=True guarantees that types are treated as distinct entries. Setting typed=False means that the implementation MAY ignore the type and only use equality, but it is not required to do so. If it

[issue38119] resource tracker destroys shared memory segments when other processes should still have valid access

2021-03-08 Thread Álvaro Justen
Álvaro Justen added the comment: Based on changes at https://github.com/python/cpython/pull/15989 I've monkey-patched `multiprocessing.resource_tracker` so my current applications (running on Python 3.9.2) won't be affected. The code may be useful to others while the PR is not merged and we

[issue8036] raise ValueError for empty `path` in os.spawnv[e]

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

[issue31447] proc communicate not exiting on python subprocess timeout using PIPES

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

[issue11361] [Windows] suggestion for os.kill(pid, CTRL_C_EVENT) in tests

2021-03-08 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner title: suggestion for os.kill(pid,CTRL_C_EVENT) in tests -> [Windows] suggestion for os.kill(pid,CTRL_C_EVENT) in tests ___ Python tracker

[issue28708] Low FD_SETSIZE limit on Windows

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

[issue43359] Dead assignment in Py_UniversalNewlineFgets

2021-03-08 Thread STINNER Victor
STINNER Victor added the comment: > c = 'x'; /* Shut up gcc warning */ IMHO this code is fine and should be kept. I hate fighting against stupid false alarms of compiler warnings. This code is harmless. It doesn't affect performances or anything. I suggest to close this issue and its

[issue43359] Dead assignment in Py_UniversalNewlineFgets

2021-03-08 Thread Alex Henrie
Alex Henrie added the comment: Hi Victor, just so we're all on the same page, removing the line does not trigger a compiler warning. The comment on this line is misleading. -- ___ Python tracker

[issue43427] Possible error on the descriptor howto guide

2021-03-08 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43359] Dead assignment in Py_UniversalNewlineFgets

2021-03-08 Thread STINNER Victor
STINNER Victor added the comment: > Hi Victor, just so we're all on the same page, removing the line does not > trigger a compiler warning. The comment on this line is misleading. I wrote the opposite. IMO the line and its commment should be kept. > Defect identified by scan-build >

[issue43438] [doc] sys.addaudithook() documentation should be more explicit on its limitations

2021-03-08 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-43439: [security] Add audit events on GC functions giving access to all Python objects. -- ___ Python tracker ___

[issue43439] [security] Add audit events on GC functions giving access to all Python objects

2021-03-08 Thread STINNER Victor
New submission from STINNER Victor : It is currently possible to discover the internal list of audit hooks using gc module functions, like gc.get_objects(), and so remove an audit hooks, whereas it is supposed to not be possible. The PEP 578 states: "Hooks cannot be removed or replaced."

[issue43439] [security] Add audit events on GC functions giving access to all Python objects

2021-03-08 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Rather than attempting to fix this specific vulnerability, I suggest to add > new audit events on the following gc functions: Makes sense, I will prepare a PR today -- ___ Python tracker

[issue28356] [easy doc] Document os.rename() behavior on Windows when src and dst are on different filesystems

2021-03-08 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +easy, newcomer friendly title: Windows: os.rename different in python 2.7.12 and python 3.5.2 -> [easy doc] Document os.rename() behavior on Windows when src and dst are on different filesystems ___ Python

[issue28356] [easy doc] Document os.rename() behavior on Windows when src and dst are on different filesystems

2021-03-08 Thread STINNER Victor
STINNER Victor added the comment: This issue is now a matter of *documenting* the Windows behavior. Is there any volunteer to propose a PR? -- ___ Python tracker ___

[issue25585] Bad path leads to: ImportError: DLL load failed: %1 is not a valid Win32 application.

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

[issue43437] venv activate bash script has wrong line endings on windows

2021-03-08 Thread Eryk Sun
Eryk Sun added the comment: venv copies the scripts in binary mode, but apparently the Unix "activate" script already has CRLF line endings when Python is installed in Windows. Probably the POSIX "Lib/venv/scripts/common/activate" script needs a line-ending exception in ".gitattributes":

[issue13559] Use sendfile where possible in httplib

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

[issue43438] [doc] sys.addaudithook() documentation should be more explicit on its limitations

2021-03-08 Thread STINNER Victor
New submission from STINNER Victor : Recently, the PEP 578 audit hooks was used to build a Capture The Flag (CTF) security challenge, AntCTF x D^3CTF: https://d3ctf.io/ Multiple issues have been reported to the Python Security Response Team (PSRT) from this challenge. It seems like there was

[issue43438] [doc] sys.addaudithook() documentation should be more explicit on its limitations

2021-03-08 Thread Steve Dower
Steve Dower added the comment: To clarify my position on this (as the PEP author): * audit hooks added *after* initialization (including via the Python API) are not intended for security, but for logging/debugging, and so bypasses are not considered security issues * audit hooks added

[issue14678] Update zipimport to support importlib.invalidate_caches()

2021-03-08 Thread miss-islington
miss-islington added the comment: New changeset 3abf6f010243a91bf57cbf357dac33193f7b8407 by Desmond Cheong in branch 'master': bpo-14678: Update zipimport to support importlib.invalidate_caches() (GH-24159) https://github.com/python/cpython/commit/3abf6f010243a91bf57cbf357dac33193f7b8407

[issue28356] [easy doc] Document os.rename() behavior on Windows when src and dst are on different filesystems

2021-03-08 Thread T-VEy
T-VEy added the comment: i have problem with python version 3.9.1 -- nosy: +scienidlex versions: -Python 3.10, Python 3.8 ___ Python tracker ___

[issue14678] Update zipimport to support importlib.invalidate_caches()

2021-03-08 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue14678] Update zipimport to support importlib.invalidate_caches()

2021-03-08 Thread Brett Cannon
Change by Brett Cannon : -- versions: +Python 3.10 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42962] Windows: SystemError during os.kill(..., signal.CTRL_C_EVENT)

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

[issue19809] Doc: subprocess should warn uses on race conditions when multiple threads spawn child processes

2021-03-08 Thread Eryk Sun
Eryk Sun added the comment: >> PEP 443 > > I guess that you mean the PEP 446 ;-) Yes, that's why I meant :$ -- ___ Python tracker ___

[issue43427] Possible error on the descriptor howto guide

2021-03-08 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +23553 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24787 ___ Python tracker

[issue43427] Possible error on the descriptor howto guide

2021-03-08 Thread Kamil Turek
Kamil Turek added the comment: I think there isn't any error. Please look at the example provided in the guide: class E: @staticmethod def f(x): print(x) >>> E.f(3) 3 If it were as you say, method would receive two arguments - f(E, 3) - which is wrong. -- nosy:

[issue8304] time.strftime() and Unicode characters on Windows

2021-03-08 Thread Eryk Sun
Eryk Sun added the comment: > I'm not sure of what you mean. The function is implemented: My comment was limited to Windows, for which time.tzset() has never been implemented. Since Python has its own implementation of time.tzname in Windows, it should also implement time.tzset() to allow

[issue19809] Doc: subprocess should warn uses on race conditions when multiple threads spawn child processes

2021-03-08 Thread STINNER Victor
STINNER Victor added the comment: > PEP 443 I guess that you mean the PEP 446 ;-) -- ___ Python tracker ___ ___ Python-bugs-list

[issue43271] AMD64 Windows10 3.x crash with Windows fatal exception: stack overflow

2021-03-08 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the fix David Bolen ;-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43233] test_os: test_copy_file_range_offset fails on FreeBSD CURRENT

2021-03-08 Thread STINNER Victor
STINNER Victor added the comment: It was a FreeBSD kernel bug. Kubilay Kocak reported it to Rick Macklem who fixed the FreeBSD kernel: https://github.com/freebsd/freebsd-src/commit/a5f9fe2bab789f49e8b53da3a62dbd34725e23ea -- ___ Python tracker

[issue43427] Possible error on the descriptor howto guide

2021-03-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: I can see how that section intro is a bit confusing. Am thinking it will be more clear if the heading "Static Methods" is to moved to just after the table showing the three variants. Otherwise, it looks like the intro text is talking specifically about

[issue10653] test_time test_strptime fails on windows

2021-03-08 Thread Eryk Sun
Eryk Sun added the comment: > Eryk Sun: This issue is now closed. If you want to enhance > the time module, please open a new issue. I was aware of that at the time, Victor. The problem can be worked on in a new issue, or in the older issue bpo-8304, which remains open. The two messages

[issue37146] opcode cache for LOAD_GLOBAL emits false alarm in memory leak hunting

2021-03-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23552 pull_request: https://github.com/python/cpython/pull/24786 ___ Python tracker ___

[issue27496] unicodedata.name() doesn't have names for control characters

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

[issue28356] [easy doc] Document os.rename() behavior on Windows when src and dst are on different filesystems

2021-03-08 Thread Eryk Sun
Eryk Sun added the comment: T-VEy, this is a documentation-only issue for versions of Python that are under active development for bug fixes and enhancements -- 3.8, 3.9, and 3.10. -- versions: +Python 3.10, Python 3.8 ___ Python tracker

[issue38033] Use After Free: PyObject_Free (valgrind)

2021-03-08 Thread STINNER Victor
STINNER Victor added the comment: It sounds like the reporter didn't use Valgrind properly. See last comments. If Valgrind still reports issues when it's used properly, please reopen the issue (or open a new issue). I close the issue for now. -- resolution: -> not a bug stage: ->

[issue43439] [security] Add audit events on GC functions giving access to all Python objects

2021-03-08 Thread Christian Heimes
Christian Heimes added the comment: > Note: if someone wants to address the ability to remove an audit hook, the > internal list can be modified to not be a Python object. I wouldn't bother. There are other ways to modify data structures, e.g. poke into process memory. --

[issue43435] Py_BuildValue("y#".... returns incomplete result

2021-03-08 Thread David Wood
David Wood added the comment: Christian - Thank you for this. I did as you suggested however, I still have the same problem. As I pointed out in my original message, the problem does not exist if I insert a sleep(1) statement prior to returning from the function. Additional to that, I

[issue43435] Py_BuildValue("y#".... returns incomplete result

2021-03-08 Thread Christian Heimes
Christian Heimes added the comment: Py_BuildValue("y#", output, count) is equivalent to PyBytes_FromStringAndSize(output, count). The function returns a copy of the input string as a new bytes object. It's very unlikely that the code is broken. It's been around for ages and it's a core

[issue43382] github CI blocked by the Ubuntu CI with an SSL error

2021-03-08 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43321] PyArg_ParseTuple() false-returns SUCCESS though SystemError and missing data (when PY_SSIZE_T_CLEAN not #define'd)

2021-03-08 Thread STINNER Victor
STINNER Victor added the comment: Thanks for fixing my bug ;-) (bpo-40943) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue29982] tempfile.TemporaryDirectory fails to delete itself

2021-03-08 Thread C.A.M. Gerlach
Change by C.A.M. Gerlach : -- keywords: +patch pull_requests: +23560 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24793 ___ Python tracker ___

[issue25024] Allow passing "delete=False" to TemporaryDirectory

2021-03-08 Thread C.A.M. Gerlach
Change by C.A.M. Gerlach : -- pull_requests: +23561 pull_request: https://github.com/python/cpython/pull/24793 ___ Python tracker ___

[issue43439] [security] Add audit events on GC functions giving access to all Python objects

2021-03-08 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +23562 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24794 ___ Python tracker

[issue29982] tempfile.TemporaryDirectory fails to delete itself

2021-03-08 Thread C.A.M. Gerlach
C.A.M. Gerlach added the comment: Thanks! Submitted as PR #24793 https://github.com/python/cpython/pull/24793 -- ___ Python tracker ___

[issue43440] Enable rtree support in SQLite

2021-03-08 Thread Steve Dower
Change by Steve Dower : -- nosy: +ghaering ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43440] Enable rtree support in SQLite

2021-03-08 Thread Steve Dower
New submission from Steve Dower : I heard [1] that rtree support would be very useful in SQLite. We should see whether enabling it is safe/easy/cheap and then do it. 1: https://twitter.com/Jamieallencook/status/1368221499794976775?s=20 -- components: Build, Library (Lib), Windows

[issue43438] [doc] sys.addaudithook() documentation should be more explicit on its limitations

2021-03-08 Thread Christian Heimes
Christian Heimes added the comment: I agree with both of you. The documention should explicitly state that the audit hooks are for auditing. They are not designed to sandbox Python. When used correctly, they can help to capture and analyze an event post-mortem. The documentation of

[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: I only ported this back to 3.9 as it is a bit late in 3.8's release cycle for a pure performance fix of an issue that has been around for ages. Thanks for raising the issue. The main http code already did this, the tunnel proxy code path clearly hadn't

[issue37146] opcode cache for LOAD_GLOBAL emits false alarm in memory leak hunting

2021-03-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9f672a52f55ce198d5689b5771948350028b4a3b by Victor Stinner in branch 'master': bpo-37146: Move _PyEval_DeactivateOpCache() to the internal C API (GH-24786) https://github.com/python/cpython/commit/9f672a52f55ce198d5689b5771948350028b4a3b

[issue43245] Add keyword argument support to ChainMap.new_child()

2021-03-08 Thread Kamil Turek
Change by Kamil Turek : -- keywords: +patch pull_requests: +23554 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24788 ___ Python tracker ___

[issue43438] [doc] sys.addaudithook() documentation should be more explicit on its limitations

2021-03-08 Thread STINNER Victor
STINNER Victor added the comment: Another example of recent Capture The Flag challenge which used audit hooks: https://bugs.python.org/issue42800#msg384143 -- ___ Python tracker

[issue43415] Typo

2021-03-08 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 3.0 -> 4.0 pull_requests: +23555 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24789 ___ Python tracker

[issue43415] Typo

2021-03-08 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +23557 pull_request: https://github.com/python/cpython/pull/24790 ___ Python tracker

[issue43415] Typo

2021-03-08 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 0554044ddccdb7bf1fa4a8bc880e7a7b59f6479c by Guilherme Martins Crocetti in branch 'master': bpo-43415: Fix typo on dataclasses.rst (#24789) https://github.com/python/cpython/commit/0554044ddccdb7bf1fa4a8bc880e7a7b59f6479c --

[issue43415] Typo

2021-03-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +23558 pull_request: https://github.com/python/cpython/pull/24791 ___ Python tracker ___

[issue43332] Make http.client._tunnel send one byte string over the network

2021-03-08 Thread Senthil Kumaran
Change by Senthil Kumaran : -- stage: commit review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43415] Typo in dataclasses documentation

2021-03-08 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset fb3b0310305acdfad7c26705c2ee9a8712a43cf4 by Miss Islington (bot) in branch '3.9': bpo-43415: Fix typo on dataclasses.rst (GH-24789) (GH-24790) https://github.com/python/cpython/commit/fb3b0310305acdfad7c26705c2ee9a8712a43cf4 --

[issue43415] Typo in dataclasses documentation

2021-03-08 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 6d4273356764a3837c914b2aced7a668c534e0be by Miss Islington (bot) in branch '3.8': bpo-43415: Fix typo on dataclasses.rst (GH-24789) (GH-24791) https://github.com/python/cpython/commit/6d4273356764a3837c914b2aced7a668c534e0be --

[issue43415] Typo in dataclasses documentation

2021-03-08 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue3329] API for setting the memory allocator used by Python

2021-03-08 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23563 pull_request: https://github.com/python/cpython/pull/24795 ___ Python tracker ___

[issue43435] Py_BuildValue("y#".... returns incomplete result

2021-03-08 Thread David Wood
David Wood added the comment: Still no bueno. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43422] Revert _decimal C API changes

2021-03-08 Thread Antoine Pitrou
Change by Antoine Pitrou : -- keywords: +patch pull_requests: +23559 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24792 ___ Python tracker ___

[issue43415] Typo in dataclasses documentation

2021-03-08 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: docs@python -> eric.smith title: Typo -> Typo in dataclasses documentation ___ Python tracker ___

[issue33955] Implement PyOS_CheckStack on macOS using pthread_get_stack*_np

2021-03-08 Thread STINNER Victor
STINNER Victor added the comment: See also https://www.python.org/dev/peps/pep-0651/ -- ___ Python tracker ___ ___

[issue43439] [security] Add audit events on GC functions giving access to all Python objects

2021-03-08 Thread Steve Dower
Steve Dower added the comment: Thanks, Pablo! Nice patch. This can be backported, btw. New audit events are allowed to be added in minor releases (they just cannot be changed). -- versions: +Python 3.8, Python 3.9 ___ Python tracker

[issue41361] Converting collections.deque methods to Argument Clinic

2021-03-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: Go ahead with in-lining the argument handling for rotate(). The no argument form and the +1 and the -1 case are important enough to warrant the change. Please skip index() and insert() which aren't essential methods. Also, those methods aren't called

[issue35118] Add peek() or first() method in queue

2021-03-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I want to examine the first (oldest) element in queue and > remove it if it's too old. Why not just dismiss older queue entries during a normal get() operation? Or just use a plain deque with access guarded by a lock. FWIW, the standard library queue

[issue28356] [easy doc] Document os.rename() behavior on Windows when src and dst are on different filesystems

2021-03-08 Thread T-VEy
T-VEy added the comment: Eryk, can you please go on details on how are they using different strategies to fix bugs but still it's not enough for the time being?Because I know nothing about python and I recognized it in a minute of opening the files.I don't even have it installed on my pc.I

  1   2   >