Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-11 Thread tfgordon
Consider Clojure: http://clojure.org/ You might want to watch one of these videos for an overview: http://clojure.blip.tv/ There is also evidence that Clojure is currently the most popular Lisp, more "popular" than Scheme or Common Lisp, whatever that means: http://www.google.com/trends?q=com

Re: GUIs - A Modest Proposal

2010-06-11 Thread Mark Lawrence
On 12/06/2010 03:34, Steven D'Aprano wrote: On Sat, 12 Jun 2010 14:13:44 +1200, Gregory Ewing wrote: Steven D'Aprano wrote: This reminds me of time-travellers suffering from "time lag" in the wonderful novel "To Say Nothing Of The Dog" by Connie Willis. One of the many excellent reasons why

Re: lambda question

2010-06-11 Thread Ian Kelly
On Fri, Jun 11, 2010 at 9:31 PM, Vincent Davis wrote: > Starting with an example. > In [23]: x = [1,2,3,4,4,4,5,5,3,2,2,] > In [24]: y = set(x) > In [25]: y > Out[25]: set([1, 2, 3, 4, 5]) > In [26]: y2 = len(set(x)) > In [27]: y2 > Out[27]: 5 > > How would I do the above "y2 = len(set(x))" but ha

Re: GUIs - A Modest Proposal

