Re: A 'Python like' language

2012-03-02 Thread dreamingforward
On Tuesday, March 30, 2004 6:01:01 AM UTC-7, Gerrit wrote: > > > --Dict should inherit from Set. > > > > Also cool (I feel like the credits of Holy Grail saying Also wik). > > I have read (in c.l.py) that in Smalltalk, a Dict is a Set of Associates > or something similar. I don't know Smalltalk,

Re: A 'Python like' language

2012-03-02 Thread Paul Rubin
dreamingforw...@gmail.com writes: >> hanging out on the Prothon list now and then, at least until we get >> the core language sorted out? > > Haha, a little late, but consider this a restart. It wasn't til I saw the word "Prothon" that I scrolled back and saw you were responding to a thread from 2

Re: A 'Python like' language

2012-03-02 Thread dreamingforward
On Tuesday, March 30, 2004 12:31:35 AM UTC-7, Mark Hahn wrote: > > --Take advantage of iterators early on for return values to avoid > > things like having both dict.items() and dict.iteritems(). > > Interestiong idea. Generators are fully supported so I could do this now. > So gens would have to

Re: How do you use the widgets in tkinter.ttk if you want to "import tkinter as tk"?

2012-03-02 Thread John Salerno
> I suppose the 'advantage' of this is that it will replace tk widgets > with equivalent ttk widgets, if they exist and have the same name. I > believe one has to program them differently, however, so the replacement > cannot be transparent and one mush know anyway what gets replaced and > what

Re: Udacity CS 101

2012-03-02 Thread Josh English
On Monday, February 27, 2012 6:37:25 PM UTC-8, Ray Clark wrote: > > You have to remember that this course assumes no prior computer > programming knowledge. > > I agree, it is starting out very basic. Give it some more time. > These guys have PhDs from MIT and/or have taught at Stanford. They >

Re: How do you use the widgets in tkinter.ttk if you want to "import tkinter as tk"?

2012-03-02 Thread Ben Finney
Terry Reedy writes: > On 3/2/2012 8:48 PM, John Salerno wrote: > > from tkinter import * > > from tkinter.ttk import * > > I suppose the 'advantage' of this is that it will replace tk widgets > with equivalent ttk widgets, if they exist and have the same name. I > believe one has to program them

Re: Unable to install xmldiff package on WIndows7

