Re: Ignore error with non-zero exit status

2015-12-20 Thread Thomas 'PointedEars' Lahn
Ganesh Pal wrote: [repaired Subject, restored attribution] > Thomas 'PointedEars' Lahn wrote: >> Most simple solution for this: Do not use a loop. More "complicated" >> solution: Use an “if” statement. > > I want to stick on to loop and try modifying the code with if. Should I > use some compar

Re: Ignore error with non-zero exit status

2015-12-20 Thread Thomas 'PointedEars' Lahn
Chris Angelico wrote: > On Mon, Dec 21, 2015 at 9:46 AM, Thomas 'PointedEars' Lahn > wrote: >>> Percent formatting isn't going away. There's no need to tell people to >>> abandon it in favour of .format(), unless they actually need a feature >>> of .format(). >> >> ,-

[RELEASED] Python 3.4.4 is now available

2015-12-20 Thread Larry Hastings
On behalf of the Python development community and the Python 3.4 release team, I'm pleased to announce the availability of Python 3.4.4. Python 3.4.4 is the last version of Python 3.4.4 with binary installers, and the end of "bugfix" support. After this release, Python 3.4.4 moves into "sec

Re: Catogorising strings into random versus non-random

2015-12-20 Thread Chris Angelico
On Mon, Dec 21, 2015 at 2:01 PM, Steven D'Aprano wrote: > I have a large number of strings (originally file names) which tend to fall > into two groups. Some are human-meaningful, but not necessarily dictionary > words e.g.: > > > baby lions at play > saturday_morning12 > Fukushima > ImpossibleFor

Re: (Execution) Termination bit, Alternation bit.

2015-12-20 Thread eryk sun
On Sun, Dec 20, 2015 at 10:21 AM, Dennis Lee Bieber wrote: > On Sun, 20 Dec 2015 12:25:30 +0100, "Skybuck Flying" > declaimed the following: >> >>This does make me wonder how Windows 7 terminates threads/processes/hanging >>applications. >> >>Apperently there is some kind of mechanism for this. >

Categorising strings on meaningful–meaningless spectrum (was: Catogorising strings into random versus non-random)

2015-12-20 Thread Ben Finney
Steven D'Aprano writes: > Let's call the second group "random" and the first "non-random", > without getting bogged down into arguments about whether they are > really random or not. I think we should discuss it, even at risk of getting bogged down. As you know better than I, “random” is not an

Catogorising strings into random versus non-random

2015-12-20 Thread Steven D'Aprano
I have a large number of strings (originally file names) which tend to fall into two groups. Some are human-meaningful, but not necessarily dictionary words e.g.: baby lions at play saturday_morning12 Fukushima ImpossibleFork (note that some use underscores, others spaces, and some CamelCase) w

Re: Ignore error with non-zero exit status (was: How to ignore error with anon-zero exit status)

2015-12-20 Thread Ganesh Pal
> (Polite people would *ask* a *question*.) I am a polite person , sorry if the wording was harsh. > (“_a non-zero_”, with a space in-between. “anon” can be misunderstood as an > abbreviation for “anonymous”.) It was a typo. > Most simple solution for this: Do not use a loop. More "complicate

Can I call a pymc-function directly?

2015-12-20 Thread Robert
Hi, I am new to pymc package. I come across the following tutorial: The example is from: www.map.ox.ac.uk/media/PDF/Patil_et_al_2010.pdf . import pymc import numpy as np n = 5*np.ones(4,dtype=int) x = np.array([-.86,-.3,-.05,.73]) alpha = pymc.Normal('alpha',mu=0,tau=.01) beta =

Re: Ignore error with non-zero exit status

2015-12-20 Thread Chris Angelico
On Mon, Dec 21, 2015 at 9:46 AM, Thomas 'PointedEars' Lahn wrote: >> Percent formatting isn't going away. There's no need to tell people to >> abandon it in favour of .format(), unless they actually need a feature >> of .format(). > > ,-

Re: Installing PyCharm on Windows

2015-12-20 Thread Chris Angelico
On Mon, Dec 21, 2015 at 9:46 AM, Terry Reedy wrote: > On 12/20/2015 4:54 PM, Chris Angelico wrote: > >> Want to run CPython 3.6 on Windows? >> Go hunt down a compiler, fiddle around with it, and see if >> >> you can get everything to work. > > > No, much easier. Essentially the same steps as below

Re: Ignore error with non-zero exit status

2015-12-20 Thread Thomas 'PointedEars' Lahn
Chris Angelico wrote: > On Mon, Dec 21, 2015 at 8:22 AM, Thomas 'PointedEars' Lahn > wrote: It is supposed to be an attribution *line*, _not_ an attribution novel. Also, the “(was: …)” part is to be removed from the Subject header field value to complete the change of subject in a thread. >>

Re: Installing PyCharm on Windows

2015-12-20 Thread Terry Reedy
On 12/20/2015 4:54 PM, Chris Angelico wrote: > Want to run CPython 3.6 on Windows? > Go hunt down a compiler, fiddle around with it, and see if you can get everything to work. No, much easier. Essentially the same steps as below after following the instructions in the devguide to get the 2015

