[issue43869] Fix documentation of epoch/time.time

2021-04-16 Thread Ofek Lev
New submission from Ofek Lev : The descriptions for the following: - https://docs.python.org/3/library/time.html#epoch - https://docs.python.org/3/library/time.html#time.time indicate that it is platform dependent. However, that is likely untrue. See the brief discussion here: https

[issue18617] AIA chasing for missing intermediate certificates on TLS connections

2021-02-02 Thread Ofek Lev
Ofek Lev added the comment: Any update on this? -- nosy: +Ofekmeister ___ Python tracker <https://bugs.python.org/issue18617> ___ ___ Python-bugs-list mailin

[issue42965] Optional callable raises TypeError

2021-01-19 Thread Ofek Lev
Ofek Lev added the comment: Ah I see, thanks! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue42965] Optional callable raises TypeError

2021-01-19 Thread Ofek Lev
Ofek Lev added the comment: I'm using the deprecated typing.Callable instead now and that works -- ___ Python tracker <https://bugs.python.org/is

[issue42965] Optional callable raises TypeError

2021-01-19 Thread Ofek Lev
New submission from Ofek Lev : https://docs.python.org/3.9/library/typing.html#callable ``` Python 3.9.1 (default, Jan 12 2021, 16:45:25) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from typin

[issue33240] shutil.rmtree fails if inner folder is open in Windows Explorer

2020-04-04 Thread Ofek Lev
Ofek Lev added the comment: > For convenience, a handler that retries unlink() and rmdir() could be > distributed with shutil. For ease of use, it could be enabled by default on > Windows. Any update on that? I just spent a bunch of time debugging this on Windows. --

[issue36258] Incorrect docstring of the ssl module

2019-03-10 Thread Ofek Lev
New submission from Ofek Lev : The docstring refers to the function `fetch_server_certificate` that no longer exists. Context from https://github.com/python/cpython/pull/12168#issuecomment-469488585: """ In the commit on 8/28/2007, the ssl.py module was first added and it

[issue33245] Unable to send CTRL_BREAK_EVENT

2018-04-08 Thread Ofek Lev
New submission from Ofek Lev : Vault (https://github.com/hashicorp/vault) requires the use of signals to trigger certain output https://www.vaultproject.io/docs/internals/telemetry.html. The required signal isn't sent on py2.7: >>> import os >>> import signal

[issue20849] add exist_ok to shutil.copytree

2017-08-01 Thread Ofek Lev
Changes by Ofek Lev : -- pull_requests: +3020 ___ Python tracker <http://bugs.python.org/issue20849> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30783] Spawned subprocesses don't respect environment

2017-06-26 Thread Ofek Lev
Ofek Lev added the comment: Fixed with shell=True -- ___ Python tracker <http://bugs.python.org/issue30783> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30783] Spawned subprocesses don't respect environment

2017-06-26 Thread Ofek Lev
New submission from Ofek Lev: The following example shows that we are indeed changing PATH, but the subprocess does not acknowledge it in Windows 7 x64. Also note this works in Linux (Ubuntu 16.04). - import os import subprocess from contextlib import contextmanager from tempfile import

[issue28553] int.to_bytes docs logic error

2016-10-28 Thread Ofek Lev
New submission from Ofek Lev: https://docs.python.org/3/library/stdtypes.html#int.to_bytes To convert an int to the exact number of bytes required, the docs recommend "x.to_bytes((x.bit_length() // 8) + 1, ...)". This is incorrect when length is a multiple of 8, e.g. 296. The corr

[issue8800] add threading.RWLock

2016-09-06 Thread Ofek Lev
Ofek Lev added the comment: What is the status of the patch? -- nosy: +Ofekmeister ___ Python tracker <http://bugs.python.org/issue8800> ___ ___ Python-bugs-list m