2012-03-02 Thread gwang
On Jan 3, 11:47 am, hisan wrote: > Hi All > > i have downloaded "xmldiff-0.6.10" from their official site > (http://www.logilab.org/859). > I have tried installing the same on my 32 bit Windows 7 OS using the > command "setup.py install" but below exceptions are thrown in the > console. > please

Re: How do you use the widgets in tkinter.ttk if you want to "import tkinter as tk"?

2012-03-02 Thread Terry Reedy
On 3/2/2012 8:48 PM, John Salerno wrote: According to the Python docs, the way to use tkinter.ttk is this: from tkinter import * from tkinter.ttk import * I suppose the 'advantage' of this is that it will replace tk widgets with equivalent ttk widgets, if they exist and have the same name. I

How do you use the widgets in tkinter.ttk if you want to "import tkinter as tk"?

2012-03-02 Thread John Salerno
According to the Python docs, the way to use tkinter.ttk is this: from tkinter import * from tkinter.ttk import * But what if I don't like this import method and prefer to do: import tkinter as tk How then do I utilize tkinter.ttk using the same name? Or is that not possible? Will I have to us

Re: A possible change to decimal.Decimal?

2012-03-02 Thread Ethan Furman
Jeff Beardsley wrote: HISTORY: In using python 2.7.2 for awhile on a web project (apache/wsgi web.py), I discovered a problem in using decimal.Decimal. A short search revealed that many other people have been having the problem as well, in their own apache/wsgi implementations (django, mos

Re: A possible change to decimal.Decimal?

2012-03-02 Thread Jeff Beardsley
The problem with that though is: I am not the one calling reload(). That is actually being called for me by web.py (or django, or some other framework, take your pick). More than that, I believe it's called (or caused, anyway) by something happening in WSGI under apache. (And I don't really want

A possible change to decimal.Decimal?

2012-03-02 Thread Jeff Beardsley
HISTORY: In using python 2.7.2 for awhile on a web project (apache/wsgi web.py), I discovered a problem in using decimal.Decimal. A short search revealed that many other people have been having the problem as well, in their own apache/wsgi implementations (django, mostly), but I found no rea

Re: Is it necessary to call Tk() when writing a GUI app with Tkinter?

2012-03-02 Thread John Salerno
> After that, you can nest as > many frames, toplevels, and blah widgets under that root window as you > so desire. Actually you don't even need a "frame", you can pack > widgets directly into a Toplevel or Tk widget. This is interesting. I completely understand your point about always calling (a

Re: decompilation

2012-03-02 Thread Karim
Le 02/03/2012 21:18, Arnaud Delobelle a écrit : On 2 March 2012 18:52, shikha panghal wrote: Hi Please decoplile the .pyc code ,as i have lost my .py code. Aha, a customer! I've written a module for this: unpyc3 (http://code.google.com/p/unpyc3/) Here it is in action: Python 3.2.1 (v3.2.1

RE: Python - CGI-BIN - Apache Timeout Problem

2012-03-02 Thread Sean Cavanaugh (scavanau)
Hey All, So maybe this part is important (after doing some troubleshooting) hopefully not everyone has beers in hand already since its Friday :-) The way the code works if you want to send through the firewall (i.e. SERVER->FIREWALL->SERVER) I split the process into two threads. One is l

RE: Python - CGI-BIN - Apache Timeout Problem

2012-03-02 Thread Sean Cavanaugh (scavanau)
Hey Chris, Thanks for your quick reply! I switched my code to-> proc = subprocess.Popen(['/usr/local/bin/python', 'tests.py'], stdout=subprocess.PIPE) out, err = proc.communicate() print out proc.stdout.close() It still dead locked. Interestingly enough When I did a #python tests.py on the c

Re: Is it necessary to call Tk() when writing a GUI app with Tkinter?

2012-03-02 Thread Mel Wilson
Terry Reedy wrote: > The problem was another subtle bug in the current example": > self.hi_there["text"] = "Hello", > > The spurious comma at the end makes the value of the 'text' attribute a > one-elememt tuple and not just a string. I presume tcl-based tk handles > that in the manner a

Re: Python - CGI-BIN - Apache Timeout Problem

2012-03-02 Thread Chris Rebert
On Fri, Mar 2, 2012 at 12:09 PM, Sean Cavanaugh (scavanau) wrote: > THE PROBLEM: > > When I execute the scripts from the command line (#python main.py) it > generates it fine (albeit slowly), it prints all the html code out including > the script.  The ‘core’ part of the script dumbed down to the

Re: Is it necessary to call Tk() when writing a GUI app with Tkinter?

2012-03-02 Thread Terry Reedy
On 3/1/2012 10:43 PM, Terry Reedy wrote: Not sure what is happening on your end, but i don't see any braces. Are you saying that if you change "Hello_World\n(click_me)" to "Hello World\n(click me)", you see Hello World (click me) as I expected, instead of {Hellow World (click me)} as I do

Re: decompilation

2012-03-02 Thread Arnaud Delobelle
On 2 March 2012 18:52, shikha panghal wrote: > Hi > > Please decoplile the .pyc code ,as i have lost my .py code. Aha, a customer! I've written a module for this: unpyc3 (http://code.google.com/p/unpyc3/) Here it is in action: Python 3.2.1 (v3.2.1:ac1f7e5c0510, Jul 9 2011, 01:03:53) [GCC 4.2

Re: decompilation

2012-03-02 Thread Chris Rebert
On Fri, Mar 2, 2012 at 10:52 AM, shikha panghal wrote: > Hi > > Please decoplile the .pyc code ,as i have lost my .py code. Your best shot would be: http://www.crazy-compilers.com/decompyle/ Cheers, Chris -- http://mail.python.org/mailman/listinfo/python-list

Python - CGI-BIN - Apache Timeout Problem

2012-03-02 Thread Sean Cavanaugh (scavanau)
Hello List, Would appreciate some insight/help, ran out of ideas... BRIEF OVERVIEW: I am trying to create a simple webserver gui wrapper for a set of scripts I developed to test some of our firewalls here at Cisco. Being that the total amount of engineer that will ever probably use thi

decompilation

2012-03-02 Thread shikha panghal
Hi Please decoplile the .pyc code ,as i have lost my .py code. Thanks, Shikha hangman322.pyc Description: Binary data -- http://mail.python.org/mailman/listinfo/python-list

Re: New Science Discovery: Perl Detractors Remain Idiots After A Decade!

2012-03-02 Thread Chiron
On Fri, 02 Mar 2012 10:53:30 -0500, Shmuel (Seymour J.) Metz wrote: > In , on 03/02/2012 >at 02:17 PM, Chiron said: > >>What always gets me is how so many people criticized Sokal for doing it, > > Google for Omerta. It's common for whistle blowers to be chastised or > even persecuted. I agr

Re: Is it necessary to call Tk() when writing a GUI app with Tkinter?

2012-03-02 Thread John Salerno
> Indeed. One of the things that motivated me to write the tutorial at > http://www.tkdocs.com is the rather poor state (in terms of being out of > date, incorrect, or demonstrating poor practices) of most Tkinter > documentation. > > Call it self-serving, but I think the Tkinter world would b

Re: Is this the proper way to use a class method?

2012-03-02 Thread John Salerno
> Oh, but it does get passed, just implicitly. `super()` basically grabs > `self` magically from its caller, and uses it to bind method calls on > the magical object returned by `super()`. Thanks again, now I understand :) -- http://mail.python.org/mailman/listinfo/python-list

Re: New Science Discovery: Perl Detractors Remain Idiots After A Decade!

2012-03-02 Thread Seymour J.
In , on 03/02/2012 at 02:17 PM, Chiron said: >What always gets me is how so many people criticized Sokal for doing >it, Google for Omerta. It's common for whistle blowers to be chastised or even persecuted. I agree that the criticism of Prof Sokal was outrageous, but it was also predictable.

Re: Is it necessary to call Tk() when writing a GUI app with Tkinter?

2012-03-02 Thread Mark Roseman
Rick Johnson wrote: > Book authors and Doc authors are not always the most well informed; as > we have witnessed by this very thread! Obviously these tutorials are more > like: "What NOT to do when coding Tkinter GUIs!" No wonder everyone hates > Tkinter. :-) Indeed. One of the things that mo

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-03-02 Thread Kiuhnm
On 3/2/2012 14:12, Xah Lee wrote: On Mar 1, 3:00 am, Kiuhnm wrote: They did not make up the terminology, if that is what you are saying. The concepts of left and right associativity are well-known and accepted in TCS (Theoretical CS). Aho, Sethi and Ullman explain it this way in "Compilers:

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots Af

