Developers are advised to purge these malicious packages

2019-12-04 Thread Pankaj Jangid
``` 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

threading

2019-12-04 Thread ast
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

RE: threading

2019-12-04 Thread David Raymond
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

Re: Developers are advised to purge these malicious packages

2019-12-04 Thread David Lowry-Duda
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

Re: Developers are advised to purge these malicious packages

2019-12-04 Thread Christian Heimes
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

ImportError: No module named Adafruit_SSD1306

2019-12-04 Thread RobH
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

Re: Developers are advised to purge these malicious packages

2019-12-04 Thread Michael Torrie
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

Re: ImportError: No module named Adafruit_SSD1306

2019-12-04 Thread Wildman via Python-list
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

Re: ImportError: No module named Adafruit_SSD1306

2019-12-04 Thread RobH
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

Re: ImportError: No module named Adafruit_SSD1306

2019-12-04 Thread Python
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

What does the blue color section in background mean?

2019-12-04 Thread lampahome
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