Re: UNABLE TO GET IDLE TO RUN

2015-11-01 Thread Terry Reedy
On 11/1/2015 7:50 PM, Paul Rubin wrote: Terry Reedy writes: * 'Save-as' is not part of the regular workflow. It is done once per file. Experienced users who know to avoid stdlib names will not see the messages unless they accidentally duplicate one -- which is possible because there are now s

Re: Problem in implementing Romania Map using Paython Script

2015-11-01 Thread Christian Gollwitzer
Am 02.11.15 um 06:30 schrieb amn...@gmail.com: Dear all; I want to code algorithm in Python for driving from Arad to Bucharest as quickly as possible. It sounds a lot like a homework problem. If so, look into your notes for "Dijkstra algorithm", or "A* algorithm". If not, look for a library

Re: python doesn't install

2015-11-01 Thread Tim Golden
On 02/11/2015 00:08, Daniel Joffe wrote: WinXP...32 bits...professional I keep getting message note also that there is no place on the install box to start...you just click somewhere, and the install started. I'm afraid you've been bitten by the fact that we no longer support Windows XP an

python doesn't install

2015-11-01 Thread Daniel Joffe
WinXP...32 bits...professional I keep getting message note also that there is no place on the install box to start...you just click somewhere, and the install started. -- https://mail.python.org/mailman/listinfo/python-list

Re: Problem in implementing Romania Map using Paython Script

2015-11-01 Thread Ben Finney
amn...@gmail.com writes: > I need a help in completing the Class Roaming problem using Euclidean > function , Completing the Class Node . I think you need to research how to solve this algorithm, and only *then* think about how to code it in Python. Is this a homework assignment? > And def

Problem in implementing Romania Map using Paython Script

2015-11-01 Thread amnaee
Dear all; I want to code algorithm in Python for driving from Arad to Bucharest as quickly as possible. I formulated the problem in python as following : 1- States : Various cities. 2- Actions : Drive distances between different cities. 3- Goal : To be in Bucharest. class Problem: def __ini

testfixtures 4.4.0 Released!

2015-11-01 Thread Chris Withers
Hi All, I'm pleased to announce the release of testfixtures 4.4.0. This is a feature release that adds the following: - Add support for labelling the arguments passed to compare(). - Allow expected and actual keyword parameters to be passed to compare(). - Fix "TypeError: unorderable types

Re: UNABLE TO GET IDLE TO RUN

2015-11-01 Thread Chris Angelico
On Mon, Nov 2, 2015 at 12:19 PM, Steven D'Aprano wrote: > - Python as a whole should move "" from the start of sys.path to the end (or > at least the middle, after the stdlib) so as to avoid accidental shadowing. > > - Even if Python doesn't do this, IDLE could do it, and could do it > immediately

Re: installer user interface glitch ?

2015-11-01 Thread Chris Angelico
On Mon, Nov 2, 2015 at 12:32 PM, Steven D'Aprano wrote: > On Mon, 2 Nov 2015 03:43 am, Chris Angelico wrote: > >> Remember, people can click a direct download link >> *on the python.org front page* and be immediately downloading Python 2 >> or 3 for the OS that the browser announces. Where would y

Re: installer user interface glitch ?

2015-11-01 Thread Steven D'Aprano
On Mon, 2 Nov 2015 03:43 am, Chris Angelico wrote: > Remember, people can click a direct download link > *on the python.org front page* and be immediately downloading Python 2 > or 3 for the OS that the browser announces. Where would you put the > big fat noisy warning? Maybe the website shouldn'

Re: UNABLE TO GET IDLE TO RUN

2015-11-01 Thread Steven D'Aprano
On Mon, 2 Nov 2015 11:07 am, Terry Reedy wrote: > On 11/1/2015 11:17 AM, Laura Creighton wrote: > >> In a message of Mon, 02 Nov 2015 01:27:23 +1100, "Steven D'Aprano" writes >> a reply to Michael Overtoon: > > He was actually responding to my proposal to warn about duplicating > stdlib names wh