Re: Ignore error with non-zero exit status (was: How to ignore error with anon-zero exit status)

2015-12-20 Thread Chris Angelico
On Mon, Dec 21, 2015 at 8:22 AM, Thomas 'PointedEars' Lahn wrote: > Python 2.6 (why are you using the oldest Python minor version?) introduced > string.format(), so you should use that instead of the old string format > operator (“%”): > > logging.error("Can't run {0}; got {1} ({2:d})!".format(c

Re: Installing PyCharm on Windows

2015-12-20 Thread Chris Angelico
On Mon, Dec 21, 2015 at 4:15 AM, Josef Pktd wrote: >> Mine was not a snide remark, but the truth. Those other operating systems I >> was talking about do give users more freedom. For example, the freedom to >> use it on as many different machines as you like without an extra license, >> to see t

Ignore error with non-zero exit status (was: How to ignore error with anon-zero exit status)

2015-12-20 Thread Thomas 'PointedEars' Lahn
Ganesh Pal wrote: > def run_scanner(): > """ > Mount /filesystems and run scanner > """ > for cmd in [" mount /filesystems ", " scanner_start"]: > try: > out, err, ret = run(cmd, timeout=3600) > if ret != 0: > logging.error("Can

Re: Installing PyCharm on Windows

2015-12-20 Thread Erik
Hello Thomas, On 19/12/15 18:32, Thomas 'PointedEars' Lahn wrote: > (and you should seriously > consider upgrading Windows or even better, to switch to a real operating > system, like GNU/Linux On 20/12/15 08:28, Thomas 'PointedEars' Lahn wrote: > Anyhow, *I* was not intending to start an OS fla

How to ignore error with anon-zero exit status

2015-12-20 Thread Ganesh Pal
def run_scanner(): """ Mount /filesystems and run scanner """ for cmd in [" mount /filesystems ", " scanner_start"]: try: out, err, ret = run(cmd, timeout=3600) if ret != 0: logging.error("Can't run %s got %s (%d)!" % (cmd, err,

Re: Installing PyCharm on Windows

2015-12-20 Thread Josef Pktd
On Sunday, December 20, 2015 at 3:29:34 AM UTC-5, Thomas 'PointedEars' Lahn wrote: > Josef Pktd wrote: > ^^ > I doubt that is your real name. But it's the name I used for almost all of my Python open source development, and can be easily googled. except I misspelled my "name" josef-pkt w

Deadline for PythonFOSDEM 2016 is today.

2015-12-20 Thread Stephane Wirtel
Just inform you that the deadline for the CfP of the PythonFOSDEM will finish this evening. If you have a last talk to submit, please do it. Call For Proposals == This is the official call for sessions for the Python devroom at FOSDEM 2016. FOSDEM is the Free and Open source So

Re: (Execution) Termination bit, Alternation bit.

2015-12-20 Thread Skybuck Flying
"Richard Damon" wrote in message news:QHody.3724$bz5.3...@fx04.iad... On 12/19/15 9:03 PM, Skybuck Flying wrote: It could be usefull if the instruction pointer/return address that was pushed onto the stack when the interrupt handler was called can be modified by the interrupt handler so that

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2015-12-20 Thread Chris Angelico
On Sun, Dec 20, 2015 at 10:04 PM, Denis McMahon wrote: > It sounds like you're taking a python course. Your course should have > taught you all you need to carry out this programming task before setting > this exercise. > > Alternatively, if you have so far been a fully attending, attentive and >

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2015-12-20 Thread Denis McMahon
On Sat, 12 Dec 2015 01:05:01 -0800, Harbey Leke wrote: > Create a class called BankAccount > > .Create a constructor that takes in an integer and assigns this to a > `balance` property. > > .Create a method called `deposit` that takes in cash deposit amount and > updates the balance accordingly.

Re: Installing PyCharm on Windows

2015-12-20 Thread Chris Angelico
On Sun, Dec 20, 2015 at 8:23 PM, Steven D'Aprano wrote: > On Sun, 20 Dec 2015 07:28 pm, Thomas 'PointedEars' Lahn wrote: > >> Josef Pktd wrote: >> ^^ >> I doubt that is your real name. > > > So what? I doubt "PointedEars" is your real name, but you don't see me > making a big deal out of i

Re: Installing PyCharm on Windows

2015-12-20 Thread Steven D'Aprano
On Sun, 20 Dec 2015 07:28 pm, Thomas 'PointedEars' Lahn wrote: > Josef Pktd wrote: > ^^ > I doubt that is your real name. So what? I doubt "PointedEars" is your real name, but you don't see me making a big deal out of it. You're welcome to call yourself by any reasonable moniker. --

Re: Installing PyCharm on Windows

2015-12-20 Thread Thomas 'PointedEars' Lahn
Josef Pktd wrote: ^^ I doubt that is your real name. > On Saturday, December 19, 2015 at 1:32:27 PM UTC-5, Thomas 'PointedEars' > Lahn wrote: >> Have you tried to install Python ≥ 3.4.4rc1 on Windows XP? If yes, it >> cannot work; you need Python < 3.4.4rc1 instead (and you should serious