Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Rustom Mody
On Monday, February 29, 2016 at 11:48:25 AM UTC+5:30, Marko Rauhamaa wrote: > Gordon Levi : > > > Nobody likes filling in forms but how do you suggest converting a form > > based app into something loveable. > > Straight HTML does forms just fine without CSS or JavaScript, yet few > can resist.

Re: Reason for not allowing import twice but allowing reload()

2016-02-28 Thread Chris Angelico
On Mon, Feb 29, 2016 at 6:02 PM, Ian Kelly wrote: >> - if subsequent imports of same module in a session are not effective, why >> not simply flag those attempts as an error, rather than letting them go >> effect-less. > > Because there are legitimate reasons for importing the same module > mult

Re: Reason for not allowing import twice but allowing reload()

2016-02-28 Thread Ian Kelly
On Sun, Feb 28, 2016 at 11:40 PM, wrote: > Hello list, > > We can not import a module twice in a session of Python (subsequent attempts > to import same module don't result in any error though, but it is > not-effective). > > However after making change to module, we can reload() it (if not rel

Re: Reason for not allowing import twice but allowing reload()

2016-02-28 Thread Chris Angelico
On Mon, Feb 29, 2016 at 5:40 PM, wrote: > We can not import a module twice in a session of Python (subsequent attempts > to import same module don't result in any error though, but it is > not-effective). > > However after making change to module, we can reload() it (if not reload(), > we coul

Reason for not allowing import twice but allowing reload()

2016-02-28 Thread alien2utoo
Hello list, We can not import a module twice in a session of Python (subsequent attempts to import same module don't result in any error though, but it is not-effective). However after making change to module, we can reload() it (if not reload(), we could possibly have reimport statement) to ge

Re: Make a unique filesystem path, without creating the file

2016-02-28 Thread Cameron Simpson
On 29Feb2016 00:47, Alan Bawden wrote: Cameron Simpson writes: On 22Feb2016 12:34, Alan Bawden wrote: I have deleted the part of discussion where it seems that we must simply agree to disagree. You think mktemp() is _way_ more dangerous that I do. I certainly think the habit of using it

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Marko Rauhamaa
Gordon Levi : > Nobody likes filling in forms but how do you suggest converting a form > based app into something loveable. Straight HTML does forms just fine without CSS or JavaScript, yet few can resist. > What interface would make you love adding a new contact to your > address book? In my c

Re: Make a unique filesystem path, without creating the file

2016-02-28 Thread Alan Bawden
Cameron Simpson writes: > On 22Feb2016 12:34, Alan Bawden wrote: I have deleted the part of discussion where it seems that we must simply agree to disagree. You think mktemp() is _way_ more dangerous that I do. >>> In fact your use case isn't safe, because _another_ task using mktemp >>> in co

Re: Lineendings (was Everything good about Python except GUI IDE?)

2016-02-28 Thread Rustom Mody
On Monday, February 29, 2016 at 8:05:33 AM UTC+5:30, Ben Finney wrote: > Rustom Mody writes: > > > On Monday, February 29, 2016 at 7:33:18 AM UTC+5:30, Chris Angelico wrote: > > > Never has for any of my projects. Examples please? Actual real > > > problems? I've been using git for years, on mixe

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Gordon Levi
Marko Rauhamaa wrote: >Rustom Mody : > >> On Sunday, February 28, 2016 at 7:22:08 PM UTC+5:30, Marko Rauhamaa wrote: >>> Rustom Mody : >>> >>> > whereas in fact every significant GUI embeds text (possibly >>> > recursively) >>> > >>> > eg TI inside GUI -- think of text inside gimp GUI inside TI

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Gregory Ewing
Steven D'Aprano wrote: That's exactly why I miss Hypercard so much. The builder and the runtime are the same thing. Maybe someone would like to resurrect this project: http://pythoncard.sourceforge.net/ -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Computational Chemistry Analysis

2016-02-28 Thread Jason Swails
On Wed, Feb 24, 2016 at 8:01 PM, Feagans, Mandy wrote: > Dear Python, > > > Hi! I am a student interested in conducting computational analysis of > protein-ligand binding for drug development analysis. Recently, I read of > an individual using a python program for their studies of protein-ligand

Re: Lineendings (was Everything good about Python except GUI IDE?)

2016-02-28 Thread Ben Finney
Rustom Mody writes: > On Monday, February 29, 2016 at 7:33:18 AM UTC+5:30, Chris Angelico wrote: > > Never has for any of my projects. Examples please? Actual real > > problems? I've been using git for years, on mixed platforms for a lot > > of that, and not had a single problem. > > Pragmaticall

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Steven D'Aprano
On Mon, 29 Feb 2016 04:53 am, Chris Angelico wrote: > For example, I have a Dungeons & Dragons character sheet display, in > which there are large numbers of entry fields (editable), labels > (non-editable display, usually calculated from other fields), and less > commonly, drop-down lists and mul

Re: Lineendings (was Everything good about Python except GUI IDE?)

2016-02-28 Thread Rustom Mody
On Monday, February 29, 2016 at 7:33:18 AM UTC+5:30, Chris Angelico wrote: > On Mon, Feb 29, 2016 at 12:55 PM, Rustom Mody wrote: > > On Monday, February 29, 2016 at 7:20:19 AM UTC+5:30, Chris Angelico wrote: > >> On Mon, Feb 29, 2016 at 12:39 PM, Rustom Mody wrote: > >> > Unfortunately that's th

Re: Lineendings (was Everything good about Python except GUI IDE?)

2016-02-28 Thread Chris Angelico
On Mon, Feb 29, 2016 at 12:55 PM, Rustom Mody wrote: > On Monday, February 29, 2016 at 7:20:19 AM UTC+5:30, Chris Angelico wrote: >> On Mon, Feb 29, 2016 at 12:39 PM, Rustom Mody wrote: >> > Unfortunately that's the outlook all major VCSes (not just git) have >> > started >> > with and its wrong

Re: Lineendings (was Everything good about Python except GUI IDE?)

2016-02-28 Thread Rustom Mody
On Monday, February 29, 2016 at 7:20:19 AM UTC+5:30, Chris Angelico wrote: > On Mon, Feb 29, 2016 at 12:39 PM, Rustom Mody wrote: > > Unfortunately that's the outlook all major VCSes (not just git) have started > > with and its wrong. > > Speaking somewhat simplistically: > > On windows one should

Re: Lineendings (was Everything good about Python except GUI IDE?)

2016-02-28 Thread Chris Angelico
On Mon, Feb 29, 2016 at 12:39 PM, Rustom Mody wrote: > Unfortunately that's the outlook all major VCSes (not just git) have started > with and its wrong. > Speaking somewhat simplistically: > On windows one should see CRLF > On *nix LF > And this SHOULD NOT be a diff! > [Assuming the VCS is seriou

Lineendings (was Everything good about Python except GUI IDE?)

2016-02-28 Thread Rustom Mody
On Monday, February 29, 2016 at 6:09:33 AM UTC+5:30, Steven D'Aprano wrote: > On Mon, 29 Feb 2016 01:26 am, Chris Warrick wrote: > > >> git is a *collaborative* tool and should work when the other party is > >> using notepad. > > > > What should git do if someone saves, say, Ruby code as a .py fi

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Michael Torrie
On 02/27/2016 11:13 AM, wrong.addres...@gmail.com wrote: > On Saturday, 27 February 2016 18:08:36 UTC+2, Dietmar Schwertberger >> As of today, there's no Python GUI builder comparable to VB 6. > Thanks for stating this clearly. Everyone here has been trying to > show me various ways to do the kind

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Chris Angelico
On Mon, Feb 29, 2016 at 12:05 PM, Ben Finney wrote: >> Who is the boss here? The user of the tool, or the tool? > > We are unfortunately a slave to decisions made long in the past, to > record some metadata – line endings, text encoding – as in-band content > rather than out-of-band pure metadata.

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Ben Finney
Steven D'Aprano writes: > Changing line endings is neither a structural nor a semantic change to > the content of the file. It's effectively metadata, not data. Hmm. Unlike other examples you give (like filesystem permissions on the file) the line endings *are* content in the file. You may say t

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Chris Angelico
On Mon, Feb 29, 2016 at 11:39 AM, Steven D'Aprano wrote: > If I open a Python file in my editor, accidentally or deliberately change > the content to Ruby code, save and commit, then the VCS obviously should > track the changes because they are actual changes. "Oops, I accidentally pressed Esc-Me

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Steven D'Aprano
On Mon, 29 Feb 2016 01:29 am, BartC wrote: > 20 years ago, when these things were simpler, MS Word had a mind of its > own even then. I had to produce a manual of few hundred pages, with > diagrams and images, and it just wasn't going to happen. Not without > spending a year on it. And employing s

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Terry Reedy
On 2/28/2016 9:29 AM, BartC wrote: (Have you ever had a situation where you have to edit a bit of text where a word is in italic or has some particular style. You delete the word, and try and add some more text, but it persists in using the style of the deleted text rather than the current style

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Steven D'Aprano
On Mon, 29 Feb 2016 01:26 am, Chris Warrick wrote: >> git is a *collaborative* tool and should work when the other party is >> using notepad. > > What should git do if someone saves, say, Ruby code as a .py file? > Should it rename it? Or should it figure out an equivalent snippet of > Python? D

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Steven D'Aprano
On Mon, 29 Feb 2016 12:51 am, Marko Rauhamaa wrote: > Rustom Mody : > >> whereas in fact every significant GUI embeds text (possibly recursively) >> >> eg TI inside GUI -- think of text inside gimp >> GUI inside TI -- think of Word embedding other doc types including >> pictures Which can be recu

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Marko Rauhamaa
Rustom Mody : > On Sunday, February 28, 2016 at 8:38:49 PM UTC+5:30, Marko Rauhamaa wrote: >> We are talking about GUI tools to produce what? Crap? > > You (seem to) be saying that excel is crap. > Do you know it well enough to make that judgement? > Do you have equivalent functionality in some ot

Re: How to read from a file to an arbitrary delimiter efficiently?

2016-02-28 Thread Tim Delaney
On 29 February 2016 at 07:28, Oscar Benjamin wrote: > On 25 February 2016 at 06:50, Steven D'Aprano > wrote: > > > > I have a need to read to an arbitrary delimiter, which might be any of a > > (small) set of characters. For the sake of the exercise, lets say it is > > either ! or ? (for example

Re: Help

2016-02-28 Thread jacob Kruger
On 2016-02-28 9:58 PM, tomwilliamson...@gmail.com wrote: I need to write a program that allows the user to enter a sentence then asks them which word they wish to find- and then tell them the position that word was within the sentence. E.g. Please help with this code Then they enter help it wo

Re: How to read from a file to an arbitrary delimiter efficiently?

2016-02-28 Thread Oscar Benjamin
On 25 February 2016 at 06:50, Steven D'Aprano wrote: > > I have a need to read to an arbitrary delimiter, which might be any of a > (small) set of characters. For the sake of the exercise, lets say it is > either ! or ? (for example). > > I want to read from files reasonably efficiently. I don't m

Help

2016-02-28 Thread tomwilliamson115
I need to write a program that allows the user to enter a sentence then asks them which word they wish to find- and then tell them the position that word was within the sentence. E.g. Please help with this code Then they enter help it would return that it appears in the 2nd position in the se

Re: list index out of range Error , need to fix it or ignore it

2016-02-28 Thread Oscar Benjamin
On 27 February 2016 at 16:50, Ganesh Pal wrote: > Iam on python 2.6 and Linux , I need input on the below program , > here is the spinet of my program It would be much better if you presented a complete program here. Otherwise the missing parts will confuse people. See: http://sscce.org/ > file

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Dietmar Schwertberger
On 28.02.2016 19:47, mm0fmf wrote: I'm no C# expert but I inherited the support of some C# projects. One uses a form to hold the UI objects. When the program is loaded in VS, you see the form and you can drag and drop objects to the form and edit the object properties (text, font, colours etc.)

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread mm0fmf
On 27/02/2016 18:13, wrong.addres...@gmail.com wrote: On Saturday, 27 February 2016 18:08:36 UTC+2, Dietmar Schwertberger wrote: On 27.02.2016 12:18, wrong.addres...@gmail.com wrote: Isn't there any good GUI IDE like Visual Basic? I hope there are some less well known GUI IDEs which I did not

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Chris Angelico
On Sun, Feb 28, 2016 at 11:50 PM, Steven D'Aprano wrote: > On Sun, 28 Feb 2016 07:44 pm, Chris Angelico wrote: > >> On Sun, Feb 28, 2016 at 5:34 PM, Steven D'Aprano >> wrote: > [...] >>> Drag-and-drop GUI builders have the same advantages over code as Python >>> has over languages with distinct c

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Dietmar Schwertberger
On 28.02.2016 18:03, Dennis Lee Bieber wrote: Office 2002 (or was it 2003... Whatever I had on my WinXP box) was, I thought, rather easy to work styles in... Automatically shifting from header to body text style on ; Having first body paragraph after a header use block format while subseq

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Mark Lawrence
On 28/02/2016 14:00, Chris Warrick wrote: On 28 February 2016 at 14:49, Rustom Mody wrote: On Sunday, February 28, 2016 at 6:54:40 PM UTC+5:30, Gordon Levi wrote: Rustom Mody wrote: Glade generates XML (last I saw) XML is text... kinda... but not quite eg XML is sometimes/somewhere space sen

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Rustom Mody
On Sunday, February 28, 2016 at 7:57:17 PM UTC+5:30, Chris Warrick wrote: > (Notepad does not understand LF line endings and replaces them with > boxes. I also don't think a Notepad user is likely to provide good > contributions, but that's another thing) You seem to have not worked in a web dev t

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Rustom Mody
On Sunday, February 28, 2016 at 8:38:49 PM UTC+5:30, Marko Rauhamaa wrote: > Rustom Mody : > > > On Sunday, February 28, 2016 at 7:22:08 PM UTC+5:30, Marko Rauhamaa wrote: > >> Rustom Mody : > >> > >> > whereas in fact every significant GUI embeds text (possibly > >> > recursively) > >> > > >> >

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Marko Rauhamaa
Rustom Mody : > On Sunday, February 28, 2016 at 7:22:08 PM UTC+5:30, Marko Rauhamaa wrote: >> Rustom Mody : >> >> > whereas in fact every significant GUI embeds text (possibly >> > recursively) >> > >> > eg TI inside GUI -- think of text inside gimp GUI inside TI -- >> > think of Word embedding o

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread BartC
On 28/02/2016 14:03, Rustom Mody wrote: On Sunday, February 28, 2016 at 7:22:08 PM UTC+5:30, Marko Rauhamaa wrote: Rustom Mody : whereas in fact every significant GUI embeds text (possibly recursively) eg TI inside GUI -- think of text inside gimp GUI inside TI -- think of Word embedding othe

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Chris Warrick
On 28 February 2016 at 15:11, Rustom Mody wrote: > On Sunday, February 28, 2016 at 7:30:57 PM UTC+5:30, Chris Warrick wrote: >> On 28 February 2016 at 14:49, Rustom Mody wrote: >> > On Sunday, February 28, 2016 at 6:54:40 PM UTC+5:30, Gordon Levi wrote: >> >> Rustom Mody wrote: >> >> >Glade gene

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Rustom Mody
On Sunday, February 28, 2016 at 7:30:57 PM UTC+5:30, Chris Warrick wrote: > On 28 February 2016 at 14:49, Rustom Mody wrote: > > On Sunday, February 28, 2016 at 6:54:40 PM UTC+5:30, Gordon Levi wrote: > >> Rustom Mody wrote: > >> >Glade generates XML (last I saw) > >> >XML is text... kinda... but

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Rustom Mody
On Sunday, February 28, 2016 at 7:22:08 PM UTC+5:30, Marko Rauhamaa wrote: > Rustom Mody : > > > whereas in fact every significant GUI embeds text (possibly recursively) > > > > eg TI inside GUI -- think of text inside gimp > > GUI inside TI -- think of Word embedding other doc types including pic

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Chris Warrick
On 28 February 2016 at 14:49, Rustom Mody wrote: > On Sunday, February 28, 2016 at 6:54:40 PM UTC+5:30, Gordon Levi wrote: >> Rustom Mody wrote: >> >Glade generates XML (last I saw) >> >XML is text... kinda... but not quite >> >eg XML is sometimes/somewhere space sensitive, sometimes not >> >This

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Marko Rauhamaa
Rustom Mody : > whereas in fact every significant GUI embeds text (possibly recursively) > > eg TI inside GUI -- think of text inside gimp > GUI inside TI -- think of Word embedding other doc types including pictures > Which can be recursive -- WOrd embeds a picture embeds text Sigh, still nobody

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Rustom Mody
On Sunday, February 28, 2016 at 6:54:40 PM UTC+5:30, Gordon Levi wrote: > Rustom Mody wrote: > >Glade generates XML (last I saw) > >XML is text... kinda... but not quite > >eg XML is sometimes/somewhere space sensitive, sometimes not > >This can generate messy diffs > > That is also true of Pytho

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Gordon Levi
Rustom Mody wrote: >On Sunday, February 28, 2016 at 6:38:40 PM UTC+5:30, Gordon Levi wrote: >> Chris Angelico wrote: >> >> >On Sun, Feb 28, 2016 at 9:25 PM, Rustom Mody wrote: >> >> Code is always the last resort for arbitrary complexity >> >> Lets keep it the last resort. >> >> >> >> If the bo

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Rustom Mody
On Sunday, February 28, 2016 at 6:37:49 PM UTC+5:30, BartC wrote: > On 28/02/2016 12:54, Rustom Mody wrote: > > On Sunday, February 28, 2016 at 6:08:44 PM UTC+5:30, BartC wrote: > > >> You have to give someone some shopping to do. What's quicker, jotting > >> down a list of milk, bread, eggs and s

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Dietmar Schwertberger
On 28.02.2016 13:52, c...@isbd.net wrote: Dietmar Schwertberger wrote: There were and probably still are better word processors, especially for scientific use. E.g. Latex or reStructuredText, not GUI. I was more thinking of TechWriter on RISC OS. For Windows there are probably similar offer

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Rustom Mody
On Sunday, February 28, 2016 at 6:38:40 PM UTC+5:30, Gordon Levi wrote: > Chris Angelico wrote: > > >On Sun, Feb 28, 2016 at 9:25 PM, Rustom Mody wrote: > >> Code is always the last resort for arbitrary complexity > >> Lets keep it the last resort. > >> > >> If the bottom-line is that python's GU

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Gordon Levi
Chris Angelico wrote: >On Sun, Feb 28, 2016 at 9:25 PM, Rustom Mody wrote: >> Code is always the last resort for arbitrary complexity >> Lets keep it the last resort. >> >> If the bottom-line is that python's GUI-builders are so deep into suxland >> that they are best avoided in place of hand-wr

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread BartC
On 28/02/2016 12:54, Rustom Mody wrote: On Sunday, February 28, 2016 at 6:08:44 PM UTC+5:30, BartC wrote: You have to give someone some shopping to do. What's quicker, jotting down a list of milk, bread, eggs and so on, or invoking some GUI program where you have to first look for each categor

Re: list index out of range Error , need to fix it or ignore it

2016-02-28 Thread Steven D'Aprano
On Sun, 28 Feb 2016 03:50 am, Ganesh Pal wrote: > Iam on python 2.6 and Linux , I need input on the below program , > here is the spinet of my program > > > filename='/tmp2/2.txt' > > def check_file(): > """ > Run the command parallel on all the machines , if there is a > file named /

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread cl
Dietmar Schwertberger wrote: > On 28.02.2016 13:23, Sven R. Kunze wrote: > > I recently introduced LaTeX to my girlfriend. LaTeX is quite ugly and > > it has this "distinct compile/execute step", so initially I hesitated > > to show it to her. But her MS Word experience got worse and worse the

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Rustom Mody
On Sunday, February 28, 2016 at 6:08:44 PM UTC+5:30, BartC wrote: > On 28/02/2016 06:34, Steven D'Aprano wrote: > > > GUI elements are by definition graphical in nature, and like other graphical > > elements, manipulation by hand is superior to command-based manipulation. > > Graphical interfaces

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Steven D'Aprano
On Sun, 28 Feb 2016 07:44 pm, Chris Angelico wrote: > On Sun, Feb 28, 2016 at 5:34 PM, Steven D'Aprano > wrote: [...] >> Drag-and-drop GUI builders have the same advantages over code as Python >> has over languages with distinct compile/execute steps: rapid >> development, prototyping, exploratio

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread BartC
On 28/02/2016 06:34, Steven D'Aprano wrote: GUI elements are by definition graphical in nature, and like other graphical elements, manipulation by hand is superior to command-based manipulation. Graphical interfaces for manipulating graphics have won the UI war so effectively that some people ha

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Dietmar Schwertberger
On 28.02.2016 13:23, Sven R. Kunze wrote: I recently introduced LaTeX to my girlfriend. LaTeX is quite ugly and it has this "distinct compile/execute step", so initially I hesitated to show it to her. But her MS Word experience got worse and worse the more complex (and especially larger) her wo

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Sven R. Kunze
On 28.02.2016 07:34, Steven D'Aprano wrote: I think that's out-and-out wrong, and harmful to the developer community. I think that we're stuck in the equivalent of the pre-WYSIWYG days of word processing: you can format documents as nicely as you like, but you have to use a separate mode to see i

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Virgil Stokes
On 2016-Feb-27 19:13, wrong.addres...@gmail.com wrote: On Saturday, 27 February 2016 18:08:36 UTC+2, Dietmar Schwertberger wrote: On 27.02.2016 12:18, wrong.addres...@gmail.com wrote: Isn't there any good GUI IDE like Visual Basic? I hope there are some less well known GUI IDEs which I did no

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Sibylle Koczian
Am 27.02.2016 um 19:13 schrieb wrong.addres...@gmail.com: On Saturday, 27 February 2016 18:08:36 UTC+2, Dietmar Schwertberger wrote: On 27.02.2016 12:18, wrong.addres...@gmail.com wrote: Isn't there any good GUI IDE like Visual Basic? I hope there are some less well known GUI IDEs which I did

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Chris Angelico
On Sun, Feb 28, 2016 at 9:25 PM, Rustom Mody wrote: > Code is always the last resort for arbitrary complexity > Lets keep it the last resort. > > If the bottom-line is that python's GUI-builders are so deep into suxland > that they are best avoided in place of hand-written code, thats fine (by me)

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Rustom Mody
On Sunday, February 28, 2016 at 2:15:10 PM UTC+5:30, Chris Angelico wrote: > On Sun, Feb 28, 2016 at 5:34 PM, Steven D'Aprano wrote: > > On Sat, 27 Feb 2016 11:07 pm, Chris Angelico wrote: > > > >>> Isn't there any good GUI IDE like Visual Basic? I hope there are some > >>> less well known GUI IDEs

Re: Bug in Python?

2016-02-28 Thread Sven R. Kunze
On 27.02.2016 12:48, Terry Reedy wrote: On 2/27/2016 4:44 AM, Steven D'Aprano wrote: On Sat, 27 Feb 2016 07:55 pm, Terry Reedy wrote: In other words, when that doc says *list*, it means a *list*. "To create a heap, use a list initialized to [], or you can transform a populated list into a hea

Re: Bug in Python?

2016-02-28 Thread Sven R. Kunze
On 27.02.2016 00:07, eryk sun wrote: On Fri, Feb 26, 2016 at 4:08 PM, Sven R. Kunze wrote: Python sometimes seems not to hop back and forth between C and Python code. Can somebody explain this? Normally a C extension would call PySequence_SetItem, which would call the type's sq_ass_item, whi

Re: Bug in Python?

2016-02-28 Thread Sven R. Kunze
On 26.02.2016 23:37, Ian Kelly wrote: On Fri, Feb 26, 2016 at 3:08 PM, Sven R. Kunze wrote: Python sometimes seems not to hop back and forth between C and Python code. C code as a rule tends to ignore dunder methods. Those are used to implement Python operations, not C operations. Ah, good t

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Chris Angelico
On Sun, Feb 28, 2016 at 6:39 PM, Rustom Mody wrote: > A sensible view > And more helpful than pretending that neanderthal == civilized > > Chris: Is it easier to work out the best-lookkng colors with a color picker or > with hacking through a million #rrggbb combos? Given that "best-looking" is a

Re: Everything good about Python except GUI IDE?

2016-02-28 Thread Chris Angelico
On Sun, Feb 28, 2016 at 5:34 PM, Steven D'Aprano wrote: > On Sat, 27 Feb 2016 11:07 pm, Chris Angelico wrote: > >>> Isn't there any good GUI IDE like Visual Basic? I hope there are some >>> less well known GUI IDEs which I did not come across. Thanks. >> >> Sounds like the advantage lies with Pyth

Re: list index out of range Error , need to fix it or ignore it

2016-02-28 Thread Ganesh Pal
>> > what is run(...) > The run (_ is a wrapper it uses suprocess.Popen and returns stdout ,error and extitcod e > not a good idea to have catchall exception how to fix this ? > >> > return False >> > if __name__ == '__main__': >> > main() >> > >> -- >> > copy and paste your tr