Re: CURSES WINDOWS

2018-09-05 Thread Anssi Saari
shinobi@f153.n1.z21.fsxnet (shinobi) writes: > Hello All, > > can anyone please let me know what's the path to port linux python curses > program to Windows? Is there really anything that needs to be done? At least a simple hello world python curses program runs on Windows and Linux with no chang

Re: CURSES WINDOWS

2018-09-05 Thread Dotan Cohen
Your subject line will sure draw attention to the topic! On Tue, Sep 4, 2018 at 8:33 PM shinobi wrote: > > 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: CURSES WINDOWS

2018-09-05 Thread Abhiram R
And here I thought this was a rant :D On Tue, Sep 4, 2018 at 8:33 PM shinobi wrote: > > > > 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 > > -

How to drop six support and go to Python 3 only?

2018-09-05 Thread Fabio Zadrozny
My scenario is having an app which was on Py 2, ported to Python 2 and 3 (using six) and will become Python 3 only in a few months. So, my question is: when Python 2 is no longer needed, is there some tool which helps removing the six compatibility layer (as well as the if six.PY2/six.PY3 checks)

Can't drop files on python scripts in a fresh installation of Windows

2018-09-05 Thread Random832
Python itself runs fine, but when I try to drop a file on a script it just doesn't work. If I try to regsvr32 the shell extension, it says: The module "c:\windows\pyshellext.amd64.dll" failed to load. There was no indication of any problem until this. Apparently it is linked against "VCRUNTIME140

Re: Anaconda with Python 3.7

2018-09-05 Thread Thomas Jollans
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 ones I use) appear to be available for

Error installing libraries

2018-09-05 Thread ojas gupta
I am having trouble with installation of one library â £mysqlclientâ Ø and it keeps on showing the same message (copied below as it is ) . THE MESSAGE : C:\>pip install mysqlclient Collecting mysqlclient Using cached https://files.pythonhosted.org/packages/ec/fd/83329b9d3e14f7344d 1cb31f128e6

Re: Anaconda with Python 3.7

2018-09-05 Thread Thomas Jollans
On 2018-09-03 16:07, Alex Kaye wrote: > When one downloads Anaconda, doesn't it > bring Pyhon with it ? It does, but one of the main features is the ability to create additional virtual environments which can use different versions of Python. You can even upgrade these environments to a different

Cross platform mutex to prevent script running more than instance?

2018-09-05 Thread Malcolm Greene
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 how the diverse the solution set is. I've seen solutions ranging from using directories, named

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

2018-09-05 Thread D'Arcy Cain
On 09/03/18 09: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 how the > diverse the solution set is. I've seen

Anaconda with Python 3.7

2018-09-05 Thread gvim
Anyone have any idea when Anaconda might ship a version compatible with Python 3.7. I sent them 2 emails but no reply. gvim -- https://mail.python.org/mailman/listinfo/python-list

Why list.reverse() modifies the list, but name.replace() does not

