```
The Python security team removed two trojanized Python libraries from
PyPI (Python Package Index) that were caught stealing SSH and GPG keys
from the projects of infected developers.
The first is "python3-dateutil," which imitated the popular "dateutil"
library. The second is "jeIlyfish" (th
Hi
An operation like x+=1 on a global variable x is not thread safe because
there can be a thread switch between reading and writing to x.
The correct way is to use a lock
lock = threading.Lock
with lock:
x+=1
I tried to write a program without the lock which should fail.
Here it is:
im
100 increments happen very fast, and means each thread will probably complete
before the main thread has even started the next one. Bump that up to 1_000_000
or so and you'll probably trigger it.
I did a test with a print(x) at the start of test() to see what the number was
when each thread kic
I notice that "python3-dateutil" is in over 4000 github repositories
[1]. That sounds like a disaster.
[1]: https://github.com/search?q=python3-dateutil&type=Code
- DLD
--
David Lowry-Duda
--
https://mail.python.org/mailman/listinfo/python-list
On 04/12/2019 18.59, David Lowry-Duda wrote:
> I notice that "python3-dateutil" is in over 4000 github repositories
> [1]. That sounds like a disaster.
>
> [1]: https://github.com/search?q=python3-dateutil&type=Code
At least the first pages are packaging files for Debian, Fedora, and
other Linux
I am trying to do this project on a pi zero:
http://frederickvandenbosch.be/?p=1365
I copied the code to the pi zero Download folder and when I run it I get
the above error at line 4
Import Adafruit_SSD1306
I am using python version 2.7.16, if that makes any difference
I have the same module
On 12/4/19 10:59 AM, David Lowry-Duda wrote:
> I notice that "python3-dateutil" is in over 4000 github repositories
> [1]. That sounds like a disaster.
>
> [1]: https://github.com/search?q=python3-dateutil&type=Code
It's clearly not, as Christian has already said. In fact it would be
very diffic
On Wed, 04 Dec 2019 20:25:33 +, RobH wrote:
> I am trying to do this project on a pi zero:
>
> http://frederickvandenbosch.be/?p=1365
>
> I copied the code to the pi zero Download folder and when I run it I get
> the above error at line 4
> Import Adafruit_SSD1306
>
> I am using python ver
On 04/12/2019 22:33, Wildman wrote:
On Wed, 04 Dec 2019 20:25:33 +, RobH wrote:
I am trying to do this project on a pi zero:
http://frederickvandenbosch.be/?p=1365
I copied the code to the pi zero Download folder and when I run it I get
the above error at line 4
Import Adafruit_SSD1306
I
Le 05/12/2019 à 00:06, RobH a écrit :
On 04/12/2019 22:33, Wildman wrote:
On Wed, 04 Dec 2019 20:25:33 +, RobH wrote:
I am trying to do this project on a pi zero:
http://frederickvandenbosch.be/?p=1365
I copied the code to the pi zero Download folder and when I run it I get
the above err
I tried to plot graph about a time-series with library statsmodel.
I decide to plot autocorrelation function, but I don't know the blue
section in the example graph mean...
Can anyone tell me?
The plot_acf example link:
https://www.statsmodels.org/dev/generated/statsmodels.graphics.tsaplots.plot
11 matches
Mail list logo