New submission from gaborbernat :
Assume the following code:
```python
from multiprocessing.pool import ThreadPool
class A(object):
def __init__(self):
self.pool = ThreadPool()
def __del__(self):
self.pool.close()
self.pool.join()
a = A()
print(a)
```
The code
Change by gaborbernat :
--
nosy: +pablogsal
___
Python tracker
<https://bugs.python.org/issue39360>
___
___
Python-bugs-list mailing list
Unsubscribe:
gaborbernat added the comment:
An FYI update, the code is used by swagger-codegen to generate HTTP clients
(https://github.com/swagger-api/swagger-codegen/blob/master/modules/swagger-codegen/src/main/resources/python/api_client.mustache#L73).
The example below basically replicates creating
gaborbernat added the comment:
Reported the issue downstream too under
https://github.com/swagger-api/swagger-codegen/issues/9991
--
___
Python tracker
<https://bugs.python.org/issue39
gaborbernat added the comment:
I think the new interface feeds better for usage in both sequential or parallel
workflows, which means we can use a single UI for both, so 👍 from myself
--
nosy: +gaborbernat
___
Python tracker
<ht
New submission from gaborbernat :
I've talked with Pablo about this in person, and as advised opening the issue
here now.
I've discovered that forked processes do not honour atexit registrations. See
the following example code:
from multiprocessing import Process, set_start_met
gaborbernat added the comment:
While I agree that Windows is safe to transform paths as he wishes to, the bug
reported here is that os.stat/os.path.isdir behaves differently than
os.scandir. Can we make them behave the same?
--
nosy: +gaborbernat
Change by gaborbernat :
--
nosy: +gaborbernat
___
Python tracker
<https://bugs.python.org/issue40335>
___
___
Python-bugs-list mailing list
Unsubscribe:
gaborbernat added the comment:
So moving way from subprocess.Process; what about having this for other use
cases? I know there is no thread-safe way to get this working, given it's a
process state variable. However, can we have it as a non-thread-safe feature?
--
nosy: +gaborb
New submission from gaborbernat :
Consider the following code:
from argparse import ArgumentParser
parser = ArgumentParser()
parser.add_argument("--clear-magic", action="store_true")
print(parser.parse_args(["--clear"]))
parser.add_argument("-
Change by gaborbernat :
--
title: argparse -> unstable behaviour for options in argparse
___
Python tracker
<https://bugs.python.org/issue40615>
___
___
Py
gaborbernat added the comment:
I did not, nm then. Thanks for the link.
--
___
Python tracker
<https://bugs.python.org/issue40615>
___
___
Python-bugs-list m
gaborbernat added the comment:
I think semantically the correct expression would be available timezones, free
function, set and no cache. Document the operation is expensive and users
should cache if they want repeated access or provide an available timezones
cached function 👍 my 2c
New submission from gaborbernat :
Reporting an issue from https://github.com/xonsh/xonsh/issues/3581; boils down
to, ast.Call used to not define end_lineno in 3.8:
py -3.8 -c 'import ast; type(ast.Call().end_l
gaborbernat added the comment:
I like graphutils for what it's worth.
--
___
Python tracker
<https://bugs.python.org/issue17005>
___
___
Python-bugs-list m
gaborbernat added the comment:
A note on the above points, virtualenv has started migrating over to venv via
https://github.com/pypa/virtualenv/pull/1377 . Following this, the old ways of
virtualenv should be left to the history books. Hopefully, I can get it out
within the next month or so
gaborbernat added the comment:
I think I'm hitting this with subprocesses inside tox (parallel feature), any
plans to fix this?
--
nosy: +gaborbernat
___
Python tracker
<https://bugs.python.org/is
17 matches
Mail list logo