[issue17005] Add a topological sort algorithm

2020-05-31 Thread gaborbernat
gaborbernat added the comment: I like graphutils for what it's worth. -- ___ Python tracker <https://bugs.python.org/issue17005> ___ ___ Python-bugs-list mailin

[issue40726] ast.Call end_lineno is defined and returns None

2020-05-22 Thread gaborbernat
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_lineno

[issue40536] Addition of a "list of available time zones" function to zoneinfo

2020-05-17 Thread gaborbernat
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

[issue40615] unstable behaviour for options in argparse

2020-05-13 Thread gaborbernat
gaborbernat added the comment: I did not, nm then. Thanks for the link. -- ___ Python tracker <https://bugs.python.org/issue40615> ___ ___ Python-bugs-list m

[issue40615] unstable behaviour for options in argparse

2020-05-13 Thread gaborbernat
Change by gaborbernat : -- title: argparse -> unstable behaviour for options in argparse ___ Python tracker <https://bugs.python.org/issue40615> ___ ___ Py

[issue40615] argparse

2020-05-13 Thread gaborbernat
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("-

[issue25625] "chdir" Contex manager for pathlib

2020-05-02 Thread gaborbernat
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: +gaborbernat

[issue40335] Regression in multiline SyntaxError offsets

2020-04-19 Thread gaborbernat
Change by gaborbernat : -- nosy: +gaborbernat ___ Python tracker <https://bugs.python.org/issue40335> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40238] os.stat() on Windows succeeds for nonexistent paths with trailing spaces

2020-04-10 Thread gaborbernat
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

[issue39675] forked process in multiprocessing does not honour atexit

2020-02-18 Thread gaborbernat
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_method import

[issue17005] Add a topological sort algorithm

2020-01-17 Thread gaborbernat
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

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-01-16 Thread gaborbernat
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

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-01-16 Thread gaborbernat
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

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-01-16 Thread gaborbernat
Change by gaborbernat : -- nosy: +pablogsal ___ Python tracker <https://bugs.python.org/issue39360> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-01-16 Thread gaborbernat
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

[issue37369] Issue with pip in venv on Powershell in Windows

2019-07-08 Thread gaborbernat
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

[issue21822] KeyboardInterrupt during Thread.join hangs that Thread

2019-03-13 Thread gaborbernat
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/issue21