Re: installer user interface glitch ?

2015-11-01 Thread Terry Reedy
On 11/1/2015 10:54 AM, Michiel Overtoom wrote: On 01 Nov 2015, at 16:43, rurpy--- via Python-list wrote: Why, oh why, do the python.org front page and other pages that offer a Windows download not say a word about it not running on Windows XP? I'm also curious why Python 3.5 won't run on Wi

Re: UNABLE TO GET IDLE TO RUN

2015-11-01 Thread Steven D'Aprano
On Mon, 2 Nov 2015 03:17 am, Laura Creighton wrote: > I managed to delete the real mail I would like to reply to. > This is, at least in the same thread > > In a message of Mon, 02 Nov 2015 01:27:23 +1100, "Steven D'Aprano" writes > a reply to Michael Overtoon: Actually it's a reply to Terr

Re: UNABLE TO GET IDLE TO RUN

2015-11-01 Thread Paul Rubin
Terry Reedy writes: > * 'Save-as' is not part of the regular workflow. It is done once per > file. Experienced users who know to avoid stdlib names will not see > the messages unless they accidentally duplicate one -- which is > possible because there are now so many. I personally would like be

Re: installer user interface glitch ?

2015-11-01 Thread Terry Reedy
On 11/1/2015 5:28 PM, boB Stepp wrote: On Sun, Nov 1, 2015 at 3:48 PM, Laura Creighton wrote: Actually, adding the XP - do not look here -- message for several webpages has been on the pydotorg todo list for more than a week now. Not sure why it hasn't happened. Thank you for the reminder.

Re: UNABLE TO GET IDLE TO RUN

2015-11-01 Thread Terry Reedy
On 11/1/2015 11:17 AM, Laura Creighton wrote: In a message of Mon, 02 Nov 2015 01:27:23 +1100, "Steven D'Aprano" writes a reply to Michael Overtoon: He was actually responding to my proposal to warn about duplicating stdlib names when saving-as. Users are inclined to ignore alerts, dialogs

Re: Multithreading python,two tkinter windows

2015-11-01 Thread Terry Reedy
On 11/1/2015 9:05 AM, Vindhyachal Takniki wrote: I have made a python code & using multithreading in it. this is very basic code, not using queues & other stuff. You can run multiple windows, or one window with multiple panes, in one thread with one event loop. Best to do gui stuff in the ma

Re: Python 2 vs Python 3 for teaching

2015-11-01 Thread Ben Finney
writes: > This would make an excellent opportunity to develop a curriculum to > teach students how to maintain a 2.x and 3.x code base using 2to3. The advice today reflects the great progress that has been made over many years of migrating projects and organisations to Python 3. Instead of ‘2to

Re: installer user interface glitch ?

2015-11-01 Thread Chris Angelico
On Mon, Nov 2, 2015 at 9:28 AM, boB Stepp wrote: > Of course if such > people would only type in their issue into their favorite search > engine... But that is a different issue--heavy sigh! In their defense, "the installer for Python has a blank window" isn't nearly as internet-searchable as an

Re: installer user interface glitch ?

2015-11-01 Thread boB Stepp
On Sun, Nov 1, 2015 at 3:48 PM, Laura Creighton wrote: > Actually, adding the XP - do not look here -- > message for several webpages has been on the pydotorg > todo list for more than a week now. > > Not sure why it hasn't happened. > > Thank you for the reminder. I have to confess I do not unde

Re: PyPy subprocess

2015-11-01 Thread Chris Angelico
On Mon, Nov 2, 2015 at 8:27 AM, LJ wrote: > Im wondering if there is a way in which I can use PyPy to solve the just > subproblems in parallel, and return to CPython for the overall routines. > You could. What you'd have would be a setup where the subprocess is utterly independent of the parent;

Re: Python 2 vs Python 3 for teaching