2012-03-02 Thread Chiron
On Thu, 01 Mar 2012 10:13:11 -0500, Shmuel (Seymour J.) Metz wrote: > In , on 03/01/2012 >at 05:07 AM, Chiron said: > >>Hmm... maybe, instead of just ridiculing him, > > I'm treating him as he treats others. OK. > >>BTW, I happen to agree with you insofar as this poster not understanding

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-03-02 Thread Xah Lee
On Mar 1, 3:00 am, Kiuhnm wrote: > They did not make up the terminology, if that is what you are saying. > The concepts of left and right associativity are well-known and accepted > in TCS (Theoretical CS). > Aho, Sethi and Ullman explain it this way in "Compilers: Principles, > Techniques and T

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots Af

2012-03-02 Thread Seymour J.
In <87k4341j0l@sapphire.mobileactivedefense.com>, on 03/01/2012 at 02:40 PM, Rainer Weikusat said: >You obviously don't have any sense of humour. Certainly I do; I laugh at pretentious loons with delusions of adequacy. -- Shmuel (Seymour J.) Metz, SysProg and JOAT

Re: lang comparison: in-place algorithm for reversing a list in Perl,Python, Lisp

2012-03-02 Thread Xah Lee
Xah Lee wrote: «… One easy way to measure it is whether a programer can read and understand a program without having to delve into its idiosyncrasies. …» Chris Angelico wrote: «Neither the behavior of ints nor the behavior of IEEE floating point is a "quirk" or an "idiosyncracy". …» they are com

Python Developer Job Opportunities

2012-03-02 Thread Matt Jones
I have an opportunity for talented Python Developers with Django experience based in the South of the UK. I am recruiting for a funded new venture set up by two successful entrepreneurs who are experienced and well--respected scientists and mathematicians. They're building a new and radical way

Re: Is this the proper way to use a class method?

2012-03-02 Thread Chris Rebert
On Thu, Mar 1, 2012 at 11:16 PM, John Salerno wrote: >> That's just a coincidence. Your supercall is ought to be: super().move() >> In contrast, super().move(self) calls the superclass instance method >> `move` with 2 arguments, both `self`, which just happens to work given >> your move() method,

Re: Is this the proper way to use a class method?

2012-03-02 Thread Ian Kelly
On Fri, Mar 2, 2012 at 12:16 AM, John Salerno wrote: >> That's just a coincidence. Your supercall is ought to be: super().move() >> In contrast, super().move(self) calls the superclass instance method >> `move` with 2 arguments, both `self`, which just happens to work given >> your move() method,