Re: python 3.7 - I try to close the thread without closing the GUI is it possible?

2018-09-14 Thread dieter
alon.naj...@gmail.com writes: > python 3.7 - I try to close the thread without closing the GUI is it > possible? I assume that with "close a thread" you mean "terminate a thread". It is difficult to terminate a thread from the outside, because on many platforms, there is no reliable way to term

Re: Python for System Verilog testbench

2018-09-14 Thread Dale Marvin via Python-list
On 9/14/18 11:41 AM, Bobby wrote: Hi George WOW! thanks for the reply and specially thanks for using the word 'BDD'. I read the articles regarding BDD the whole day and understood the concepts. Now will get this Pytest test framework with pytest bdd plugin. I found out it follows this Gherkin s

Re: Python for System Verilog testbench

2018-09-14 Thread Bobby
Hi George WOW! thanks for the reply and specially thanks for using the word 'BDD'. I read the articles regarding BDD the whole day and understood the concepts. Now will get this Pytest test framework with pytest bdd plugin. I found out it follows this Gherkin syntax. Then I read about this Gherki

Re: Image processing libraries in python

2018-09-14 Thread Thomas Jollans
On 14/09/18 19:04, tejaswi wrote: Hello everyone, I was looking to work with images in python. I saw two packages related to this, Pillow and scipy.ndimage. I was wondering what purposes each of these serve. I've previously used matlab/octave's image processing facilities and found them quite ea

Re: Image processing libraries in python

2018-09-14 Thread MRAB
On 2018-09-14 18:04, tejaswi wrote: Hello everyone, I was looking to work with images in python. I saw two packages related to this, Pillow and scipy.ndimage. I was wondering what purposes each of these serve. I've previously used matlab/octave's image processing facilities and found them quite

Image processing libraries in python

2018-09-14 Thread tejaswi
Hello everyone, I was looking to work with images in python. I saw two packages related to this, Pillow and scipy.ndimage. I was wondering what purposes each of these serve. I've previously used matlab/octave's image processing facilities and found them quite easy to work with, so is scipy the way

Re: Fumbling with emacs + elpy + flake8

2018-09-14 Thread Toni Sissala
I'm on Ubuntu 16.04. I found out that flake8 did not play well with emacs if installed with --user option, nor when installed in a virtual environment. Didn't research any further, since I got it working with plain pip3 install flake8 Do you see any error messages? Toni On 13.9.2018 21:59,

Re: help me in python plssss!!!!

2018-09-14 Thread Max Zettlmeißl via Python-list
On Fri, Sep 14, 2018 at 4:33 PM, Noel P. CUA wrote: > Calculate the true, relative and approximate errors, and Relate the > absolute relative approximate error to the number of significant digits. > > epsilon = 1 > > while epsilon + 1 > 1: > epsilon = epsilon / 2.0 > > epsilon = 2 * epsilon

help me in python plssss!!!!

2018-09-14 Thread Noel P. CUA
Calculate the true, relative and approximate errors, and Relate the absolute relative approximate error to the number of significant digits. epsilon = 1 while epsilon + 1 > 1: epsilon = epsilon / 2.0 epsilon = 2 * epsilon help me! -- *This email and any files transmitted with it are c

Re: Looking for a Scrapy cheatsheet

2018-09-14 Thread Joe Gulizia
I just goolged for SANS Scrapy Cheatsheetthey have several SANS.org From: Python-list on behalf of Jim Sent: Friday, September 14, 2018 8:15:05 AM To: python-list@python.org Subject: Re: Looking for a Scrapy cheatsheet On 09/14/2018 01:27 AM, Danyelle Da

Re: Looking for a Scrapy cheatsheet

2018-09-14 Thread Jim
On 09/14/2018 08:15 AM, Jim wrote: On 09/14/2018 01:27 AM, Danyelle Davis wrote: The one that sans provides seems pretty decent. Did you not like it? What is sans? Do you have a url. Thanks,  Jim Nevermind. I googled scrapy sans and I think we are talking about two different programs with

Re: Help on PyList 3.7.0

2018-09-14 Thread Jason Qian via Python-list
Thanks a lot. On Thu, Sep 13, 2018 at 5:24 PM, MRAB wrote: > On 2018-09-13 21:50, Jason Qian via Python-list wrote: > >> Hey, >> >> Need some help on PyList. >> >> >> #get path >> PyObject *path = PyObject_GetAttrString(sys, "path"); >> >> #new user path >> PyObject* newPath = PyUnicode_DecodeUT