2015-11-01 Thread Chris Angelico
On Mon, Nov 2, 2015 at 6:47 AM, Paul Rubin wrote: > Chris Angelico writes: >> We teach 3.4 (because that's what's available on the Ubuntu VMs that >> we're recommending; anything 3.2+ will probably work just the same), >> and that's it. > > The async keyword seems like one of Py3's bigger improve

Re: installer user interface glitch ?

2015-11-01 Thread Laura Creighton
Actually, adding the XP - do not look here -- message for several webpages has been on the pydotorg todo list for more than a week now. Not sure why it hasn't happened. Thank you for the reminder. Laura -- https://mail.python.org/mailman/listinfo/python-list

PyPy subprocess

2015-11-01 Thread LJ
By the way, Im using python 2.7. Thanks -- https://mail.python.org/mailman/listinfo/python-list

PyPy subprocess

2015-11-01 Thread LJ
Hi All. I hope you're having a good weekend. Im working on a large scale optimization problem which invokes the Gurobi solver from python. Before invoking the solver I use pure python to solve five subproblems in parallel using the multiprocessing module. These subproblems are the bottleneck of

Re: installer user interface glitch ?

2015-11-01 Thread MRAB
On 2015-11-01 19:41, rurpy--- via Python-list wrote: On 11/01/2015 09:43 AM, Chris Angelico wrote: On Mon, Nov 2, 2015 at 3:24 AM, rurpy--- via Python-list wrote: [snip] That is really shitty customer relations. See above, and define 'customer'. customer: the people to whom you are provi

Re: Python 2 vs Python 3 for teaching

2015-11-01 Thread Paul Rubin
Chris Angelico writes: > We teach 3.4 (because that's what's available on the Ubuntu VMs that > we're recommending; anything 3.2+ will probably work just the same), > and that's it. The async keyword seems like one of Py3's bigger improvements and it makes its appearance in 3.5, iirc. -- https:/

Re: installer user interface glitch ?

2015-11-01 Thread rurpy--- via Python-list
On 11/01/2015 09:43 AM, Chris Angelico wrote: > On Mon, Nov 2, 2015 at 3:24 AM, rurpy--- via Python-list > wrote: >> I dont recall seeing anyone posting asking why they could not get >> Python to install on Windows 95 recently. I only read this group >> intermittently but I have seen *many* post

Re: installer user interface glitch ?

2015-11-01 Thread Laura Creighton
In a message of Sun, 01 Nov 2015 17:56:33 +, Grant Edwards writes: >On 2015-11-01, Laura Creighton wrote: > >> The whole message of 'get a newer os' is decidedly hard for them. >> "It works fine, like my 2004 Ford car" they want to tell you. > >Except it _doesn't_ work fine, or they wouldn't b

Re: installer user interface glitch ?

2015-11-01 Thread Grant Edwards
On 2015-11-01, Laura Creighton wrote: > The whole message of 'get a newer os' is decidedly hard for them. > "It works fine, like my 2004 Ford car" they want to tell you. Except it _doesn't_ work fine, or they wouldn't be complaining. If you want to run Python 3.5, then XP just doesn't work. Wh

Re: installer user interface glitch ?

2015-11-01 Thread Laura Creighton
The important thing is that, numbers-wise, windowsXP was the version of computer a whole lot of people got when they got their first computer. The notion of, not it "wearing out" but that the whole world "wore out" or "advanced beyond" them is foreign to them. They aren't computer-hobbyists -- t

Re: installer user interface glitch ?

2015-11-01 Thread Chris Angelico
On Mon, Nov 2, 2015 at 3:39 AM, Michael Torrie wrote: > On 11/01/2015 03:08 AM, Chris Angelico wrote: >> Windows XP has now been around for twelve years. > > It's older than that. Release date was August 1, 2001. More than 14 > years ago. My how the time flies. > > Though more recent versions o

Re: installer user interface glitch ?

2015-11-01 Thread Chris Angelico
On Mon, Nov 2, 2015 at 3:24 AM, rurpy--- via Python-list wrote: > I dont recall seeing anyone posting asking why they could not get > Python to install on Windows 95 recently. I only read this group > intermittently but I have seen *many* posts asking why they couldnt > install on XP. > > You ack

Re: installer user interface glitch ?

2015-11-01 Thread Michael Torrie
On 11/01/2015 03:08 AM, Chris Angelico wrote: > Windows XP has now been around for twelve years. It's older than that. Release date was August 1, 2001. More than 14 years ago. My how the time flies. Though more recent versions of Windows have added features (which Python now takes advantage o

Re: installer user interface glitch ?

2015-11-01 Thread rurpy--- via Python-list
On Sunday, November 1, 2015 at 8:52:55 AM UTC-7, Chris Angelico wrote: > On Mon, Nov 2, 2015 at 2:43 AM, rurpy--- via Python-list > wrote: > > Why, oh why, do the python.org front page and other pages that offer > > a Windows download not say a word about it not running on Windows XP? > > > > Eve

Re: UNABLE TO GET IDLE TO RUN

2015-11-01 Thread Laura Creighton
I managed to delete the real mail I would like to reply to. This is, at least in the same thread In a message of Mon, 02 Nov 2015 01:27:23 +1100, "Steven D'Aprano" writes a reply to Michael Overtoon: > Users are inclined to ignore alerts, dialogs and error messages, and > applications try ve

Re: installer user interface glitch ?

2015-11-01 Thread Michiel Overtoom
> On 01 Nov 2015, at 16:43, rurpy--- via Python-list > wrote: > > Why, oh why, do the python.org front page and other pages that offer > a Windows download not say a word about it not running on Windows XP? I'm also curious why Python 3.5 won't run on Windows XP. Which features does it use th

Re: installer user interface glitch ?

2015-11-01 Thread Chris Angelico
On Mon, Nov 2, 2015 at 2:43 AM, rurpy--- via Python-list wrote: > Why, oh why, do the python.org front page and other pages that offer > a Windows download not say a word about it not running on Windows XP? > > Even if one is anal enough to go to the page about the 3.5 release. > https://www.pyt

Re: installer user interface glitch ?

2015-11-01 Thread rurpy--- via Python-list
On 11/01/2015 03:06 AM, Chris Warrick wrote: > On 1 November 2015 at 09:23, t_ciorba--- via Python-list > wrote: >> >> hi, i am not sure what is wrong, but after launching the installer >> for windows XPsp3 python-3.5.0.exe i couldnt see what i have to >> select, it was a white board and the onl

Re: UNABLE TO GET IDLE TO RUN

2015-11-01 Thread Tim Golden
On 01/11/2015 14:27, Steven D'Aprano wrote: I remember from a few weeks back, a teacher with the same problem posted this on the mailinglist. Eventually she had a technician coming in to reinstall Windows, just to fix this problem ;-) What an overkill... If that is true, that's really sad. Were

Re: Python 2 vs Python 3 for teaching

2015-11-01 Thread Chris Angelico
On Mon, Nov 2, 2015 at 1:49 AM, Laura Creighton wrote: >>I'd rather not use 2to3 there. If you want to maintain a library that >>can be used from 2.x and 3.x, it's much better to aim for the >>compatible middle - u prefixes on all Unicode strings, b prefixes on >>all byte strings, stick to ASCII w

Re: Python 2 vs Python 3 for teaching

2015-11-01 Thread Laura Creighton
In a message of Mon, 02 Nov 2015 01:27:24 +1100, Chris Angelico writes: >On Mon, Nov 2, 2015 at 1:11 AM, wrote: >> On Nov 1, 2015 2:45 AM, "Chris Angelico" wrote: >>> >>> I'm proud to say that a Python tutoring company has just converted its >>> course over from teaching Python 2.7 to teaching 3

Re: UNABLE TO GET IDLE TO RUN

2015-11-01 Thread Steven D'Aprano
On Sun, 1 Nov 2015 01:50 pm, Terry Reedy wrote: > On 10/31/2015 9:45 PM, Michiel Overtoom wrote: >> I'd go even a step further. I think IDLE should not only warn, but > > The warning will require a choice, with the default (if one just hits > ) being to reject the duplicate and go back to the Sa

Re: Multithreading python,two tkinter windows

2015-11-01 Thread Chris Angelico
On Mon, Nov 2, 2015 at 1:05 AM, Vindhyachal Takniki wrote: > #get reading at every 1 second > def get_analog_1(thread_name): > global read_ok_1, current_time_1,analog_1 > while True: > if((time.time() - current_time_1) > 1): > if(0 == read_ok_1): > curre

Re: UNABLE TO GET IDLE TO RUN

2015-11-01 Thread Steven D'Aprano
On Sun, 1 Nov 2015 12:45 pm, Michiel Overtoom wrote: > >> On 31 Oct 2015, at 06:59, Terry Reedy wrote: >> This is a different issue than IDLE avoiding clashes. I opened >> https://bugs.python.org/issue25522 > > Terry, thanks for recording this into the issue tracker. > > I'd go even a step fu

Re: Python 2 vs Python 3 for teaching

2015-11-01 Thread Chris Angelico
On Mon, Nov 2, 2015 at 1:11 AM, wrote: > On Nov 1, 2015 2:45 AM, "Chris Angelico" wrote: >> >> I'm proud to say that a Python tutoring company has just converted its >> course over from teaching Python 2.7 to teaching 3.x. For the >> naysayers out there, it actually wasn't much of a transition;

Re: Multithreading python,two tkinter windows

2015-11-01 Thread Laura Creighton
In a message of Sun, 01 Nov 2015 06:05:58 -0800, Vindhyachal Takniki writes: >I have made a python code & using multithreading in it. this is very basic >code, not using queues & other stuff. This is your problem. The code that uses queues is more basic. For tkinter you cannot use threads like yo

Re: Python 2 vs Python 3 for teaching

2015-11-01 Thread paul.hermeneutic
On Nov 1, 2015 2:45 AM, "Chris Angelico" wrote: > > I'm proud to say that a Python tutoring company has just converted its > course over from teaching Python 2.7 to teaching 3.x. For the > naysayers out there, it actually wasn't much of a transition; This would make an excellent opportunity to de

Multithreading python,two tkinter windows

2015-11-01 Thread Vindhyachal Takniki
I have made a python code & using multithreading in it. this is very basic code, not using queues & other stuff. 1. Task is to create two independent Tkinter windows 2. Code has four files: main.py:creates individual thread analog.py: generate random values every 1 sec & 10 sec screen.py: Tkint

Re: LU decomposition

2015-11-01 Thread Peter Otten
gers antifx wrote: > I have to write a LU-decomposition. My Code worked so far but (I want to > become better:) ) I want to ask you, if I could write this > LU-decomposition in a better way? > > def LU(x): > L = np.eye((x.shape[0])) > n = x.shape[0] > for ii in range(n-1): > f

Re: installer user interface glitch ?

2015-11-01 Thread Laura Creighton
In a message of Sun, 01 Nov 2015 11:24:55 +0100, Laura Creighton writes: >In a message of Sun, 01 Nov 2015 10:23:15 +0200, t_ciorba--- via Python-list wr >ites: >>hi, >>i am not sure what is wrong, but after launching the installer for windows >>XPsp3 python-3.5.0.exe i couldnt see what i have to

Re: installer user interface glitch ?

2015-11-01 Thread Laura Creighton
In a message of Sun, 01 Nov 2015 10:23:15 +0200, t_ciorba--- via Python-list wr ites: >hi, >i am not sure what is wrong, but after launching the installer for windows >XPsp3 python-3.5.0.exe i couldnt see what i have to select, it was a white >board and the only button on it was "cancel". here is

Re: Puzzled

2015-11-01 Thread Sibylle Koczian
Am 30.10.2015 um 17:20 schrieb Robinson, Wendy: Hi there, I installed Python 3.5.0 64-bit for Windows yesterday and tried some basic programs successfully. This morning I rebooted my computer and can’t get a single one to work. The interpreter seems to be fine and the environment variables look

Re: Puzzled

2015-11-01 Thread Laura Creighton
In a message of Fri, 30 Oct 2015 09:20:23 -0700, "Robinson, Wendy" writes: >Hi there, >I installed Python 3.5.0 64-bit for Windows yesterday and tried some basic >programs successfully. >This morning I rebooted my computer and can't get a single one to work. The >interpreter seems to be fine and

Re: LU decomposition

2015-11-01 Thread Chris Angelico
On Sun, Nov 1, 2015 at 9:04 PM, gers antifx wrote: > I have to write a LU-decomposition. My Code worked so far but (I want to > become better:) ) I want to ask you, if I could write this LU-decomposition > in a better way? > > def LU(x): > L = np.eye((x.shape[0])) > n = x.shape[0] >

