Congratulations to the community!

2018-10-03 Thread Musatov
https://www.tiobe.com/tiobe-index// Python #3 ranked language as of 09/2018 UP from #5 last year Musatov -- https://mail.python.org/mailman/listinfo/python-list

Re: Program to find Primes of the form prime(n+2) * prime(n+1) - prime(n) +- 1.

2018-10-03 Thread Musatov
On Tuesday, October 2, 2018 at 5:54:30 PM UTC-5, Gary Herron wrote: > On 10/02/2018 01:23 PM, tomusa...@gmail.com wrote: > > Primes of the form prime(n+2) * prime(n+1) - prime(n) +- 1. > > DATA > > > > 31, 71, 73, 137, 211, 311, 419, 421, 647, 877, 1117, 1487, 1979, 2447, > > 3079, 3547,

Re: Replacing : with "${" at the beginning of the word and adding "}" at the end of the word

2018-10-03 Thread zljubisic
Yes it is. Thanks. > A slightly better solution would be: > > cnv_sel = re.sub(r":(\w+)", r"${\1}", sel) -- https://mail.python.org/mailman/listinfo/python-list

Help please installing Python on Windows 10

2018-10-03 Thread Timothy Cowell via Python-list
Hi, Could I please ask for help installing Python on Windows 10 - I've tried twice (Version 3.7 for windows) selecting the install now option. After first attempt I uninstalled and tried again. Each time it has put 4 items in the programs list from the windows start button, all under headi

Re: Program to find Primes of the form prime(n+2) * prime(n+1) - prime(n) +- 1.

2018-10-03 Thread Musatov
On Wednesday, October 3, 2018 at 11:12:43 AM UTC-5, Michael Torrie wrote: > On 10/03/2018 09:26 AM, Musatov wrote: > > I don't even know where to begin! (I'm reading the Dummies book) > > If you have no experience in computer programming, it's going to be a > steep learning curve. > > But your fi

Re: Use Software Collections for RH - was Re: python not working on RHEL6

2018-10-03 Thread Michael Torrie
On 10/03/2018 10:17 AM, Michael Torrie wrote: > On 10/02/2018 07:59 AM, mchathuran...@gmail.com wrote: >> I guess from the little knowledge I have I should have executed >> altinstall instead of install. Anyone know how to resolve this? > > Actually you probably should not have used a tarball at a

Use Software Collections for RH - was Re: python not working on RHEL6

2018-10-03 Thread Michael Torrie
On 10/02/2018 07:59 AM, mchathuran...@gmail.com wrote: > I guess from the little knowledge I have I should have executed > altinstall instead of install. Anyone know how to resolve this? Actually you probably should not have used a tarball at all. For some time now, Red Hat has offered more recen

Re: Program to find Primes of the form prime(n+2) * prime(n+1) - prime(n) +- 1.

2018-10-03 Thread Michael Torrie
On 10/03/2018 09:26 AM, Musatov wrote: > I don't even know where to begin! (I'm reading the Dummies book) If you have no experience in computer programming, it's going to be a steep learning curve. But your first step is to learn Python and how to write programs in it. That book and others will h

Re: asyncio await different coroutines on the same socket?

2018-10-03 Thread Ian Kelly
On Wed, Oct 3, 2018 at 7:47 AM Russell Owen wrote: > Using asyncio I am looking for a simple way to await multiple events where > notification comes over the same socket (or other serial stream) in arbitrary > order. For example, suppose I am communicating with a remote device that can > run diffe

Re: asyncio await different coroutines on the same socket?

2018-10-03 Thread Léo El Amri via Python-list
Hello Russell, On 03/10/2018 15:44, Russell Owen wrote: > Using asyncio I am looking for a simple way to await multiple events where > notification comes over the same socket (or other serial stream) in arbitrary > order. For example, suppose I am communicating with a remote device that can > r

Re: Program to find Primes of the form prime(n+2) * prime(n+1) - prime(n) +- 1.

