Change by Chris Billington :
--
title: APPDATA -> APPDATA location in Microsoft Store version
___
Python tracker
<https://bugs.python.org/issue40377>
___
_
Change by Chris Billington :
--
title: APPDATA location in Microsoft Store version -> APPDATA
___
Python tracker
<https://bugs.python.org/issue40377>
___
_
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 fo
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
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) f
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
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
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 enti
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 di
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
10 matches
Mail list logo