Re: Puzzled

2015-11-01 Thread Peter Otten
Robinson, Wendy wrote: > Hi there, > I installed Python 3.5.0 64-bit for Windows yesterday and tried some basic > programs successfully. > This morning I rebooted my computer and can't get a single one to work. > The interpreter seems to be fine and the environment variables look > correct. But

Re: installer user interface glitch ?

2015-11-01 Thread Chris Angelico
On Sun, Nov 1, 2015 at 7:23 PM, t_ciorba--- via Python-list wrote: > > i am not sure what is wrong, but after launching the installer for windows > XPsp3 python-3.5.0.exe i couldnt see what i have to select, it was a white > board and the only button on it was "cancel". > Yep. The installer isn

Re: installer user interface glitch ?

2015-11-01 Thread Chris Warrick
On 1 November 2015 at 09:23, t_ciorba--- via Python-list wrote: > > hi, > i am not sure what is wrong, but after launching the installer for windows > XPsp3 python-3.5.0.exe i couldnt see what i have to select, it was a white > board and the only button on it was "cancel". here is a screen of it

LU decomposition

2015-11-01 Thread gers antifx
Hey, I have to write a LU-decomposition. My Code worked so far but (I want to become better:) ) I want to ask you, if I could write this LU-decomposition in a better way? def LU(x): L = np.eye((x.shape[0])) n = x.shape[0] for ii in range(n-1): for ll in range(1+ii,n):