2010-06-11 Thread Stephen Hansen
On 6/11/10 7:11 PM, Gregory Ewing wrote: > Stephen Hansen wrote: > >> There's very little you can do with pywin32 that you can't do with >> ctypes. > > Except, apparently, use it from another module in the stdlib. :-( > Yeah. I get the policy in general, a proliferation of ctypes stuff could be

lambda question

2010-06-11 Thread Vincent Davis
Starting with an example. In [23]: x = [1,2,3,4,4,4,5,5,3,2,2,] In [24]: y = set(x) In [25]: y Out[25]: set([1, 2, 3, 4, 5]) In [26]: y2 = len(set(x)) In [27]: y2 Out[27]: 5 How would I do the above "y2 = len(set(x))" but have len(set()) in a dictionary. I know how to do .. In [30]: d = dict(s=set

Re: GUIs - A Modest Proposal

2010-06-11 Thread Steven D'Aprano
On Sat, 12 Jun 2010 14:13:44 +1200, Gregory Ewing wrote: > Steven D'Aprano wrote: >> This >> reminds me of time-travellers suffering from "time lag" in the >> wonderful novel "To Say Nothing Of The Dog" by Connie Willis. > > One of the many excellent reasons why Guido keeps tight control over the

Re: GUIs - A Modest Proposal

2010-06-11 Thread Gregory Ewing
Steven D'Aprano wrote: This reminds me of time-travellers suffering from "time lag" in the wonderful novel "To Say Nothing Of The Dog" by Connie Willis. One of the many excellent reasons why Guido keeps tight control over the keys to his time machine. Time-lagged joyriding teenagers careening

Re: GUIs - A Modest Proposal

2010-06-11 Thread Gregory Ewing
Stephen Hansen wrote: There's very little you can do with pywin32 that you can't do with ctypes. Except, apparently, use it from another module in the stdlib. :-( -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: KinterBasDB - how to change the mode: embedded/server

2010-06-11 Thread DarkBlue
On Jun 11, 5:07 pm, durumdara wrote: > Hi! > > I want to use KinterBasDB in mixed mode: sometimes embedded, sometimes > real local/remote server. > How can I set up the connection to KinterBasDB can determine, what > mode I want to use? > > Thanks for your help: >    dd you could use 2 connection

Re: GUIs - A Modest Proposal

2010-06-11 Thread Mark Roseman
> So let me hear of ANY improvements and/or suggestions for Tkinter/IDLE > docs, code, or whatever. Why don't you modify the IDLE code to use the newer ttk widget set, rather than what its using now? You'd be surprised at how much difference you'll see. -- http://mail.python.org/mailman/listin

Tkinter Toplevel sizing issue (using a grid)

2010-06-11 Thread random joe
Hello all, Hi this i my first post here. I would like to create a tkinter toplevel window with a custom resize action based on a grid. From the Tk docs it say you can do this but for the life of me i cannot figure out how? In my app i wish for the main window to only resize in 20 pixel "jumps" (if

Re: GUIs - A Modest Proposal

2010-06-11 Thread geremy condra
On Fri, Jun 11, 2010 at 4:19 PM, rantingrick wrote: > On Jun 11, 4:08 pm, Stephen Hansen wrote: >> On 6/11/10 1:20 PM, rantingrick wrote: >> >> > Run the warning. Then and *only* then can we move forward with facts. >> >> http://google.com/codesearch?q=%22from+Tkinter+import%22http://google.com/c

Re: GUIs - A Modest Proposal

2010-06-11 Thread rantingrick
On Jun 11, 4:08 pm, Stephen Hansen wrote: > On 6/11/10 1:20 PM, rantingrick wrote: > > > Run the warning. Then and *only* then can we move forward with facts. > > http://google.com/codesearch?q=%22from+Tkinter+import%22http://google.com/codesearch?q=%22import+Tkinter%22 > > Compared to: > > http:/

Re: Good solutions for passing around large numbers of arguments in a layered architecture?

2010-06-11 Thread Stephen Hansen
On 6/11/10 10:00 AM, Nathan Rice wrote: > I've tried using args/kwargs, however I found it difficult to avoid > having arguments in my signature re-ordered, and it is also a source > of bugs. > > Has anyone come up with a good solution for dealing with arguments in > situations like this where you

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-11 Thread Elena
On 11 Giu, 20:03, Chris Hulan wrote: > Haven't used it but Racket (http://racket-lang.org/) looks to be a new > and improved Scheme I have checked it out and I don't recommend it to others. Racket is not Scheme anymore (it can't use SLIB, which relies on common Scheme facilities). Racket is a la

Re: GUIs - A Modest Proposal

2010-06-11 Thread Stephen Hansen
On 6/11/10 1:20 PM, rantingrick wrote: > Run the warning. Then and *only* then can we move forward with facts. http://google.com/codesearch?q=%22from+Tkinter+import%22 http://google.com/codesearch?q=%22import+Tkinter%22 Compared to: http://google.com/codesearch?q=%22from+wx+import%22 http://goog

Re: Deformed Form

2010-06-11 Thread Stephen Hansen
On 6/11/10 1:09 PM, Dave Angel wrote: > Your question would have been much easier to understand if you had > referred to "form field" rather than variable, since I assumed you > really meant Python variable. Also, this script is a CGI script, > written in Python. But the other files that you impo

Re: GUIs - A Modest Proposal

2010-06-11 Thread geremy condra
On Fri, Jun 11, 2010 at 1:20 PM, rantingrick wrote: > On Jun 11, 12:44 pm, Mark Lawrence wrote: > >> >> To quote R. David Murray on the Python bug tracker earlier today. >> >> "Everyone who uses IDLE uses TKInter > > Thats a grossly general statement although it *is* a fact. Heres > Another:  "E

Re: GUIs - A Modest Proposal

2010-06-11 Thread Emile van Sebille
On 6/11/2010 1:20 PM rantingrick said... On Jun 11, 12:44 pm, Mark Lawrence wrote: and a lot of people use IDLE." "A lot"? How many is "a lot" 4050 (1) Emile :) --- (1) Results 1 - 10 of about 4,050 for python "in idle". -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-11 Thread rantingrick
On Jun 11, 12:44 pm, Mark Lawrence wrote: > > To quote R. David Murray on the Python bug tracker earlier today. > > "Everyone who uses IDLE uses TKInter Thats a grossly general statement although it *is* a fact. Heres Another: "Everyone who uses Tkinter uses Python"... and the point is >

Re: function that counts...

2010-06-11 Thread Bryan
Lie Ryan wrote: > In my original post in comp.programming, I > used this definition of factorial: > > def fact(n): >     """ factorial function (i.e. n! = n * (n-1) * ... * 2 * 1) """ >     p = 1 >     for i in range(1,n+1): >         p *= i >     return p Ah, much better, but partition10(M, i) ge

Re: Deformed Form

2010-06-11 Thread Dave Angel
Victor Subervi wrote: Ok. Starting over. Here is the script that "generates" the variable "new_passengers_curr_customers": Now, here's the form that *should* be able to access that variable: !/usr/bin/python import cgitb; cgitb.enable() import cgi import sys,os sys.path.append(os.getcwd(

Re: Deformed Form

2010-06-11 Thread MRAB
Victor Subervi wrote: Ok. Starting over. Here is the script that "generates" the variable "new_passengers_curr_customers": [snip] Now, here's the form that *should* be able to access that variable: !/usr/bin/python import cgitb; cgitb.enable() import cgi import sys,os sys.path.append(os.get

Re: Deformed Form

2010-06-11 Thread Stephen Hansen
... This is the first time you've actually clearly expressed what you're doing. On 6/11/10 12:11 PM, Victor Subervi wrote: I dub thee Script1.py: > *** RIGHT HERE! *** > > print " name='new_passengers_curr_customers' />" > > *** SEE IT? *

ANN: Komodo 6.0.0b1 -- adds Python 3 support

2010-06-11 Thread Trent Mick
Hello all, We are pleased to tell you that Komodo IDE and Komodo Edit 6.0.0 Beta 1 were released today. If you're using 6.0.0 Alpha 2 then you can use Komodo's auto-update mechanism. Otherwise, you can get Beta 1 at: http://downloads.activestate.com/Komodo/releases/6.0.0b1/ For Pythonistas t

Re: Deformed Form

2010-06-11 Thread Victor Subervi
Ok. Starting over. Here is the script that "generates" the variable "new_passengers_curr_customers": #!/usr/bin/python import cgitb; cgitb.enable() import cgi import sys,os sys.path.append(os.getcwd()) import MySQLdb from login import login from Curr_Passengers_Table import Curr_Passengers_Table

Re: simple chat server

2010-06-11 Thread Burakk
Thank you for your replies... I have overriden the error handlers and the results: Traceback (most recent call last): File "/home/burak/NetBeansProjects/intantMarkup/src/ 02basicServer.py", line 65, in try: asyncore.loop() File "/usr/lib/python3.1/asyncore.py", line 206, in loop poll

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-11 Thread Benjamin Kaplan
On Fri, Jun 11, 2010 at 11:03 AM, Chris Hulan wrote: > Haven't used it but Racket (http://racket-lang.org/) looks to be a new > and improved Scheme > The language isn't new, just the name. Racket is the language formerly known as PLT Scheme. They decided that they made enough changes from R5RS th

Re: Deformed Form

2010-06-11 Thread Dave Angel
Victor Subervi wrote: On Fri, Jun 11, 2010 at 12:24 PM, Stephen Hansen wrote: Sure, if you have some file that two separate scripts import, and in said file you generate some value-- as long as that value will be the same at all times, it'll appear that the two scripts are sharing some state

Re: Deformed Form

2010-06-11 Thread Stephen Hansen
[reordering the message a bit] On 6/11/10 10:40 AM, Victor Subervi wrote: >>> Now you guys can make fun of me all you want, but until you actually READ >>> and UNDERSTAND what I'm writing, I'm afraid I think your criticisms are >>> ridiculous and make you look like fools. > On Fri, Jun 11, 2010 a

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-11 Thread Chris Hulan
Haven't used it but Racket (http://racket-lang.org/) looks to be a new and improved Scheme -- http://mail.python.org/mailman/listinfo/python-list

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-11 Thread Andrew Philpot
On 06/11/10 08:48, Elena wrote: On 10 Giu, 23:33, bolega wrote: I mean ordinary people, who may want to do things with their computers for scripting, tasks that python can do... Lisp is not for ordinary people, Python is. Python is for ordinary people. Lisp is for extraordinary people. I be

Re: MySQLdb problems with named pipe connection on Windows 7?

2010-06-11 Thread John Nagle
I reconfigured MySQL to allow local network connections, and now MySQLdb works over TCP. It doesn't seem to be able to use Windows 7 named pipes, although the "mysql" command line client can. There may be a bug. This wouldn't be noticed unless MySQL was configured without network connections,

Re: GUIs - A Modest Proposal

2010-06-11 Thread Paul Rubin
Andreas Waldenburger writes: > I have a strong suspicion that Tkinter may be used a lot more than is > made public (isn't anything?). I'm especially thinking about scientists > who write special purpose data processing or control programs with > basic GUIs. These things don't have to be pretty or

Re: GUIs - A Modest Proposal

2010-06-11 Thread Mark Lawrence
On 11/06/2010 17:17, rantingrick wrote: On Jun 11, 9:06 am, Mark Lawrence wrote: "Everyone who uses IDLE uses TKInter, and a lot of people use IDLE." That sounds like hyperbole to me. What evidence do you have to made such a statement. What evidence do *I* have to make the opposing statement

Re: Deformed Form

2010-06-11 Thread Victor Subervi
On Fri, Jun 11, 2010 at 12:24 PM, Stephen Hansen wrote: > Sure, if you have some file that two separate scripts import, and in > said file you generate some value-- as long as that value will be the > same at all times, it'll appear that the two scripts are sharing some > state. They are not, howe

Looking for very complicated gettext PO file(s) for testing

2010-06-11 Thread python
I'm looking for one or more very complicated gettext PO files for testing. I know this sounds a bit OT, but these files will be used to test some Python-based PO utilities we've had to write to manage our PO files. We have our own in-house produced test files, but its always dangerous to test again

Re: Good solutions for passing around large numbers of arguments in a layered architecture?

2010-06-11 Thread James Mills
On Sat, Jun 12, 2010 at 3:00 AM, Nathan Rice wrote: > I've tried using args/kwargs, however I found it difficult to avoid > having arguments in my signature re-ordered, and it is also a source > of bugs. > > Has anyone come up with a good solution for dealing with arguments in > situations like th

Re: GUIs - A Modest Proposal

2010-06-11 Thread Stephen Hansen
On 6/11/10 4:48 AM, Andreas Waldenburger wrote: > I have a strong suspicion that Tkinter may be used a lot more than is > made public (isn't anything?). I'm especially thinking about scientists > who write special purpose data processing or control programs with > basic GUIs. These things don't hav

Re: GUIs - A Modest Proposal

2010-06-11 Thread Stephen Hansen
On 6/10/10 11:00 PM, rantingrick wrote: > On Jun 11, 12:17 am, ant wrote: >> I like the points about backwards compatibility. Presumably that >> reason alone is enough to keep Tkinter in the standard library for a >> long while. > > I don't see why that is a good reason. Download Tkinter and your

Re: GUIs - A Modest Proposal

2010-06-11 Thread Stephen Hansen
On 6/10/10 10:17 PM, ant wrote: > So would it be so awful to have Tkinter and GUI2 (whatever it is) in > the stdlib, assuming that both had equivalent functionality? That > would be the way to give people the choice. There's some slight precedent, in that the stdlib does offer more then one "xml"

Good solutions for passing around large numbers of arguments in a layered architecture?

2010-06-11 Thread Nathan Rice
I've been running into a problem lately where I have an architecture like so: Main class -> facade/configuration class -> low level logic class. The main class is what the user interacts with. The facade/config class is responsible for loading and managing the lower level classes and providing a

Re: simple chat server

2010-06-11 Thread Giampaolo Rodolà
In every dispatcher instance of your application I recommend to override handle_error as follows: class A(asyncore.dispatcher) def handle_error(self): raise This will print a common traceback message instead of the compact one provided by asyncore which provides a lot less informat

Re: MySQLdb problems with named pipe connection on Windows 7?

2010-06-11 Thread John Nagle
On 6/10/2010 11:58 PM, Dennis Lee Bieber wrote: On Thu, 10 Jun 2010 14:15:21 -0700, John Nagle declaimed the following in gmane.comp.python.general: MySQL is configured for connections over named pipes only; it's not running as a TCP server. Is MySQLdb trying to use TCP for a local connection

Re: Deformed Form

2010-06-11 Thread Stephen Hansen
On 6/11/10 4:46 AM, Victor Subervi wrote: > You know, if this were the first time I'd worked with "passing variables > around" through cgi, I'd think you may be right. But answer me this: if what > you assume is correct, I do not assume. I know. With CGI, each web request is independent. This is

Re: GUIs - A Modest Proposal

2010-06-11 Thread rantingrick
On Jun 11, 9:06 am, Mark Lawrence wrote: > "Everyone who uses IDLE uses TKInter, and a lot of people use IDLE." That sounds like hyperbole to me. What evidence do you have to made such a statement. What evidence do *I* have to make the opposing statement. We don't, so add the warning and put you

Re: [OT]romantic poetry

2010-06-11 Thread Ethan Furman
Mark Lawrence wrote: For a bit of light relief from those fed up of reading of the perceived shortcomings of tkinker thought you might like this. Enjoy :) http://www.cc.gatech.edu/fac/Spencer.Rugaber/poems/love.txt Kindest regards. Mark Lawrence AH hahahahahahahahahahahah Much appreci

Re: simple chat server

2010-06-11 Thread Peter Pearson
On Thu, 10 Jun 2010 15:26:28 -0700 (PDT), Burakk wrote: > Hi, > > I am using ubuntu lucid and i have started to learn python(vrs 3.1). I > am trying to make a tutorial code(see below) work but when i run the > code, open a terminal window and connect as client with telnet and > type somethings and

Re: a +b ?

2010-06-11 Thread Steven D'Aprano
On Fri, 11 Jun 2010 22:11:26 +0800, yanhua wrote: > hi,all! > it's a simple question: > input two integers A and B in a line,output A+B? > > this is my program: > s = input() > t = s.split() > a = int(t[0]) > b = int(t[1]) > print(a+b) > > but i think it's too complex,can anybody tell to slove i

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-11 Thread Elena
On 10 Giu, 23:33, bolega wrote: > I mean ordinary people, who may want to do things with their computers > for scripting, tasks that python can do... Lisp is not for ordinary people, Python is. -- http://mail.python.org/mailman/listinfo/python-list

Re: a +b ?

2010-06-11 Thread Alain Ketterlin
yanhua writes: > it's a simple question: > input two integers A and B in a line,output A+B? > > this is my program: > s = input() input() is probably not what you think it is. Check raw_input instead. > t = s.split() > a = int(t[0]) > b = int(t[1]) > print(a+b) > > but i think it's too complex,

pyjsglade: GTK-glade-like UI builder for pyjamas

2010-06-11 Thread lkcl
https://sourceforge.net/projects/pyjsglade/ kees bos, the primary programmer who added all of the incredible python features to the pyjs compiler, such as support for yield, long data type and much more, has just started a project "pyjsglade". its purpose is the same as that of GTK glade: allow d

Re: a +b ?

2010-06-11 Thread Xavier Ho
2010/6/12 yanhua > hi,all! > it's a simple question: > input two integers A and B in a line,output A+B? > > this is my program: > s = input() > t = s.split() > a = int(t[0]) > b = int(t[1]) > print(a+b) > > but i think it's too complex,can anybody tell to slove it with less code. > -- > The reas

Re: Deformed Form

2010-06-11 Thread Emile van Sebille
On 6/11/2010 4:46 AM Victor Subervi said... Now you guys can make fun of me all you want, but until you actually READ and UNDERSTAND what I'm writing, I'm afraid I think your criticisms are ridiculous and make you look like fools. I think the point is exactly as you state -- until you actually

Re: GUIs - A Modest Proposal

2010-06-11 Thread Jean-Michel Pichavant
Andreas Waldenburger wrote: On Thu, 10 Jun 2010 23:00:37 -0700 (PDT) rantingrick wrote: On Jun 11, 12:17 am, ant wrote: I like the points about backwards compatibility. Presumably that reason alone is enough to keep Tkinter in the standard library for a long while. I don't se

Re: a +b ?

2010-06-11 Thread superpollo
Simon Brunning ha scritto: 2010/6/11 yanhua : hi,all! it's a simple question: input two integers A and B in a line,output A+B? print sum(int(i) for i in raw_input("Please enter some integers: ").split()) LOL -- http://mail.python.org/mailman/listinfo/python-list

Re: a +b ?

2010-06-11 Thread Simon Brunning
2010/6/11 yanhua : > hi,all! > it's a simple question: > input two integers A and B in a line,output A+B? print sum(int(i) for i in raw_input("Please enter some integers: ").split()) -- Cheers, Simon B. -- http://mail.python.org/mailman/listinfo/python-list

Re: a +b ?

2010-06-11 Thread Alex Hall
On 6/11/10, yanhua wrote: > hi,all! > it's a simple question: > input two integers A and B in a line,output A+B? > > this is my program: > s = input() > t = s.split() > a = int(t[0]) > b = int(t[1]) > print(a+b) > > but i think it's too complex,can anybody tell to slove it with less code. Just a t

Re: a +b ?

2010-06-11 Thread Martin P. Hellwig
On 06/11/10 15:19, superpollo wrote: yanhua ha scritto: hi,all?? s = input() this does not work Well it does if it is python 3 and not 2 as you are using :-) -- mph -- http://mail.python.org/mailman/listinfo/python-list

Re: a +b ?

2010-06-11 Thread superpollo
yanhua ha scritto: hi,all?? it's a simple question: input two integers A and B in a line,output A+B? this is my program: s = input() this does not work t = s.split() a = int(t[0]) b = int(t[1]) print(a+b) but i think it's too complex,can anybody tell to slove it with less code. >>> import

a +b ?

2010-06-11 Thread yanhua
hi,all! it's a simple question: input two integers A and B in a line,output A+B? this is my program: s = input() t = s.split() a = int(t[0]) b = int(t[1]) print(a+b) but i think it's too complex,can anybody tell to slove it with less code. -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-11 Thread Mark Lawrence
On 11/06/2010 12:48, Andreas Waldenburger wrote: On Thu, 10 Jun 2010 23:00:37 -0700 (PDT) rantingrick wrote: On Jun 11, 12:17 am, ant wrote: I like the points about backwards compatibility. Presumably that reason alone is enough to keep Tkinter in the standard library for a long while. I

Re: GUIs - A Modest Proposal

2010-06-11 Thread Kevin Walzer
On 6/11/10 7:48 AM, Andreas Waldenburger wrote: I have a strong suspicion that Tkinter may be used a lot more than is made public (isn't anything?). I'm especially thinking about scientists who write special purpose data processing or control programs with basic GUIs. These things don't have to

Re: GUIs - A Modest Proposal

2010-06-11 Thread superpollo
Andreas Waldenburger ha scritto: On Thu, 10 Jun 2010 23:00:37 -0700 (PDT) rantingrick wrote: On Jun 11, 12:17 am, ant wrote: I like the points about backwards compatibility. Presumably that reason alone is enough to keep Tkinter in the standard library for a long while. I don't see why that

Help with suds: HTTP Error 401

2010-06-11 Thread Eric von Horst
Hi, I am trying to do a very simple thing with SUDS but I think I am missing the obvious (first time I use suds) I have small program that tries to open a wsdl. When I execute the program I am getting 'suds.transport.TransportError: HTTP Error 401: Unauthorized' Seems obvious but I specify userna

Re: passing environment variable path to open command

2010-06-11 Thread Mahmood Naderan
Thanks, both of the methods work fine:  open(os.path.expandvars("${SOMETHING}/sc_1.sh"), "r") OR  infile = open(os.path.join(env, 'sc_1.sh'),"r") // Naderan *Mahmood; From: Christian Heimes To: python-list@python.org Sent: Fri, June 11, 2010 2:05:15 PM Subjec

Re: GUIs - A Modest Proposal

2010-06-11 Thread Andreas Waldenburger
On Thu, 10 Jun 2010 23:00:37 -0700 (PDT) rantingrick wrote: > On Jun 11, 12:17 am, ant wrote: > > I like the points about backwards compatibility. Presumably that > > reason alone is enough to keep Tkinter in the standard library for a > > long while. > > I don't see why that is a good reason.

Re: Deformed Form

2010-06-11 Thread Victor Subervi
On Thu, Jun 10, 2010 at 2:07 PM, Stephen Hansen wrote: > On 6/10/10 10:48 AM, Victor Subervi wrote: > > Now, create_edit_passengers3() is called by the form/submit button in > (you > > guessed it) create_edit_passengers2.py, the latter containing a var in it > > which *should* be accessible to cre

Re: GUIs - A Modest Proposal

2010-06-11 Thread Mark Lawrence
On 11/06/2010 08:35, rantingrick wrote: On Jun 11, 1:46 am, Mark Lawrence wrote: I look forward to seeing your request on the Python bug tracker. Not holding my breath. Thanks Mark, its done! "Tkinter Litmus Test" I know, saw it on the bug tracker list before I left for work this mornin

Re: GUIs - A Modest Proposal

2010-06-11 Thread Arndt Roger Schneider
rantingrick schrieb: On Jun 10, 9:38 pm, Stephen Hansen wrote: Also-- you're just starting to get wrong. http://docs.python.org/library/tix.html They don't -call- them the things you are, but between ComboBox, and the flexibility of HList and TList... it actually offers quite a lot.

Re: Deformed Form

2010-06-11 Thread Bruno Desthuilliers
Stephen Hansen a écrit : On 6/10/10 8:35 AM, Bruno Desthuilliers wrote: Stephen Hansen (L/P) a écrit : On 6/10/10 7:14 AM, Victor Subervi wrote: (snip) +1 for "absolutely worst framed question of the day" :) IMHO you're wasting your time. Some guys never learn, and I guess we do have a world

Re: passing environment variable path to open command

2010-06-11 Thread Christian Heimes
Am 11.06.2010 10:39, schrieb Mahmood Naderan: > Hi, > I am new to python so my question may be very basic. > Suppose I have a file (sc_1.sh) which the path to that file is in system path: > SOMETHING=/home/mahmood/scripts > > Now I want to open that file with respect to the environment variable:

Re: passing environment variable path to open command

2010-06-11 Thread Jean-Michel Pichavant
Mahmood Naderan wrote: Hi, I am new to python so my question may be very basic. Suppose I have a file (sc_1.sh) which the path to that file is in system path: SOMETHING=/home/mahmood/scripts Now I want to open that file with respect to the environment variable: import os env = os.g

KinterBasDB - how to change the mode: embedded/server

2010-06-11 Thread durumdara
Hi! I want to use KinterBasDB in mixed mode: sometimes embedded, sometimes real local/remote server. How can I set up the connection to KinterBasDB can determine, what mode I want to use? Thanks for your help: dd -- http://mail.python.org/mailman/listinfo/python-list

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-11 Thread Tamas K Papp
On Thu, 10 Jun 2010 13:14:01 -0700, bolega wrote: > Please compare LISP and its virtues with other languages such as > javascript, python etc. Generally, it is advisable to cross-post questions like this to at least 50 other language newsgroups. For example, you are not giving Ruby users a fair

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-11 Thread Espen Vestre
p...@informatimago.com (Pascal J. Bourguignon) writes: > What applets? Have you ever seen a java applet? Last time I saw one > it must have been fifteen years ago. I see one each time I log into my internet banking service. Unfortunately. -- (espen) -- http://mail.python.org/mailman/listinf

passing environment variable path to open command

2010-06-11 Thread Mahmood Naderan
Hi, I am new to python so my question may be very basic. Suppose I have a file (sc_1.sh) which the path to that file is in system path: SOMETHING=/home/mahmood/scripts   Now I want to open that file with respect to the environment variable:    import os    env = os.getenv("SOMETHING")    print env

Re: Decimal problem

2010-06-11 Thread durumdara
On jún. 10, 23:01, Mark Dickinson wrote: > On Jun 10, 8:45 pm, durumdara wrote: > > > ne 91, in fixed_conv_out_precise > >     from decimal import Decimal > > ImportError: cannot import name Decimal > > Is it possible that you've got another file called decimal.py > somewhere in Python's path?  W

Re: How to read source code of python?

2010-06-11 Thread Lee
On Jun 10, 10:26 am, Giampaolo Rodolà wrote: > 2010/6/10 Leon : > > > Hi, there, > > I'm trying to read the source code of python. > > I read around, and am kind of lost, so where to start? > > > Any comments are welcomed, thanks in advance. > > -- > >http://mail.python.org/mailman/listinfo/python

Re: How to read source code of python?

2010-06-11 Thread Lee
On Jun 10, 7:53 am, Floris Bruynooghe wrote: > On Jun 10, 8:55 am, Thomas Jollans wrote: > > > On 06/10/2010 07:25 AM, Qijing Li wrote: > > > > Thanks for your reply. > > > I'm trying to understand python language deeply and  use it efficiently. > > > For example: How the operator "in" works on l

Re: How do subprocess.Popen("ls | grep foo", shell=True) with shell=False?

2010-06-11 Thread Steven W. Orr
On 6/10/2010 11:40 AM, Chris Seberino wrote: Even if zombies are created, they will eventually get dealt with my OS w/o any user intervention needed right? Bad approach. Years ago I inherited a server that didn't do a proper cleanup pf its slaves. After a few days running, people discovered t

Re: GUIs - A Modest Proposal

2010-06-11 Thread rantingrick
On Jun 11, 1:46 am, Mark Lawrence wrote: > I look forward to seeing your request on the Python bug tracker.  Not > holding my breath. Thanks Mark, its done! "Tkinter Litmus Test" -- http://mail.python.org/mailman/listinfo/python-list

Re: sir

2010-06-11 Thread Gabriel Genellina
En Wed, 09 Jun 2010 05:03:36 -0300, madhuri vio escribió: url[, data[, timeout]) in this format of passing arguments i dint understand d syntax...d comma is coming immediately after the bracket...dint get it.. Those square brackets are not "real" brackets, you're not supposed to actua