[issue14003] __self__ on built-in functions is not as documented

2012-02-13 Thread Роман Донченко
New submission from Роман Донченко dxdra...@yandex.ru: The language reference says this in section 3.2: ~ Built-in functions A built-in function object is a wrapper around a C function. Examples of built-in functions are len() and math.sin() ... Special read-only attributes: ... __self__

[issue14023] bytes implied to be mutable

2012-02-15 Thread Роман Донченко
New submission from Роман Донченко dxdra...@yandex.ru: The language reference in section 5.2.2 states: ~ With the exception of bytes literals, these all correspond to immutable data types, ... ~ But bytes objects are immutable as well. -- assignee: docs@python components

[issue17088] ElementTree incorrectly refuses to write attributes without namespaces when default_namespace is used

2018-11-23 Thread Роман Донченко
Change by Роман Донченко : -- nosy: +SpecLad ___ Python tracker <https://bugs.python.org/issue17088> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31405] shutil.which doesn't find files without PATHEXT extension on Windows

2019-08-27 Thread Роман Донченко
Change by Роман Донченко : -- nosy: +SpecLad ___ Python tracker <https://bugs.python.org/issue31405> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35964] shutil.make_archive (xxx, tar, root_dir) is adding './' entry to archive which is wrong

2019-08-27 Thread Роман Донченко
Change by Роман Донченко : -- nosy: +SpecLad ___ Python tracker <https://bugs.python.org/issue35964> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24505] shutil.which wrong result on Windows

2019-08-27 Thread Роман Донченко
Change by Роман Донченко : -- nosy: +SpecLad ___ Python tracker <https://bugs.python.org/issue24505> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37894] [win] shutil.which can not find the path if 'cmd' include directory path and not include extension name

2019-08-27 Thread Роман Донченко
Change by Роман Донченко : -- nosy: +SpecLad ___ Python tracker <https://bugs.python.org/issue37894> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38888] Popen should use pidfd_open to implement a non-busy wait

2019-11-21 Thread Роман Донченко
Роман Донченко added the comment: Right, of course. I keep confusing it with timerfd_create. -- title: Popen should use pidfd_create to implement a non-busy wait -> Popen should use pidfd_open to implement a non-busy wait ___ Python tracker <

[issue38888] Popen should use pidfd_create to implement a non-busy wait

2019-11-21 Thread Роман Донченко
New submission from Роман Донченко : Popen.wait(timeout) is currently implemented on Unix-like systems using a busy wait, since the waitpid system call doesn't have a timeout argument. On Linux, it's now possible to do better than that. You can create a PID file descriptor using pidfd_create

[issue38630] subprocess.Popen.send_signal() should poll the process

2019-12-09 Thread Роман Донченко
Роман Донченко added the comment: > What you do is split 'wait' into two parts: first it waits for me process to > become reapable without actually reaping it. On Linux you can do this with > waitid+WNOWAIT. On kqueue platforms you can do it with kqueue. > Then, you take a l

[issue38630] subprocess.Popen.send_signal() should poll the process

2019-12-09 Thread Роман Донченко
Роман Донченко added the comment: > I'm pretty sure you mean WNOWAIT, right? Right. > revalidate pid licenses What does this mean? > I think we can patch up this last race condition by adding yet one more lock Wouldn't it be sufficient to add if self.returncode is not None:

[issue45465] logging messages are needlessly reformatted for every handler

2021-10-13 Thread Роман Донченко
New submission from Роман Донченко : Consider this code: ``` import logging class MyLogRecord(logging.LogRecord): def getMessage(self): print("Help! I am being formatted!") return super().getMessage() logging.setLogRecordFactory(MyLogRecord) logger = logging

[issue45465] logging messages are needlessly reformatted for every handler

2021-10-15 Thread Роман Донченко
Роман Донченко added the comment: But message formatting is controlled by the record, not by the handler. The same record will always be formatted the same way (assuming that getMessage is deterministic, which seems like a fair assumption