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

2018-09-03 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 sol

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

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

Re: Anaconda with Python 3.7

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

2018-09-03 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 mutable, i.e. can be ch

PEP 8001 -- Python Governance Voting Process

2018-09-03 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: Anaconda with Python 3.7

2018-09-03 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 modify the string?

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

2018-09-03 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.

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

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

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

Re: Anaconda with Python 3.7

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

Re: Error installing libraries

2018-09-03 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-tools > > > Command ""c:\users\ojas > gupta\appdata\loc

Cross platform mutex to prevent script running more than instance?

2018-09-03 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: Anaconda with Python 3.7

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

Anaconda with Python 3.7

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

Error installing libraries

2018-09-03 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/83329b9d3e14f7344d1cb31f128e6dbb