2018-09-05 Thread C W
Hello all, I am learning the basics of Python. How do I know when a method modifies the original object, when it does not. I have to exmaples: Example 1: > L = [3, 6, 1,4] > L.reverse() > L [4, 1, 6, 3] This changes the original list. Example 2: > name = "John Smith" > name.replace("J", j") > nam

Re: Why list.reverse() modifies the list, but name.replace() does not

2018-09-05 Thread Joel Goldstick
On Mon, Sep 3, 2018 at 1:50 PM C W wrote: > > Hello all, > > I am learning the basics of Python. How do I know when a method modifies > the original object, when it does not. I have to exmaples: > Example 1: > > L = [3, 6, 1,4] > > L.reverse() > > L > [4, 1, 6, 3] > This changes the original list.

Re: Error installing libraries

2018-09-05 Thread Thomas Jollans
On 2018-09-03 09:10, ojas gupta wrote: > error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-to ols > > > Command ""c:\users\ojas gupta\appdata\local\progr

Re: Why list.reverse() modifies the list, but name.replace() does not

2018-09-05 Thread Chris Angelico
On Tue, Sep 4, 2018 at 3:49 AM, C W wrote: > Hello all, > > I am learning the basics of Python. How do I know when a method modifies > the original object, when it does not. I have to exmaples: > Example 1: >> L = [3, 6, 1,4] >> L.reverse() >> L > [4, 1, 6, 3] > This changes the original list. > >

PyDev 6.5.0 released

2018-09-05 Thread Fabio Zadrozny
PyDev 6.5.0 Release Highlights - *Debugger* - Debugger is *much* more responsive (fixed bug in reader/writer on the PyDev side). - *breakpoint()* builtin is now supported to add a programmatic breakpoint (on any Python version). - Watch expression no longer givin

Re: Anaconda with Python 3.7

2018-09-05 Thread Alex Kaye
Sorry bad typing. AK On Mon, Sep 3, 2018 at 7:07 AM Alex Kaye wrote: > When one downloads Anaconda, doesn't it > bring Pyhon with it ? > > AK > > On Mon, Sep 3, 2018 at 6:13 AM Thomas Jollans wrote: > >> On 2018-09-03 11:38, gvim wrote: >> > Anyone have any idea when Anaconda might ship a ver

Re: Why list.reverse() modifies the list, but name.replace() does not

2018-09-05 Thread Mike C
Yes, I forgot that strings are immutable. I can't change anything in the string. Silly me! Thank you very much, I appreciate it. I guess sometimes it just take an outsider to take you outside the box. And all is answered. :) From: Python-list on behalf of Mark La

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

2018-09-05 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

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

2018-09-05 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 b

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

2018-09-05 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 >

Re: Anaconda with Python 3.7

2018-09-05 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 (cer

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

2018-09-05 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 the

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

2018-09-05 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 >

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

2018-09-05 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

Any SML coders able to translate this to Python?

2018-09-05 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: Hi I'm trying to get live data from stock using python , is it poss

2018-09-05 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/pyt

Re: Anaconda with Python 3.7

2018-09-05 Thread Alex Kaye
When one downloads Anaconda, doesn't it bring Pyhon with it ? AK On Mon, Sep 3, 2018 at 6:13 AM 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 >

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

2018-09-05 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 it's

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

2018-09-05 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: Why list.reverse() modifies the list, but name.replace() does not

2018-09-05 Thread Mark Lawrence
On 03/09/18 18:49, C W wrote: > Hello all, > > I am learning the basics of Python. How do I know when a method modifies > the original object, when it does not. I have to exmaples: > Example 1: >> L = [3, 6, 1,4] >> L.reverse() >> L > [4, 1, 6, 3] > This changes the original list. Lists are mutabl

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

2018-09-05 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.py

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

2018-09-05 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 so

Re: Verifying the integrity/lineage of a file

2018-09-05 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: Cross platform mutex to prevent script running more than instance?

2018-09-05 Thread Cameron Simpson
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 how the >diverse the solution set is. I've seen s

PEP 8001 -- Python Governance Voting Process

2018-09-05 Thread Mark Lawrence
I believe that this https://www.python.org/dev/peps/pep-8001/ may be of interest. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

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

2018-09-05 Thread Calvin Spealman
Please don't keep spamming this list with the same question, while you have not responded to any of the advice you've already been given. If you have specific trouble with any of that advice and need further help, please give details and ask new questions! Good luck. On Wed, Sep 5, 2018 at 4:02

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

2018-09-05 Thread Chris Angelico
On Thu, Sep 6, 2018 at 6:06 AM, Calvin Spealman wrote: > Please don't keep spamming this list with the same question, while you have > not responded to any of the advice you've already been given. > > If you have specific trouble with any of that advice and need further help, > please give details

Re: Re: CURSES WINDOWS

2018-09-05 Thread Peter via Python-list
I get this: C:\Users\Me> py Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Inte l)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import curses Traceback (most recent call last):   File "", line 1, in   File "C:\Program Files

Re: Calling an unbound method in C using the Public API

2018-09-05 Thread Matthieu Dartiailh
Thanks Serhiy. This does come with a performance penalty (in particular for function taking keyword arguments) but this is to be expected. Also the PyList_Insert solution does not sadly work for all the methods that I need to wrap. Best Matthieu > On Aug 30, 2018, at 11:09 AM, Serhiy Storchak

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

2018-09-05 Thread Marko Rauhamaa
Marko Rauhamaa (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 >>

[SOLVED]: problem with json.dumps / complexjson.loads in python 3.4 virtualenv

2018-09-05 Thread M. Fioretti
On 2018-09-05 08:21, dieter wrote: "M. Fioretti" writes: I have an error in a python application that I installed... ... https://github.com/shaarli/python-shaarli-client/issues/33 ... Looks like the problem is immediately at the start of the response (--> "ValueError: Expecting value: line 1 c