511 karma · joined February 7, 2018
FYI, pylint does something similar for native-code extension modules (unless this changed in the past few years): it imports them dynamically!
EDIT: reading the code more closely and reading the rest of the comments, more precisely, it's not the subprocess call itself, but rather importing an arbitrary Python module, which could be a path for code execution. But this is the case generally with Python: importing a module executes code, and so even just importing (not otherwise executing) an untrusted module could be problematic.
Statically reasoning about all this (as would be required for optimization) is difficult. Not totally impossible, but not something that the canonical CPython implementation tries to do.
No, the US :)
Signatures are still common enough when paying with a card in the US, for whatever reasons.
Are you using Logitech keyboard and mouse, by any chance?
Yeah, these _could_ be unrelated issues to what has been going on in Apple land today, but it's uncanny...
Taking this gradual typing tool a step further, you can run your tests with the typeguard plugin for pytest, which will dynamically check the types of most values, pointing out places where your types are a lie.
https://typeguard.readthedocs.io/en/latest/userguide.html#us...
The thermals on Apple laptops from the last several years don’t seem to be designed to work without frequently revving the fans way up.
Additionally, the Touch Bar has awful latency... hundreds of milliseconds to reconfigure itself when switching between apps??
It seems that Zoom is the only popular videoconferencing software these days that allows you to disable all the postprocessing on the audio signal (echo cancellation, noise reduction, etc) through advanced settings. This postprocessing is very useful for /conversation/ meetings among many people with bad audio setups, but for two musicians and music signals, the postprocessing is highly detrimental, causing strange audio artifacts and causing instruments to drop out sporadically.
(It seems like there would be a market for videoconferencing software optimized for musicians, where the audio signal is sent at higher quality, given higher priority, and not postprocessed in detrimental ways. And without all the privacy concerns.)
A messed-up MANPATH environment variable can also cause man pages to not be found. In ‘man’ used on many flavors of Linux, MANPATH behaves differently from, say, PATH: an empty colon-delimited section means something like “use the system’s regular ‘man’ configuration for finding man pages”. Without that, it seems like a bad MANPATH setting will cause default mannpages not to be found.
You cut out the news-induced anxiety this way. After a while, you also realize that most news is noise, and doesn’t matter even a day later.
If something really significant happens, you’ll still hear about it.
These problems arise in compilers that convert programs into static single assignment (SSA) form.