Роман Донченко 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
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
Роман Донченко 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 n
Роман Донченко 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 t
Роман Донченко 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
<
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 pi
Change by Роман Донченко :
--
nosy: +SpecLad
___
Python tracker
<https://bugs.python.org/issue35964>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Роман Донченко :
--
nosy: +SpecLad
___
Python tracker
<https://bugs.python.org/issue31405>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Роман Донченко :
--
nosy: +SpecLad
___
Python tracker
<https://bugs.python.org/issue24505>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Роман Донченко :
--
nosy: +SpecLad
___
Python tracker
<https://bugs.python.org/issue37894>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Роман Донченко :
--
nosy: +SpecLad
___
Python tracker
<https://bugs.python.org/issue17088>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Роман Донченко :
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: Documentation
me
New submission from Роман Донченко :
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__ is
13 matches
Mail list logo