2018-10-03 Thread Chris Angelico
On Thu, Oct 4, 2018 at 1:31 AM Musatov wrote: > > On Tuesday, October 2, 2018 at 6:13:01 PM UTC-5, Rick Johnson wrote: > > Musatov wrote: > > > > > I am drafting a sequence for OEIS. > > > > And, have you tried your hand at any Python code yet? Or any > > tutorials? > I am reading this: > https:/

Re: Program to find Primes of the form prime(n+2) * prime(n+1) - prime(n) +- 1.

2018-10-03 Thread Musatov
On Tuesday, October 2, 2018 at 3:49:14 PM UTC-5, Rick Johnson wrote: > Musatov wrote: > > > Well you don't know until you ask. > > Fair enough. > > So, uh, have you made any attempt to compose a Python program from this > assignment? > > If so, don't be shy... let's see it! I don't even know

Re: Program to find Primes of the form prime(n+2) * prime(n+1) - prime(n) +- 1.

2018-10-03 Thread Musatov
On Tuesday, October 2, 2018 at 6:13:01 PM UTC-5, Rick Johnson wrote: > Musatov wrote: > > > I am drafting a sequence for OEIS. > > And, have you tried your hand at any Python code yet? Or any > tutorials? I am reading this: https://doc.lagout.org/programmation/python/Beginning%20Programming%20wi

Re: Program to find Primes of the form prime(n+2) * prime(n+1) - prime(n) +- 1.

2018-10-03 Thread Musatov
On Tuesday, October 2, 2018 at 5:01:43 PM UTC-5, Max Zettlmeißl wrote: > On Tue, Oct 2, 2018 at 10:23 PM, Musatov wrote: > > Primes of the form prime(n+2) * prime(n+1) - prime(n) +- 1. > > DATA > > > > 31, 71, 73, 137, 211, 311, 419, 421, 647, 877, 1117, 1487, 1979, 2447, > > 3079, 3547,

asyncio await different coroutines on the same socket?

2018-10-03 Thread Russell Owen
Using asyncio I am looking for a simple way to await multiple events where notification comes over the same socket (or other serial stream) in arbitrary order. For example, suppose I am communicating with a remote device that can run different commands simultaneously and I don't know which comm

Re: python not working on RHEL6

2018-10-03 Thread Thomas Jollans
On 03/10/2018 13:17, Chris Angelico wrote: On Wed, Oct 3, 2018 at 9:11 PM Dan Purgert wrote: Chris Angelico wrote: On Wed, Oct 3, 2018 at 5:17 AM Thomas Jollans wrote: [...] Whether we agree on the terminology here or not, of course we can agree that you have to be bloody careful if you *do

Re: python not working on RHEL6

2018-10-03 Thread Chris Angelico
On Wed, Oct 3, 2018 at 9:11 PM Dan Purgert wrote: > > Chris Angelico wrote: > > On Wed, Oct 3, 2018 at 5:17 AM Thomas Jollans wrote: > >> [...] > >> Whether we agree on the terminology here or not, of course we can agree > >> that you have to be bloody careful if you *do* decide to put things in

Re: python not working on RHEL6

2018-10-03 Thread Dan Purgert
Chris Angelico wrote: > On Wed, Oct 3, 2018 at 5:17 AM Thomas Jollans wrote: >> [...] >> Whether we agree on the terminology here or not, of course we can agree >> that you have to be bloody careful if you *do* decide to put things in >> /usr/bin yourself :-) > > [...] On my system (Debian GNU/Lin

Re: python not working on RHEL6

2018-10-03 Thread Dan Purgert
Thomas Jollans wrote: > On 02/10/2018 19:22, Dan Purgert wrote: >> Thomas Jollans wrote: >>> [...] (preferably, not in /usr - that's for OS-installed files only. >>> /usr/local is a nice place to put things you installed from source). >> >> While I agree that /usr(/bin) is incorrect, I believe tha