[issue33944] Deprecate and remove pth files

2019-01-15 Thread Chris Billington
Chris Billington added the comment: > Linux distros approach to handling this is terrible because they dump all > their system packages into a single global site-packages, leading to the > every growing sys.path problem that Barry is concerned about. > However, that's entire

[issue33944] Deprecate and remove pth files

2019-01-08 Thread Chris Billington
Chris Billington added the comment: I develop analysis software for physics research, in which the user analyses their data using Python that they write themselves (my application functions as a kind of scheduler for when the analysis scripts should run and with what input). This software

[issue33944] Deprecate and remove pth files

2019-01-13 Thread Chris Billington
Chris Billington added the comment: coverage.py's documentation mentions: > The sitecustomize.py technique is cleaner, but may involve modifying an > existing sitecustomize.py, since there can be only one. If there is no > sitecustomize.py already, you can create it in any

[issue35935] threading.Event().wait() not interruptable with Ctrl-C on Windows

2019-02-07 Thread Chris Billington
Chris Billington added the comment: If I add: import signal signal.signal(signal.SIGINT, signal.SIG_DFL) before the wait() call, then the call is interruptible on both Python versions without needing to add a timeout. -- ___ Python tracker

[issue35935] threading.Event().wait() not interruptable with Ctrl-C on Windows

2019-02-07 Thread Chris Billington
New submission from Chris Billington : I'm experiencing that the following short program: import threading event = threading.Event() event.wait() Cannot be interrupted with Ctrl-C on Python 2.7.15 or 3.7.1 on Windows 10 (using the Anaconda Python distribution). However, if the wait is given

[issue38937] NameError in list comprehension within .pth file

2019-11-28 Thread Chris Billington
Chris Billington added the comment: I see. site.py calls exec() from within a function, and therefore the code is executed in the context of that function's locals and the site module globals. This means the code in .pth files can access (but not add new) local names from

[issue38937] NameError in list comprehension within .pth file

2019-11-29 Thread Chris Billington
Chris Billington added the comment: Sorry for the spamming, realised I misunderstood further. The original behaviour isn't because the exec'd code can't create new local variables - it can - it's because of the documented behaviour of exec when it gets different dicts for globals and locals

[issue38937] NameError in list comprehension within .pth file

2019-11-28 Thread Chris Billington
New submission from Chris Billington : The following one-liner works fine in a regular Python interpreter: $ python -c 'import sys; x = 5; [print(x + i) for i in range(5)]' 5 6 7 8 9 But in a .pth file, it raises a NameError: $ echo 'import sys; x = 5; [print(x + i) for i in range(5

[issue40377] APPDATA

2020-05-14 Thread Chris Billington
Change by Chris Billington : -- title: APPDATA location in Microsoft Store version -> APPDATA ___ Python tracker <https://bugs.python.org/issue40377> ___ _

[issue40377] APPDATA location in Microsoft Store version

2020-05-14 Thread Chris Billington
Change by Chris Billington : -- title: APPDATA -> APPDATA location in Microsoft Store version ___ Python tracker <https://bugs.python.org/issue40377> ___ _