Akos Kiss added the comment:
I've come up with some extra examples (use cases?):
```py
import collections
class str2(str):
def format(self, *args, **kwargs):
return super().format(*args, **kwargs)
def unpacknonekey(s):
print('input:', type(s), s)
try:
Akos Kiss added the comment:
I couldn't find any discussion in the language reference about fundamental
differences between calls to built-in functions and user-defined functions. (I
tried to read Sections 6.3.4. "Calls" and 8.6. "Function definitions"
carefu
Akos Kiss added the comment:
Re: Eric
I had a code where `'sometemplate'.format()` got a dictionary from outside (as
a parameter, not from `locals()`), and that dictionary had `None` as a key.
Actually, I wasn't even aware of that `None` key until I tried to execute the
sa
New submission from Akos Kiss :
My understanding was that in function calls, the keys in an **expression had to
be strings. However, str.format seems to deviate from that and allows
non-string keys in the mapping (and silently ignores them).
Please, see the transcript below:
>>&
Akos Kiss added the comment:
And I thought that my analysis was thorough... Exit code 1 is the way to go, I
agree now.
--
___
Python tracker
<https://bugs.python.org/issue31
Akos Kiss added the comment:
A follow-up: in addition to `taskkill`, I've taken a look at another "official"
way for killing processes, the `Stop-Process` PowerShell cmdlet
(https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/stop-process?view
Akos Kiss added the comment:
`taskkill /F` sets exit code to 1, indeed. (Confirmed by experiment. Cannot
find this behaviour documented, though.)
On the other hand, MS Docs state
(https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/signal#remarks)
that termination by a signal
New submission from Akos Kiss :
I've been working with various approaches for running and terminating
subprocesses on Windows and I've obtained surprisingly different results if I
used different modules and ways of termination. Here is the script I wrote, it
uses the `subproces