Installing Python 3.5 fails

2015-09-30 Thread Tom Barnett
I do have a fresh successful install of Visual Studio 2015 Redistributables installed. Then I reinstalled Python 3.5 and still now joy. What am I missing? Tom Tom Barnett Senior Systems Administrator Prime, inc. 2740 N. Mayfair Springfield, MO 65803 Ph. 417.866.0001 Fax 417.521.6863 * Be

Re: Installing Python 3.5 fails

2015-09-30 Thread Laura Creighton
In a message of Tue, 29 Sep 2015 21:40:08 -, Tom Barnett writes: > > > >I do have a fresh successful install of Visual Studio 2015 Redistributables >installed. > >Then I reinstalled Python 3.5 and still now joy. > >What am I missing? > >Tom (It's another missing api-ms-win-crt-runtime-l1-1-0

Re: Create a .lua fle from Python

2015-09-30 Thread jmp
On 09/29/2015 07:28 PM, Peter Otten wrote: jmp wrote: import bs4 import jinja2 xml = """ BuenosAires 30 Seatle 25 """ lua_template = """ cities_temps ={ {%- for city, temp in cities.iteritems() %} ["{{city}}"] = {{temp}}, {%- e

Re: Check if a given value is out of certain range

2015-09-30 Thread alister
On Tue, 29 Sep 2015 18:44:33 -0500, Tim Chase wrote: > On 2015-09-29 21:32, Mark Lawrence wrote: >> On 29/09/2015 17:48, Rob Gaddi wrote: >> >> Is there any similar elegant way to check if a value is out of >> >> certain range? >> >> Example - To check if x is either less than zero or greater than

failure in installing

2015-09-30 Thread Sagar Joshi
hey, there is a failure installing python3.5.0 in my PC can u help -- https://mail.python.org/mailman/listinfo/python-list

Re: failure in installing

2015-09-30 Thread Chris Angelico
On Wed, Sep 30, 2015 at 10:36 PM, Sagar Joshi wrote: > hey, there is a failure installing python3.5.0 in my PC can u help yes ChrisA PS. If my response wasn't helpful enough, it's because your question wasn't helpful enough. You'll need to give us a lot more information, such as your platform,

Re: failure in installing

2015-09-30 Thread Thomas 'PointedEars' Lahn
Sagar Joshi wrote: > hey, there is a failure installing python3.5.0 in my PC can u help -- PointedEars Twitter: @PointedEars2 Please do not cc me. / Bitte keine Kopien per E-Mail. -- https://mail.python.org/mailman/listinfo/python-list

Re: failure in installing

2015-09-30 Thread Mark Lawrence
On 30/09/2015 13:36, Sagar Joshi wrote: hey, there is a failure installing python3.5.0 in my PC can u help Not directly, as once again both my main and spare crystal balls are at the menders due to over use. However should you decide to tell us what OS version you've got, exactly what you

Re: failure in installing

2015-09-30 Thread Grant Edwards
On 2015-09-30, Sagar Joshi wrote: > hey, there is a failure installing python3.5.0 in my PC can u help No. Or yes. It depends. -- Grant Edwards grant.b.edwardsYow! Somewhere in DOWNTOWN at BURBANK a prostitute is

Oracle connect

2015-09-30 Thread pip7kids
Hi New to Python and just downloaded 3.5 Trying to connect to Oracle but failing - eg import cx_oracle connstr = 'userid/password@@99.999.9.99:PORT/SID' connection = cx_oracle.connect(connstr) cursor = connection.cursor() cursor.execute("SELECT *

Re: Oracle connect

2015-09-30 Thread Larry Martell
On Wed, Sep 30, 2015 at 11:25 AM, wrote: > Hi > New to Python and just downloaded 3.5 > Trying to connect to Oracle but failing - eg > > import cx_oracle > connstr = 'userid/password@@99.999.9.99:PORT/SID' > connection = cx_oracle.connect(connstr) > cursor = connection.cursor() > cursor.execute("

Re: Check if a given value is out of certain range

2015-09-30 Thread John Gordon
In alister writes: > I would stick with the OP's current solution > Readability Counts! I agree. 'if x < 0 or x > 10' is perfectly fine. -- John Gordon A is for Amy, who fell down the stairs gor...@panix.com B is for Basil, assaulted by bears

Re: Check if a given value is out of certain range

2015-09-30 Thread Grant Edwards
On 2015-09-30, alister wrote: > On Tue, 29 Sep 2015 18:44:33 -0500, Tim Chase wrote: > >> On 2015-09-29 21:32, Mark Lawrence wrote: >>> On 29/09/2015 17:48, Rob Gaddi wrote: >>> >> Is there any similar elegant way to check if a value is out of >>> >> certain range? >>> >> Example - To check if x i

Re: Linux Mint installation of Python 3.5

2015-09-30 Thread MRAB
On 2015-09-30 04:15, Chris Angelico wrote: On Wed, Sep 30, 2015 at 1:00 PM, Mario Figueiredo wrote: Personally, I use the regular 'make install', but that's because I'm on Debian - the system Python is 2.7. Unfortunately Ubuntu based distros are going through a 2.x to 3.x transition period. B

Re: Linux Mint installation of Python 3.5

2015-09-30 Thread John Wong
On Tue, Sep 29, 2015 at 10:37 PM, Mario Figueiredo wrote: > Hello everyone, > > Under Linux Mint it is not a good idea to just go ahead and replace the > system installed Python versions and their packages. And yet I wish to > both update the 3.4 modules and install Python 3.5. I understand that

Error code 0x80070570

2015-09-30 Thread Rusiri Jayalath
Error code 0x80070570 appears when installing python 3.5.0 (32-bit) setup for my windows 8.1 system. Please help me to solve this problem. -- Thank You. Best Regards, Rusiri D. Jayalath -- https://mail.python.org/mailman/listinfo/python-list

Re: Error code 0x80070570

2015-09-30 Thread Joel Goldstick
On Wed, Sep 30, 2015 at 1:36 PM, Rusiri Jayalath wrote: > Error code 0x80070570 appears when installing python 3.5.0 (32-bit) setup > for my windows 8.1 system. Please help me to solve this problem. > > -- > > Thank You. > > > > > > > > Best Regards, > > > > > > > > Rusiri D. Jayalath > > -- > ht

Re: Check if a given value is out of certain range

2015-09-30 Thread Marko Rauhamaa
Grant Edwards : > not (0 <= x <= 10) (I) > [...] >(x < 0) or (x > 10) (II) > [...] > IMO, (I) is _more_ readable than (II) IMO, they're equally readable (except that you should drop the redundant parentheses from (II)). Marko -- https://mail.python.org/mailman/listinfo/pyth

Re: Check if a given value is out of certain range

2015-09-30 Thread sohcahtoa82
On Tuesday, September 29, 2015 at 1:33:23 PM UTC-7, Mark Lawrence wrote: > On 29/09/2015 17:48, Rob Gaddi wrote: > > On Tue, 29 Sep 2015 10:16:04 +0530, Laxmikant Chitare wrote: > > > >> Hi, > >> > >> I know there is an elegant way to check if a given value is within > >> certain range. > >> Exampl

Re: Check if a given value is out of certain range

2015-09-30 Thread BartC
On 29/09/2015 05:46, Laxmikant Chitare wrote: Hi, I know there is an elegant way to check if a given value is within certain range. Example - To check if x is between zero and ten, I can do 0 < x 10. That's not clear. Do you mean whether x is 1 to 9 inclusive? Because your contrary example bel

Question about regular expression

2015-09-30 Thread massi_srb
Hi everyone, firstly the description of my problem. I have a string in the following form: s = "name1 name2(1) name3 name4 (1, 4) name5(2) ..." that is a string made up of groups in the form 'name' (letters only) plus possibly a tuple containing 1 or 2 integer values. Blanks can be placed betwe

Re: Question about regular expression

2015-09-30 Thread Emile van Sebille
On 9/30/2015 11:34 AM, massi_...@msn.com wrote: Hi everyone, firstly the description of my problem. I have a string in the following form: s = "name1 name2(1) name3 name4 (1, 4) name5(2) ..." that is a string made up of groups in the form 'name' (letters only) plus possibly a tuple containing

Re: Question about regular expression

2015-09-30 Thread Joel Goldstick
On Wed, Sep 30, 2015 at 2:50 PM, Emile van Sebille wrote: > On 9/30/2015 11:34 AM, massi_...@msn.com wrote: > >> Hi everyone, >> >> firstly the description of my problem. I have a string in the following >> form: >> >> s = "name1 name2(1) name3 name4 (1, 4) name5(2) ..." >> >> that is a string ma

Re: Question about regular expression

2015-09-30 Thread Tim Chase
On 2015-09-30 11:34, massi_...@msn.com wrote: > firstly the description of my problem. I have a string in the > following form: > > s = "name1 name2(1) name3 name4 (1, 4) name5(2) ..." > > that is a string made up of groups in the form 'name' (letters > only) plus possibly a tuple containing 1 or

Re: Error code 0x80070570

2015-09-30 Thread eryksun
On 9/30/15, Rusiri Jayalath wrote: > Error code 0x80070570 appears when installing python 3.5.0 (32-bit) setup > for my windows 8.1 system. Please help me to solve this problem. 0x80070570 is ERROR_FILE_CORRUPT: the file or directory is corrupted and unreadable. It could be an intermittent proble

Re: Check if a given value is out of certain range

2015-09-30 Thread alister
On Wed, 30 Sep 2015 21:06:02 +0300, Marko Rauhamaa wrote: > Grant Edwards : > >> not (0 <= x <= 10) (I) >> [...] >>(x < 0) or (x > 10) (II) >> [...] >> IMO, (I) is _more_ readable than (II) > > IMO, they're equally readable (except that you should drop the redundant > parenth

Re: ConnectionError handling problem

2015-09-30 Thread Cameron Simpson
On 29Sep2015 23:04, shiva upreti wrote: On Friday, September 25, 2015 at 12:55:01 PM UTC+5:30, Cameron Simpson wrote: Ok. You original code says: try: r=requests.post(url, data=query_args) except: print "Connection error" and presumably we think your code is hanging inside the req

Re: ConnectionError handling problem

2015-09-30 Thread Laura Creighton
In a message of Thu, 01 Oct 2015 07:30:59 +1000, Cameron Simpson writes: >Most likely the Ctrl-C interrupts whatever system call is hanging, causing it >to return (failed, probably with errno EINTR). And the python program resumes >because the OS system call has returned. > >Cheers, >Cameron Simp

Re: Check if a given value is out of certain range

2015-09-30 Thread Mark Lawrence
On 30/09/2015 19:31, sohcahto...@gmail.com wrote: On Tuesday, September 29, 2015 at 1:33:23 PM UTC-7, Mark Lawrence wrote: On 29/09/2015 17:48, Rob Gaddi wrote: On Tue, 29 Sep 2015 10:16:04 +0530, Laxmikant Chitare wrote: Hi, I know there is an elegant way to check if a given value is within

Re: Error code 0x80070570

2015-09-30 Thread Denis McMahon
On Wed, 30 Sep 2015 23:06:13 +0530, Rusiri Jayalath wrote: > Error code 0x80070570 appears when installing python 3.5.0 (32-bit) > setup for my windows 8.1 system. Please help me to solve this problem. This seems to be a windows error, not a python issue. Try google. -- Denis McMahon, denismfmc

Re: Question about regular expression

2015-09-30 Thread Denis McMahon
On Wed, 30 Sep 2015 11:34:04 -0700, massi_srb wrote: > firstly the description of my problem. I have a string in the following > form: . The way I solved this was to: 1) replace all the punctuation in the string with spaces 2) split the string on space 3) process each thing in the list to

Re: Question about regular expression

2015-09-30 Thread Emile van Sebille
On 9/30/2015 12:20 PM, Tim Chase wrote: On 2015-09-30 11:34, massi_...@msn.com wrote: I guess this problem can be tackled with regular expressions, b ... However, if you *want* to do it with regular expressions, you can. It's ugly and might be fragile, but ##