installer user interface glitch ?

2015-11-01 Thread t_ciorba--- via Python-list
hi, i am not sure what is wrong, but after launching the installer for windows XPsp3 python-3.5.0.exe i couldnt see what i have to select, it was a white board and the only button on it was "cancel". here is a screen of it: when i click on random points of this empty board, i get random stuff,

Puzzled

2015-11-01 Thread Robinson, Wendy
Hi there, I installed Python 3.5.0 64-bit for Windows yesterday and tried some basic programs successfully. This morning I rebooted my computer and can't get a single one to work. The interpreter seems to be fine and the environment variables look correct. But every py file I try to run at the

Re: problems using python in PowerShell

2015-11-01 Thread navid Rahimi
What error message do you get exactly ? without error message how people gonna know what is going on? best wishes, -navid On Fri, Oct 30, 2015 at 6:39 PM, Chris Angelico wrote: > On Sat, Oct 31, 2015 at 1:53 AM, josephine ewers via Python-list > wrote: >> Hi, >> I am doing an online training c

Python 2 vs Python 3 for teaching

2015-11-01 Thread Chris Angelico
I'm proud to say that a Python tutoring company has just converted its course over from teaching Python 2.7 to teaching 3.x. For the naysayers out there, it actually wasn't much of a transition; putting parentheses around all print calls, plus changing the way virtual environments get created, pret