[issue46336] Sixth element of tuple from __reduce__(), inconsistency between pickle and copy

2022-01-10 Thread Lev Bishop
New submission from Lev Bishop : As discussed in discord thread https://discuss.python.org/t/sixth-element-of-tuple-from-reduce-inconsistency-between-pickle-and-copy/12902 where guido suggested to open this issue. Both the pickle and copy modules of the standard library make use of a class’s

[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

[issue33841] lock not released in threading.Condition

2018-06-11 Thread Lev Maximov
New submission from Lev Maximov : In `Condition.wait()` the `waiter` lock gets acquired twice, but is released only once (both in timeout and no timeout cases). Is it intentional? -- components: Library (Lib) messages: 319365 nosy: lev.maximov priority: normal severity: normal status

[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

[issue28699] Imap from ThreadPool behaves unexpectedly

2016-11-15 Thread Lev Veshnyakov
Changes by Lev Veshnyakov : -- nosy: +davin ___ Python tracker <http://bugs.python.org/issue28699> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28699] Imap from ThreadPool behaves unexpectedly

2016-11-15 Thread Lev Veshnyakov
New submission from Lev Veshnyakov: Consider the following code: from multiprocessing.pool import ThreadPool pool = ThreadPool(10) def gen(): yield 1 + '1' # here is an error print(list(pool.imap(str, gen( # prints [] print(list(pool.map(str, gen( # raises Type

[issue28696] imap from ThreadPool hangs by an exception in a generator function

2016-11-15 Thread Lev Veshnyakov
Lev Veshnyakov added the comment: Yes, I'm free to move to 3.5, now I'm seeing isn't there any problems in 3.5 according to this issue. -- ___ Python tracker <http://bugs.pyt

[issue28696] imap from ThreadPool hangs by an exception in a generator function

2016-11-15 Thread Lev Veshnyakov
Lev Veshnyakov added the comment: It's hanging in a while loop in _handle_workers, /usr/lib/python3.4/multiprocessingpool.py:365. I can't figure out what is the reason. @staticmethod def _handle_workers(pool): thread = threading.current_thread() # Keep maintaining workers

[issue28696] imap from ThreadPool hangs by an exception in a generator function

2016-11-15 Thread Lev Veshnyakov
Lev Veshnyakov added the comment: I've reproduced it on 2 different machines: - on a MacBook in Docker (debian:jessie, python 3.4.2) - on another desktop (Ubuntu 14.04.1, 3.16.0-77-generic, x86_64, python 3.4.3) -- ___ Python tracker

[issue28696] imap from ThreadPool hangs by an exception in a generator function

2016-11-15 Thread Lev Veshnyakov
Lev Veshnyakov added the comment: So, I've checked twice, it's presented by me on python 3.4.3, and not by 3.5.2. So I will go deaper -- ___ Python tracker <http://bugs.python.o

[issue28696] imap from ThreadPool hangs by an exception in a generator function

2016-11-15 Thread Lev Veshnyakov
Lev Veshnyakov added the comment: Ubuntu 14.04 LTS, 3.13.0-83-generic, x86_64 -- ___ Python tracker <http://bugs.python.org/issue28696> ___ ___ Python-bugs-list m

[issue28696] imap from ThreadPool hangs by an exception in a generator function

2016-11-15 Thread Lev Veshnyakov
New submission from Lev Veshnyakov: It's only in imap, in map it's ok. The following code explains the issue: from multiprocessing.pool import ThreadPool pool = ThreadPool(10) def gen(): yield 1 + '1' # here is an error try: next((pool.imap(str, gen( e

[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

[issue26844] Wrong error message during import

2016-06-29 Thread Lev Maximov
Lev Maximov added the comment: Nevermind. It's not urgent but should definitely be fixed some day. Yes, __qualname__ might be a good idea. -- ___ Python tracker <http://bugs.python.org/is

[issue26844] Wrong error message during import

2016-04-24 Thread Lev Maximov
New submission from Lev Maximov: Error message was supposedly copy-pasted without change. Makes it pretty unintuinive to debug. Fix attached. -- components: Library (Lib) files: error.diff keywords: patch messages: 264157 nosy: Lev Maximov priority: normal severity: normal status: open

[issue21507] memory used by frozenset created from set differs from that of frozenset created from other iterable

2014-05-14 Thread Lev Givon
New submission from Lev Givon: Not sure if this is indicative of a bug, but I noticed that a frozenset created from a set seems to occupy a different amount of memory than a frozenset created from some other iterable. I observed this behavior with Python 2.7.5 and with Python 3.4.0 on Ubuntu

[issue2200] find_executable fails to find .bat files on win32

2010-09-20 Thread Lev Shamardin
Lev Shamardin added the comment: My use case was compiling PyQt4 resources and Qt Designer .ui files from setup script using pyrcc4 and pyuic4 commands. On windows pyrcc4 is actually a pyrcc4.bat file (at least it was at the time of the original bug submission - haven't checked cu

[issue5673] Add timeout option to subprocess.Popen

2009-12-15 Thread Lev Shamardin
Changes by Lev Shamardin : -- nosy: +abbot ___ Python tracker <http://bugs.python.org/issue5673> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6741] Garbage collector release method

2009-08-20 Thread Lev
Lev added the comment: I,m trying to develop this patch now, but I'm facing the challenge (wrong ref_count or list corruption in dict objects). If I can solve it, I publish patch here. -- ___ Python tracker <http://bugs.python.org/i

[issue6741] Garbage collector release method

2009-08-20 Thread Lev
New submission from Lev : WinCRT debug detects several memory leaks after calling py_Initialize (); py_Finalize(); functions. Most of them are garbage collector visible python's objects. I suggest to create "release" method in garbage collector which will distruct all obj

[issue2200] find_executable fails to find .bat files on win32

2008-03-03 Thread Lev Shamardin
Lev Shamardin added the comment: I can't see this issue on the 'open issues' list nor in the search results. Is something wrong? __ Tracker <[EMAIL PROTECTED]> <http://b

[issue2200] find_executable fails to find .bat files on win32

2008-03-02 Thread Lev Shamardin
Lev Shamardin added the comment: Here is my vision of this patch. I don't think that it is necessary to fall back to 'com/exe/bat' if PATHEXT is not set, since it must be set on any correctly configured Win32 platform. -- keywords: +patch Added file: http://bugs.pyth

[issue2200] find_executable fails to find .bat files on win32

2008-02-28 Thread Lev Shamardin
New submission from Lev Shamardin: distutils.spawn.find_executable appends '.exe' suffix on win32 and os2 platforms. This is incorrect behavior, since it prevents finding .bat, .cmd and other similar files. Ether all extensions from the %PATHEXT% must be checked or filenames both wit