Re: Error installing libraries

2018-09-04 Thread dieter
Gilmeh Serda writes: > On Mon, 03 Sep 2018 12:40:49 +0530, ojas gupta wrote: > >> error: Microsoft Visual C++ 14.0 is required. > > Wonder why it doesn't work? At least, the error message is clear: the process needs "Microsoft Visual C++ 14.0". It is installed on your computer? -- https://mail

Re: problem with json.dumps / complexjson.loads in python 3.4 virtualenv

2018-09-04 Thread dieter
"M. Fioretti" writes: > I have an error in a python application that I installed. I already > opened an issue about it on the application page at github, but I > would also greatly appreciate any help to (at least) better debug the > problem, because I urgently need to use that program. > > Detail

Re: Verifying the integrity/lineage of a file

2018-09-04 Thread Thomas Jollans
On 2018-09-04 16:13, Grant Edwards wrote: > On 2018-09-01, Peter Pearson wrote: > >> Writing your own crypto software is fraught with peril, and that >> includes using existing libraries. > > Writing your own crypto software isn't a problem, and it can be very > educational. > > Just don't _use

Re: Pass a list of values as options to 3 dropdown menus

2018-09-04 Thread Peter Pearson
On Tue, 4 Sep 2018 10:13:07 -0700 (PDT), Nick Berg wrote: [snip] > > May i ask how you managed to send an email with a domain > nowhere.invalid ? I would like to do the same. I don't post by sending email, I post by using a news client (slrn), which interacts with the Usenet system (en.wikipedia.o

Re: Verifying the integrity/lineage of a file

2018-09-04 Thread Abdur-Rahmaan Janhangeer
i think he was referring to a wrapper for a crypto-software Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ Mauritius On Sat, 1 Sep 2018, 21:45 Peter Pearson, wrote: > > Writing your own crypto software is fraught with peril, > -- https://mail.python.org/mailman/listinfo/python-list

Re: Verifying the integrity/lineage of a file

2018-09-04 Thread Gregory Ewing
Grant Edwards wrote: Writing your own crypto software isn't a problem, and it can be very educational. Just don't _use_ your own crypto software. Okay, so find a friend who also likes writing crypto software, and use each other's software. Problem solved. :-) -- Greg -- https://mail.python.or

Re: Cross platform mutex to prevent script running more than instance?

2018-09-04 Thread Cameron Simpson
On 04Sep2018 07:57, CFK wrote: What about using flock()? I don't know if it works on Windows, but it works really well for Unix/Linux systems. I typically create a log file in a known location using any atomic method that doesn't replace/overwrite a file, and flock() it for the duration of the

Re: Hi I'm trying to get live data from stock using python , is it possible?

2018-09-04 Thread Akkana Peck
Skip Montanaro writes: > > I want to know if AAPL is more than value 300 and if it does I want it to > > send to me mail with gmail :) . thanks for the help.. > > Try searching pypi.org for "finance", then scroll through the many > returned packages. A few show how to get stock data from Yahoo! o

Re: Any SML coders able to translate this to Python?

2018-09-04 Thread Thomas Jollans
On 2018-09-04 14:26, Steven D'Aprano wrote: > I have this snippet of SML code which I'm trying to translate to Python: > > fun isqrt n = if n=0 then 0 > else let val r = isqrt (n/4) > in > if n < (2*r+1)^2 then 2*r > else 2*r+1

Re: Pass a list of values as options to 3 dropdown menus

2018-09-04 Thread Terry Reedy
On 9/4/2018 1:03 PM, Peter Pearson wrote: On Sun, 2 Sep 2018 13:40:18 -0700 (PDT), Nick Berg wrote: how can i be able to store a list of values to drop-down menu and then grab the value that the user selects? In a python program, use one of the gui packages. Tkinter usually comes with python

Re: Hi I'm trying to get live data from stock using python , is it possible?

2018-09-04 Thread Michael Torrie
On 09/04/2018 10:21 AM, alon.naj...@gmail.com wrote: > Hi , > for example: > I want to know if AAPL is more than value 300 and if it does I want it to > send to me mail with gmail :) . thanks for the help.. > Yes it's definitely possible! Hop on Google and do some searches; you're bound to find

Re: Hi I'm trying to get live data from stock using python , is it possible?

2018-09-04 Thread Skip Montanaro
> I want to know if AAPL is more than value 300 and if it does I want it to > send to me mail with gmail :) . thanks for the help.. Try searching pypi.org for "finance", then scroll through the many returned packages. A few show how to get stock data from Yahoo! or Google. Skip -- https://mail.