Re: how to convert this psuedo code to python

2018-09-14 Thread Max Zettlmeißl via Python-list
On Fri, Sep 14, 2018 at 2:37 PM, Noel P. CUA wrote: > compose your own octave script to calculate the machine > epsilon. Analyze the code. > > epsilon = 1 > DO > IF (epsilon+1<=1) EXIT > epsilon = epsilon/2 > END DO > epsilon = 2 x epsilon > epsilon = 1 while epsilon + 1 > 1: epsilon = epsi

Re: Looking for a Scrapy cheatsheet

2018-09-14 Thread Jim
On 09/14/2018 01:27 AM, Danyelle Davis wrote: The one that sans provides seems pretty decent. Did you not like it? What is sans? Do you have a url. Thanks, Jim On Thu, Sep 13, 2018 at 4:05 PM Jim wrote: I'm in the process of learning Scrapy. I've read through the docs and a couple of tut

how to convert this psuedo code to python

2018-09-14 Thread Noel P. CUA
compose your own octave script to calculate the machine epsilon. Analyze the code. epsilon = 1 DO IF (epsilon+1<=1) EXIT epsilon = epsilon/2 END DO epsilon = 2 x epsilon -- *This email and any files transmitted with it are confidential and intended solely for the use of the individual or enti

Re: Trying to use threading.local()

2018-09-14 Thread Chris Angelico
On Fri, Sep 14, 2018 at 7:18 PM, Antoon Pardon wrote: > On 14-09-18 10:29, Chris Angelico wrote: >> On Fri, Sep 14, 2018 at 5:25 PM, Antoon Pardon wrote: >>> >>> ... Suppose I have two threads, one in which I need >>> a precision of 3 and the other in which I need a precision of 7. In what >>> ci

Re: Trying to use threading.local()

2018-09-14 Thread Antoon Pardon
On 14-09-18 10:29, Chris Angelico wrote: > On Fri, Sep 14, 2018 at 5:25 PM, Antoon Pardon wrote: >> >> ... Suppose I have two threads, one in which I need >> a precision of 3 and the other in which I need a precision of 7. In what >> circumstances is it needed to use threads-locals to accomplish t

Re: Trying to use threading.local()

2018-09-14 Thread Chris Angelico
On Fri, Sep 14, 2018 at 6:34 PM, Thomas Jollans wrote: > On 14/09/18 10:29, Chris Angelico wrote: >> >> On Fri, Sep 14, 2018 at 5:25 PM, Antoon Pardon >> wrote: >>> >>> On 13-09-18 14:29, Chris Angelico wrote: "Preferred" doesn't exclude the possibility that alternatives are needed

Re: Trying to use threading.local()

2018-09-14 Thread Thomas Jollans
On 14/09/18 10:29, Chris Angelico wrote: On Fri, Sep 14, 2018 at 5:25 PM, Antoon Pardon wrote: On 13-09-18 14:29, Chris Angelico wrote: "Preferred" doesn't exclude the possibility that alternatives are needed, though. For example, good luck making decimal.Decimal contexts work correctly withou

Re: Trying to use threading.local()

2018-09-14 Thread Chris Angelico
On Fri, Sep 14, 2018 at 5:25 PM, Antoon Pardon wrote: > On 13-09-18 14:29, Chris Angelico wrote: >> "Preferred" doesn't exclude the possibility that alternatives are >> needed, though. For example, good luck making decimal.Decimal contexts >> work correctly without the help of thread-locals - ther

Add header at top with email.message

2018-09-14 Thread Thomas Schneider
Hi, the EmailMessage class of email.message provides the methods add_header() and __setitem__() to add a header to a message. add_header() effectively calls __setitem__(), which does `self._headers.append(self.policy.header_store_parse(name, val))`. This inserts the header at the bottom. It is,

Re: Trying to use threading.local()

2018-09-14 Thread Antoon Pardon
On 13-09-18 14:29, Chris Angelico wrote: > "Preferred" doesn't exclude the possibility that alternatives are > needed, though. For example, good luck making decimal.Decimal contexts > work correctly without the help of thread-locals - there MIGHT be a > way to do it, but even if there is, it sure w

python 3.7 - I try to close the thread without closing the GUI is it possible?

2018-09-14 Thread alon . najman
python 3.7 - I try to close the thread without closing the GUI is it possible? here is my code, sorry I'm am new with python and generally with code XD . thanks all # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'AlonStockMarket.ui' # # Created by: PyQt5 UI code