[issue33944] Deprecate and remove pth files

2019-12-28 Thread Michel Desmoulin
Michel Desmoulin added the comment: Just realized it didn't work in venv anyway. -- ___ Python tracker <https://bugs.python.org/issue33944> ___ ___ Python-bug

[issue33944] Deprecate and remove pth files

2019-12-27 Thread Michel Desmoulin
Michel Desmoulin added the comment: Can usercustomize.py be used as an alternative to "*.pth" execution magic ? -- nosy: +Michel Desmoulin ___ Python tracker <https://bugs.python.o

[issue20443] __code__. co_filename should always be an absolute path

2019-10-21 Thread Michel Desmoulin
Michel Desmoulin added the comment: The relevance of the use case isn't the problem. Even if people had been using it wrong for all this time, the update is still going to break their code if they did use it this way. And if it was possible, of course many people did. 3.7 already broke a few

[issue20443] __code__. co_filename should always be an absolute path

2019-10-18 Thread Michel Desmoulin
Michel Desmoulin added the comment: Isn't that change breaking compat ? I'm assuming many scripts in the wild sys.argv[0] and play with it assuming it's relative. I would expect such a change to be behind a flag or a __future__ import. -- nosy: +Michel Desmoulin

[issue26455] Inconsistent behavior with KeyboardInterrupt and asyncio futures

2016-02-28 Thread Michel Desmoulin
New submission from Michel Desmoulin: If you trigger KeyboardInterrupt in a coroutine and catch it, the program terminates cleanly: import asyncio async def bar(): raise KeyboardInterrupt loop = asyncio.get_event_loop() try: loop.run_until_complete(bar()) except KeyboardInterrupt

[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

2016-02-15 Thread Michel Desmoulin
Michel Desmoulin added the comment: We fixed our bug days ago, but I would have expected [*gen] to have triggered an exception before it even got to gather(). The real code was something like: >>> l = (ensure_awaitable(callable_obj) for callable_obj in callable_list) >