Re: Hi I'm trying to get live data from stock using python , is it possible?

2018-09-04 Thread Thomas Jollans
On 2018-09-04 18:22, alon.naj...@gmail.com wrote: > On Tuesday, September 4, 2018 at 7:21:31 PM UTC+3, alon@gmail.com wrote: >> Hi , >> for example: >> I want to know if AAPL is more than value 300 and if it does I want it to >> send to me mail with gmail :) . thanks for the help.. Of course

CURSES WINDOWS

2018-09-04 Thread shinobi
Hello All, can anyone please let me know what's the path to port linux python curses program to Windows? Thanks -- https://mail.python.org/mailman/listinfo/python-list

Re: Pass a list of values as options to 3 dropdown menus

2018-09-04 Thread Peter Pearson
On Sun, 2 Sep 2018 13:40:18 -0700 (PDT), Nick Berg wrote: > how can i be able to store a list of values to drop-down menu and then > grab the value that the user selects? > > ** > name = month = year = '' > > # populate names, months, years > names.ad

Re: Hi I'm trying to get live data from stock using python , is it possible?

2018-09-04 Thread alon . najman
On Tuesday, September 4, 2018 at 7:21:31 PM UTC+3, alon@gmail.com wrote: > Hi , > for example: > I want to know if AAPL is more than value 300 and if it does I want it to > send to me mail with gmail :) . thanks for the help.. im using python 2.7 -- https://mail.python.org/mailman/listinfo/p

Hi I'm trying to get live data from stock using python , is it possible?

2018-09-04 Thread alon . najman
Hi , for example: I want to know if AAPL is more than value 300 and if it does I want it to send to me mail with gmail :) . thanks for the help.. -- https://mail.python.org/mailman/listinfo/python-list

Re: Cross platform mutex to prevent script running more than instance?

2018-09-04 Thread Thomas Jollans
On 09/04/2018 05:35 AM, Cameron Simpson wrote: On 03Sep2018 07:45, Malcolm Greene wrote: Use case: Want to prevent 2+ instances of a script from running ... ideally in a cross platform manner. I've been researching this topic and am surprised how complicated this capability appears to be and ho

problem with json.dumps / complexjson.loads in python 3.4 virtualenv

2018-09-04 Thread M. Fioretti
Greetings, I have an error in a python application that I installed. I already opened an issue about it on the application page at github, but I would also greatly appreciate any help to (at least) better debug the problem, because I urgently need to use that program. Details: I need to run

Re: Anaconda with Python 3.7

2018-09-04 Thread gvim
On 03/09/2018 10:49, Thomas Jollans wrote: On 2018-09-03 11:38, gvim wrote: Anyone have any idea when Anaconda might ship a version compatible with Python 3.7. I sent them 2 emails but no reply. gvim You can install Python 3.7 in a conda environment right now. Most packages (certainly all the

Re: Verifying the integrity/lineage of a file

2018-09-04 Thread Grant Edwards
On 2018-09-01, Peter Pearson wrote: > Writing your own crypto software is fraught with peril, and that > includes using existing libraries. Writing your own crypto software isn't a problem, and it can be very educational. Just don't _use_ your own crypto software. Howerver, the set of people w

Re: Any SML coders able to translate this to Python?

2018-09-04 Thread Marko Rauhamaa
Steven D'Aprano : > I have this snippet of SML code which I'm trying to translate to Python: > > fun isqrt n = if n=0 then 0 > else let val r = isqrt (n/4) > in > if n < (2*r+1)^2 then 2*r > else 2*r+1 > end >

Re: Any SML coders able to translate this to Python?

2018-09-04 Thread Paul Moore
On Tue, 4 Sep 2018 at 13:31, Steven D'Aprano wrote: > > I have this snippet of SML code which I'm trying to translate to Python: > > fun isqrt n = if n=0 then 0 > else let val r = isqrt (n/4) > in > if n < (2*r+1)^2 then 2*r >

Any SML coders able to translate this to Python?

2018-09-04 Thread Steven D'Aprano
I have this snippet of SML code which I'm trying to translate to Python: fun isqrt n = if n=0 then 0 else let val r = isqrt (n/4) in if n < (2*r+1)^2 then 2*r else 2*r+1 end I've tried reading up on SML and

Re: Cross platform mutex to prevent script running more than instance?

2018-09-04 Thread CFK
What about using flock()? I don't know if it works on Windows, but it works really well for Unix/Linux systems. I typically create a log file in a known location using any atomic method that doesn't replace/overwrite a file, and flock() it for the duration of the script. Thanks, Cem Karan On Mon