Python evolution: Unease

2005-01-03 Thread Iwan van der Kleyn
Please ignore if you are allergic to ramblings :-) Despite a puritan streak I've always tried to refrain from language wars or syntax bickering; call it enforced pragmatism. That's the main reason why I've liked Python: it's elegant and simple and still dynamic and flexible. You could do worse f

RE: Integrating Python into a C++ app

2005-01-03 Thread Axel Diener
-Original Message- From: Ben Sizer [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 04, 2005 2:14 AM To: python-list@python.org Subject: Integrating Python into a C++ app I know the conventional wisdom is to write the whole app in Python and only extend with C++ where speed is an issue,

Out of Office AutoReply: warning

2005-01-03 Thread Frode Gulbrandsen
Hei Jeg har sluttet i Adirekta. Ta gjerne kontakt med en av mine kollegaer for hjelp. Jan Ole Nystuen: 22 03 69 60 / 917 70 366, [EMAIL PROTECTED] eller Lene Andersen: 22 03 69 56 / 481 17 787, [EMAIL PROTECTED] Mvh Frode -- http://mail.python.org/mailman/listinfo/python-list

Re: FS: PC Doctor

2005-01-03 Thread flamesrock
*blinks* stop spamming asshole -- http://mail.python.org/mailman/listinfo/python-list

Re: Zope newsgroups? Need help with POSKeyError

2005-01-03 Thread Bob Horvath
Dan Stromberg wrote: On Sat, 01 Jan 2005 10:47:41 +1100, richard wrote: Bob Horvath wrote: I have a Zope/Plone combination that I have been having POSKeyErrors with for a while now. Are there any newsgroups that deal with Zope? No, but there is a mailing list - see zope.org Also, try google searc

Hlelp clean up clumpsy code

2005-01-03 Thread It's me
Another newbie question. There must be a cleaner way to do this in Python: section of C looking Python code a = [[1,5,2], 8, 4] a_list = {} i = 0 for x in a: if isinstance(x, (int, long)): x = [x,] for w in [y for y in x]: i = i + 1 a_list[w] = i print a_

FS: PC Doctor

2005-01-03 Thread john
Bought from http://www.PCbeginner.com two weeks ago. Now my computer got fixed and I do not need it any more. Asking $15 only. I will ship to you by first class mail. Email: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

FS: PC Doctor

2005-01-03 Thread john
Bought from http://www.PCbeginner.com two weeks ago. Now my computer got fixed and I do not need it any more. Asking $15 only. I will ship to you by first class mail. Email: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: ctypes NULL pointers; was: Python To Send Emails Via Outlook Express

2005-01-03 Thread ian
Hi Lenard Hopefully I have understood you properly. The updated script is now as follows, or you can download it from http://www.kirbyfooty.com/simplemapi.py Thanks again for all your help!!! Kindest regards Ian Cook -- impo

Using ICL to compile C extensions

2005-01-03 Thread dayzman
Hi, Does anyone know how I can use "icl" (Intel C++) to compile C extensions? I'm on Windows, and my Python is compiled using VS7.1 (binary distribution). Right now, when I run setup.py install, it uses cl.exe (MSVC++ Toolkit 2003), and I would like to use icl because MSVC++ 2003 does not support

Re: [Hack] Import binary extensions from zipfiles, windows only

2005-01-03 Thread PJDM
I'm trying to make ZopeX3 start faster by zipping up the "zope" directory. (Because this will be stored on a CD, having less data to read will make it quicker to start.) The standard python zipimporter won't work with the ZopeX3 .pyd files, so zipextimporter came along at just the right time. Howe

Re: HTTP GET request with basic authorization?

2005-01-03 Thread Christopher J. Bottaro
John J. Lee wrote: > Jonas Galvez <[EMAIL PROTECTED]> writes: > >> Christopher J. wrote: >> > I tried this, but it didn't work: >> > conn.request("GET", "/somepage.html", None, >> > {"AUTHORIZATION": "Basic username:password"}) > [...] >> import re, base64, urllib2 >> >> userpass = ('user', 'p

Re: Howto Extract PNG from binary file @ 0x80?

2005-01-03 Thread flamesrock
omg, it works!! thankyou! and thankyou again, Frederick for the original code! I've discovered a weird thing when changing header = infile.read(8) to header = infile.read(4): For some reason, the extracted png image is the exact same size as the savegame archive (10.1 megs.) When reading 8byte

Re: Advice request for project

2005-01-03 Thread Steve Holden
Peter Hansen wrote: Steve Holden wrote: Look at the Pyrex package to get you started thinking about remote execution and client/server communications. This lets a program on one machine call methods on objects on another machine. Steve meant to say "Pyro", not "Pyrex". The former is what he act

Re: The Industry choice

2005-01-03 Thread Rob Emmons
> Theoretically. Because even though the source code is available > and free (like in beer as well as in speech) the work of > programmers isn't cheap. > > This "free software" (not so much OSS) notion "but you can > hire programmers to fix it" doesn't really happen in practice, > at least not f

Re: Is it possible to open a dbf

2005-01-03 Thread Ed Leafe
On Jan 3, 2005, at 11:55 AM, Helmut Jarausch wrote: I've been using http://www.fiby.at/dbfpy/ without any problems including writing/modifying dbf files. The problem, of course, is that there is no single DBF format. The only product out there that still uses DBFs, Visual FoxPro, supports 3 sepa

Re: Howto Extract PNG from binary file @ 0x80?

2005-01-03 Thread Robert Kern
Don't seek to position 97. Seek to 96. You're off by one. That's why there's the test for the header (which you removed). Files (and Python strings for that matter) are 0-indexed. The first character is 0, the second 1, and so on. If you want the 97th character, you have to seek to position 96.

Re: Controlling newlines when writing to stdout (no \r\n).

2005-01-03 Thread Jeff Epler
Well, here's the first page turned up by google for the terms 'python binary stdout': http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65443 Code from that page: import sys if sys.platform == "win32": import os, msvcrt msvcrt.setmode(sys.stdout.fileno(), os.O_B

Re: How do I make Windows Application with Python ?

2005-01-03 Thread Rob Emmons
> Well, I programmed a little in MS Visual Studio 2003, and there you have > Console apllication and Windows application (among others). Windows one is > with buttons and other gadgets. So, I want to make applications that > doesn't open console to display result, I want to display it into the > me

Re: How do I make Windows Application with Python ?

2005-01-03 Thread Christopher De Vries
I should learn to type faster. You beat me to the response. Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I make Windows Application with Python ?

2005-01-03 Thread Christopher De Vries
There are several GUI toolkits for python. Tkinter comes with python, but wxPython, a binding to wxWindows is popular, as is pyQT, and pyGTK. You can also build native win32 GUIs using PythonWin, part of win32all. A more complete list of options is available here: http://www.python.org/cgi-bin/moin

Controlling newlines when writing to stdout (no \r\n).

2005-01-03 Thread Evgeni Sergeev
While I can make a verbatim copy of a file like this: file1 = file('ready.pdf', 'rb') file2 = file('out.pdf', 'wb') buffer = file1.read(256) while buffer: file2.write(buffer) buffer = file1.read(256) file1.close() file2.close() I cannot send a verbatim co

Re: Howto Extract PNG from binary file @ 0x80?

2005-01-03 Thread flamesrock
Hmm...I'm not sure exactly. One of the things I've read is that sometimes stuff is compressed in a savegame file, but I don't know why they'd do that with a png.. I have some code that does the exact same thing in php only I don't understand php syntax and how they did it. Does it give any clues a

Re: How do I make Windows Application with Python ?

2005-01-03 Thread Pato Olivares
BOOGIEMAN wrote: > Well, I programmed a little in MS Visual Studio 2003, and there you have > Console apllication and Windows application (among others). Windows one is > with buttons and other gadgets. So, I want to make applications that > doesn't open console to display result, I want to display

Re: Howto Extract PNG from binary file @ 0x80?

2005-01-03 Thread Robert Kern
flamesrock wrote: [snip] [EMAIL PROTECTED]:~/score$ python sc4png.py Traceback (most recent call last): File "sc4png.py", line 26, in ? pngcopy(infile, outfile) File "sc4png.py", line 14, in pngcopy size, cid = struct.unpack("!l4s", chunk) struct.error: unpack str size does not match format Any ide

Integrating Python into a C++ app

2005-01-03 Thread Ben Sizer
I know the conventional wisdom is to write the whole app in Python and only extend with C++ where speed is an issue, but I already have a large C++ app that I'd like to add Python to. Ideally I'd rewrite the whole app in Python but I don't have time to do that and maintain the old system at the sam

Re: input record sepArator (equivalent of "$|" of perl)

2005-01-03 Thread JanC
Jeff Shannon schreef: > John Machin wrote: > >>Subtle distinction: A metER is a measuring device. A MetRE is a unit of >>distance. > ... except in the US, where we stubbornly apply the same spelling to > both of those. (It figures that we Americans just ignore subtle > distinctions) Or t

Re: Continuations Based Web Framework - Seaside.

2005-01-03 Thread floydophone
Hi... I'm Peter Hunt. I've implemented stuff like this for a variety of different frameworks. I authored nevow.wolf and the more recent CherryFlow (http://trac.cherrypy.org/cgi-bin/trac.cgi/wiki/CherryFlow). I came up with this idea after looking at Cocoon FlowScript examples. Python generators sui

Re: HTTP GET request with basic authorization?

2005-01-03 Thread John Reese
On 03 Jan 2005 18:27:52 +, John J. Lee <[EMAIL PROTECTED]> wrote: > Jonas Galvez <[EMAIL PROTECTED]> writes: > >> Christopher J. wrote: >> > I tried this, but it didn't work: >> > conn.request("GET", "/somepage.html", None, >> > {"AUTHORIZATION": "Basic username:password"}) > [...] >> import r

Re: input record sepArator (equivalent of "$|" of perl)

2005-01-03 Thread Steve Holden
Andrew Dalke wrote: Mike Meyer: Trivia question: Name the second most powerfull country on earth not using the metric system for everything. The UK? Before going there I thought they were a fully metric country. But I saw weather reports in degrees F, distances in yards and miles, and of course pi

Re: Howto Extract PNG from binary file @ 0x80?

2005-01-03 Thread flamesrock
Well, I've been working on getting this code to work, and I think I *almost* have it... First, according to ghex, it seems the PNG starts at the 97th byte of the file infile = open("mysimcityfile.sc4", "rb") infile.seek(97) print (infile.read(4)) output: [EMAIL PROTECTED]:~/score$ python sc4png.py

Re: XML: Better way to accomplish this?

2005-01-03 Thread flamesrock
Good idea! Thanks Also, besides the document structure (I appreciate comments on that too, of course,) do you think the code is efficient for xml? Any special tricks you know of? -thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: using HTTP Digest auth with arbitrary HTTP methods?

2005-01-03 Thread John Reese
On 03 Jan 2005 18:11:06 +, John J. Lee <[EMAIL PROTECTED]> wrote: > (Re ternary operator: Everybody who read this list at certain times in > the past is painfully aware of that fact, and of precisely why it's > not quite true, and of all the syntax alternatives for real ternary > conditionals t

Re: How to access database?

2005-01-03 Thread Irmen de Jong
Florian Lindner wrote: AFAIK python has a generic API for database access which adapters are supposed to implement. How can I found API documentation on the API? http://www.python.org/topics/database/ --Irmen -- http://mail.python.org/mailman/listinfo/python-list

How to access database?

2005-01-03 Thread Florian Lindner
Hello, AFAIK python has a generic API for database access which adapters are supposed to implement. How can I found API documentation on the API? Thanks, Florian -- http://mail.python.org/mailman/listinfo/python-list

Re: input record sepArator (equivalent of "$|" of perl)

2005-01-03 Thread Andrew Dalke
Mike Meyer: > Trivia question: Name the second most powerfull country on earth not > using the metric system for everything. The UK? Before going there I thought they were a fully metric country. But I saw weather reports in degrees F, distances in yards and miles, and of course pints of beer.

Re: XML: Better way to accomplish this?

2005-01-03 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, flamesrock wrote: > # > # > [...] > # > # > [...] > # > # > [...] > # > # Don't you think it's better to use an attribute for the city nr.? Something like .

RE: Developing Commercial Applications in Python

2005-01-03 Thread Delaney, Timothy C (Timothy)
Christophe Cavalaria wrote: > [EMAIL PROTECTED] wrote: > >> Hello All, >> I am trying to convince my client to use Python in his new product. >> He is worried about the license issues. Can somebody there to point >> me any good commercial applications developed using python ?. The >> licence clea

Re: input record sepArator (equivalent of "$|" of perl)

2005-01-03 Thread Mike Meyer
Christos "TZOTZIOY" Georgiou <[EMAIL PROTECTED]> writes: > [1] through the French "mètre" of course; great job, those > revolutionaries did with the metric system. As Asimov put it, "how many > inches to the mile?" Trivia question: Name the second most powerfull country on earth not using the me

Re: Continuations Based Web Framework - Seaside.

2005-01-03 Thread Mike Meyer
Steve Holden <[EMAIL PROTECTED]> writes: > It's the *ideas* that are important, though, rather than the > implementation, and my initial hope was to publicise the weakness of > statelessness on the web as applications become more complex. This needed publicity? Isn't it obvious to anyone who has

Re: How do I make Windows Application with Python ?

2005-01-03 Thread BOOGIEMAN
On Mon, 03 Jan 2005 17:19:22 -0500, Peter Hansen wrote: > What do you mean by "Windows Applications"? I'm running > Python on Windows XP, so every program I write with > Python is a "Windows application" by my definition. Obviously > you are using a different one. > > (And if you just mean "it

Re: How do I make Windows Application with Python ?

2005-01-03 Thread BOOGIEMAN
On Mon, 03 Jan 2005 22:57:22 +0100, Jarek Zgoda wrote: > Close your eyes, see this model-view-controller in your application, > rewrite it in Python using one of its MVC frameworks. > > You see? It's easy, like that! Yes, only if I'd know what you're talking about :( -- http://mail.python.org

Re: How can engineers not understand source-code control?

2005-01-03 Thread Tim Churches
Cameron Laird wrote: I've seen the infatuation for Excel (and so on) for years, but never found it at all tempting myself. I mostly just ignore the issue--no, actually, I guess I give them Excel, but show at the same time that they really want the alternative views that I also provide. See http://

Re: Developing Commercial Applications in Python

2005-01-03 Thread Mike Meyer
"It's me" <[EMAIL PROTECTED]> writes: > Well, now that they are API based, they can easily add any script language > they so wish through SWIG (www.swig.org). > > Maybe not LISP. SNOBOL would be the right thing to do. (*NOT*) SWIG generates wrappers for GUILE, which is Scheme, which looks enou

Re: How do I make Windows Application with Python ?

2005-01-03 Thread Peter Hansen
BOOGIEMAN wrote: Well that's it, how do I make Windows Application with Python ??? Is there simple way that works 100% ? How can I rework visual design done in VS 2003 to use it for my python program ? What do you mean by "Windows Applications"? I'm running Python on Windows XP, so every program I

Re: emulating an and operator in regular expressions

2005-01-03 Thread Andrew Dalke
Craig Ringer wrote: > My first thought would be to express your 'A and B' regex as: > > (A.*B)|(B.*A) > > with whatever padding, etc, is necessary. You can even substitute in the > sub-regex for A and B to avoid writing them out twice. That won't work because of overlaps. Consider barkeep w

Re: Developing Commercial Applications in Python

2005-01-03 Thread Christophe Cavalaria
[EMAIL PROTECTED] wrote: > Hello All, > I am trying to convince my client to use Python in his new product. He > is worried about the license issues. Can somebody there to point me any > good commercial applications developed using python ?. The licence > clearly says Python can be used for commer

Re: Advice request for project

2005-01-03 Thread Peter Hansen
Steve Holden wrote: Look at the Pyrex package to get you started thinking about remote execution and client/server communications. This lets a program on one machine call methods on objects on another machine. Steve meant to say "Pyro", not "Pyrex". The former is what he actually described. The

Re: The Industry choice

2005-01-03 Thread Peter Hansen
Steve Holden wrote: Whereas the bleached bones of the failed open source projects are visible for all to see on the SourceForge beach. It occurs to me that the value of those projects can be judged in a number of ways. One of them is in how much those involved in the projects have learned from th

Re: How do I make Windows Application with Python ?

2005-01-03 Thread Jarek Zgoda
BOOGIEMAN wrote: Well that's it, how do I make Windows Application with Python ??? Is there simple way that works 100% ? How can I rework visual design done in VS 2003 to use it for my python program ? Close your eyes, see this model-view-controller in your application, rewrite it in Python using

Re: input record sepArator (equivalent of "$|" of perl)

2005-01-03 Thread TZOTZIOY
On 21 Dec 2004 15:20:35 -0800, rumours say that "John Machin" <[EMAIL PROTECTED]> might have written: >Subtle distinction: A metER is a measuring device. A MetRE is a unit of >distance. In this case, English (compared to American English) is closer to the original "metron" [1]. Now, if only you

Re: emulating an and operator in regular expressions

2005-01-03 Thread John Machin
Terry Reedy wrote: > "Craig Ringer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > On Mon, 2005-01-03 at 08:52, Ross La Haye wrote: > >> How can an and operator be emulated in regular expressions in Python? > > Regular expressions are designed to define and detect repetition and

Re: Rebinding stdout (was: Re: Python! Is! Truly! Amazing!)

2005-01-03 Thread Simo Melenius
Just <[EMAIL PROTECTED]> writes: > In article <[EMAIL PROTECTED]>, > Simo Melenius <[EMAIL PROTECTED]> wrote: > > ... sys.stdout = sys.__stdout__ > Aargh, I can't believe how widespread this idiom is :-(. See my other > reply in this thread: DON'T use sys.__stdout__. Ever. It probably d

Re: Ann: CherryPy-2.0-beta released

2005-01-03 Thread Ian Bicking
[EMAIL PROTECTED] wrote: Well, you can easily run CherryPy behind Apache (see http://trac.cherrypy.org/cgi-bin/trac.cgi/wiki/BehindApache). Since CherryPy provides a WSGI interface (although it's still experimental), you can also run your CherryPy app with any WSGI-compatible HTTP server (although

Re: The Industry choice

2005-01-03 Thread Aahz
In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote: >Aahz wrote: >> In article <[EMAIL PROTECTED]>, >> Steve Holden <[EMAIL PROTECTED]> wrote: >>>Aahz wrote: That's funny -- Bruce Eckel talks about how he used to love checked exceptions but has come to regard them

Re: Zope newsgroups? Need help with POSKeyError

2005-01-03 Thread Dan Stromberg
On Sat, 01 Jan 2005 10:47:41 +1100, richard wrote: > Bob Horvath wrote: >> I have a Zope/Plone combination that I have been having POSKeyErrors >> with for a while now. Are there any newsgroups that deal with Zope? > > No, but there is a mailing list - see zope.org > > Also, try google searchin

Re: Bad Interpreter

2005-01-03 Thread Simon John
[EMAIL PROTECTED] wrote: > the script i have sock.py runs if i say something like : > > python sock.py > > but ./sock.py results in a :bad interpreter error > how do i troubleshoot something like this? sounds like you've been editting the script on a windows machine, and it's inserted it's evil l

Re: Python! Is! Truly! Amazing!

2005-01-03 Thread Steve Holden
Ron Garret wrote: In article <[EMAIL PROTECTED]>, jfj <[EMAIL PROTECTED]> wrote: Ron Garret wrote: In article <[EMAIL PROTECTED]>, "Erik Bethke" <[EMAIL PROTECTED]> wrote: I have NEVER experienced this kind of programming joy. Just wait until you discover Lisp! ;-) I've had it with all those

Re: Ann: CherryPy-2.0-beta released

2005-01-03 Thread remi
> I'm a great believer that avoiding query strings in URL's is good > practise ( http://www.holloway.co.nz/book/9 for good arguments why). CherryPy also supports that out of the box: class Book: def default(self, categoryName, bookId): ... cpg.root.book = Book() If you go to "http://domain/book/

Re: Developing Commercial Applications in Python

2005-01-03 Thread Steve Holden
[EMAIL PROTECTED] wrote: Hello All, I am trying to convince my client to use Python in his new product. He is worried about the license issues. Can somebody there to point me any good commercial applications developed using python ?. The licence clearly says Python can be used for commercial applic

Re: Bad Interpreter

2005-01-03 Thread Christopher Koppler
On Mon, 03 Jan 2005 12:24:09 -0800, RajaSrinivasan wrote: > I have seen some previous messages about such a problem. I have this > problem but it is not clear what the solution really was. > > I am running FC2, python 2.3.3 > > the script i have sock.py runs if i say something like : > > python

How do I make Windows Application with Python ?

2005-01-03 Thread BOOGIEMAN
Well that's it, how do I make Windows Application with Python ??? Is there simple way that works 100% ? How can I rework visual design done in VS 2003 to use it for my python program ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Bad Interpreter

2005-01-03 Thread Richards Noah (IFR LIT MET)
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have seen some previous messages about such a problem. I have this > problem but it is not clear what the solution really was. > > I am running FC2, python 2.3.3 > > the script i have sock.py runs if i say something like : > > python s

Re: Bad Interpreter

2005-01-03 Thread Craig Ringer
On Mon, 2005-01-03 at 12:24 -0800, [EMAIL PROTECTED] wrote: > I have seen some previous messages about such a problem. I have this > problem but it is not clear what the solution really was. > > I am running FC2, python 2.3.3 > > the script i have sock.py runs if i say something like : > > pytho

Re: What can I do with Python ??

2005-01-03 Thread Steve Holden
John J. Lee wrote: Lee Harr <[EMAIL PROTECTED]> writes: [...] I think it looks pretty good. The only problem I see is section 5 where it says: 5. Did we miss your concern? Please add a comment to this page. but the page is immutable. Hopefully one of the site maintainers will read this and demons

Re: Developing Commercial Applications in Python

2005-01-03 Thread Roy Smith
Stephen Waterbury <[EMAIL PROTECTED]> wrote: >> Shaw-PTI (www.pti-us.com) uses Python in their software. > >... but the "Python Powered" logo is conspicuous by its >absence from their site. Too bad that some commercial >exploiters of Python don't advertise that fact more often. Companies use all

Re: Speed ain't bad

2005-01-03 Thread John Machin
Anders J. Munch wrote: > Another way is the strategy of "it's easier to ask forgiveness than to > ask permission". > If you replace: > if(not os.path.isdir(zfdir)): > os.makedirs(zfdir) > with: > try: > os.makedirs(zfdir) > except EnvironmentError: > pass > > the

Re: The Industry choice

2005-01-03 Thread Stephen Waterbury
Steve Holden wrote: Aahz wrote: In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote: Aahz wrote: In article <[EMAIL PROTECTED]>, Paul Rubin wrote: I was pretty skeptical of Java's checked exceptions when I first used them but have been coming around a

Re: Ann: CherryPy-2.0-beta released

2005-01-03 Thread andybak
I'm a great believer that avoiding query strings in URL's is good practise ( http://www.holloway.co.nz/book/9 for good arguments why). How tricky is it to remap URL's to query strings in cherryPy? Also how much does it complicate matters to run cherryPy under an existing webserver? Is any function

Bad Interpreter

2005-01-03 Thread RajaSrinivasan
I have seen some previous messages about such a problem. I have this problem but it is not clear what the solution really was. I am running FC2, python 2.3.3 the script i have sock.py runs if i say something like : python sock.py but ./sock.py results in a :bad interpreter error how do i troubl

Re: Developing Commercial Applications in Python

2005-01-03 Thread Stephen Waterbury
It's me wrote: Shaw-PTI (www.pti-us.com) uses Python in their software. ... but the "Python Powered" logo is conspicuous by its absence from their site. Too bad that some commercial exploiters of Python don't advertise that fact more often. Every little bit helps! Steve -- http://mail.python.org/m

Re: Developing Commercial Applications in Python

2005-01-03 Thread vincent wehren
[EMAIL PROTECTED] wrote: Hello All, I am trying to convince my client to use Python in his new product. He is worried about the license issues. Can somebody there to point me any good commercial applications developed using python ?. The licence clearly says Python can be used for commercial applic

Re: what is lambda used for in real code?

2005-01-03 Thread Jeff Shannon
Steven Bethard wrote: The only ones that make me a little nervous are examples like: inspect.py: def formatargspec(args, varargs=None, varkw=None, ... formatvarargs=lambda name: '*' + name, formatvarkw=lambda name: '**' + name,

Re: Developing Commercial Applications in Python

2005-01-03 Thread It's me
Well, now that they are API based, they can easily add any script language they so wish through SWIG (www.swig.org). Maybe not LISP. SNOBOL would be the right thing to do. (*NOT*) "Richards Noah (IFR LIT MET)" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > > It was actually

Re: emulating an and operator in regular expressions

2005-01-03 Thread Terry Reedy
"Craig Ringer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Mon, 2005-01-03 at 08:52, Ross La Haye wrote: >> How can an and operator be emulated in regular expressions in Python? Regular expressions are designed to define and detect repetition and alternatives. These are ea

Re: The Industry choice

2005-01-03 Thread Steve Holden
Aahz wrote: In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote: Aahz wrote: In article <[EMAIL PROTECTED]>, Paul Rubin wrote: I was pretty skeptical of Java's checked exceptions when I first used them but have been coming around about them. There's

Re: website hosting

2005-01-03 Thread Irmen de Jong
[EMAIL PROTECTED] wrote: [some spam] Those people don't even provide python hosting, how lame. (Yes, I know, I shouldn't have clicked the link). -- http://mail.python.org/mailman/listinfo/python-list

Re: The Industry choice

2005-01-03 Thread Steve Holden
Terry Reedy wrote: "Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Well clearly there's a spectrum. However, I have previously written that the number of open source projects that appear to get stuck somewhere between release 0.1 and release 0.9 is amazingly large, an

Re: Continuations Based Web Framework - Seaside.

2005-01-03 Thread Steve Holden
Kendall Clark wrote: On Sun, Jan 02, 2005 at 10:03:10AM -0500, Steve Holden wrote: I did actually do some sort-of-related work in this area, which I presented at PyCon DC 2004 - you can access the paper at http://www.python.org/pycon/dc2004/papers/18/Setting_A_Context.pdf An audience member me

Re: HELP: Tkinter idiom needed: SOLUTION

2005-01-03 Thread Pekka Niiranen
Hi there, got it. Note the root.distroy()-command. -pekka- - CODE STARTS from Tkinter import * from ScrolledText import ScrolledText import tkFont class Message_box: # Graphical message box for printing unicode texts def __init__(self, myParent): self.myContainer1 = Frame(m

Re: Developing Commercial Applications in Python

2005-01-03 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am trying to convince my client to use Python in his new product. He > is worried about the license issues. Can somebody there to point me any > good commercial applications developed using python ?. The licence > clearly says Python

Re: Continuations Based Web Framework - Seaside.

2005-01-03 Thread Steve Holden
Ian Bicking wrote: Steve Holden wrote: I did actually do some sort-of-related work in this area, which I presented at PyCon DC 2004 - you can access the paper at http://www.python.org/pycon/dc2004/papers/18/Setting_A_Context.pdf An audience member mentioned the Smalltalk and Scheme-based work

Re: Developing Commercial Applications in Python

2005-01-03 Thread Richards Noah (IFR LIT MET)
"It's me" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "Richards Noah (IFR LIT MET)" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > > Begging your pardon, but a better resource would be the brochure available > > (http://www.pti-us.com/PTI/company/brochures/

Re: Speed ain't bad

2005-01-03 Thread Jeff Shannon
Anders J. Munch wrote: Another way is the strategy of "it's easier to ask forgiveness than to ask permission". If you replace: if(not os.path.isdir(zfdir)): os.makedirs(zfdir) with: try: os.makedirs(zfdir) except EnvironmentError: pass then not only will your scr

Re: Py2exe and extension issues

2005-01-03 Thread John Machin
[EMAIL PROTECTED] wrote: > Is anyone aware of issues with Py2exe and extensions compiled with > cygwin/mingw for Python 2.3? I have an extension that wraps access to > some C DLLs. The generated executable always segfaults at startup, > although things work fine when running through the normal

ODBC Connection on Windows XP

2005-01-03 Thread Greg Lindstrom
I am running Python 2.3 on Windows XP and am trying to connect to an ODBC datasource. I have done this many times on this same box but this time I get an error message saying dbi.operation-error: [WSOCK32.DLL]Connection refused, is the host listener running? (#10061) in LOGIN Not having seen

Re: BASIC vs Python

2005-01-03 Thread TZOTZIOY
On 17 Dec 2004 15:53:51 -0800, rumours say that "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> might have written: >> The BASICs of my youth also supported graphics and sounds. >> >> PLAY "CGFED>CC >Now wait a minute, shouldn't that be... > >PLAY "CGFED>CC': 2.0} # octave modifier def play(sequence):

Re: Developing Commercial Applications in Python

2005-01-03 Thread Aahz
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: > >I am trying to convince my client to use Python in his new product. He >is worried about the license issues. Can somebody there to point me any >good commercial applications developed using python ?. The licence >clearly says Python can

website hosting

2005-01-03 Thread [EMAIL PROTECTED]
here is the place that I host my websites with . If your still looking for a good host check out http://frontpage-web-hosting.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Developing Commercial Applications in Python

2005-01-03 Thread It's me
"Richards Noah (IFR LIT MET)" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Begging your pardon, but a better resource would be the brochure available > (http://www.pti-us.com/PTI/company/brochures/PSSE.pdf). It appears that the > program was probably (originally) written in C/C

Re: Lambda as declarative idiom (was RE: what is lambda used for in real code?)

2005-01-03 Thread Steven Bethard
Roman Suzi wrote: I wish lambdas will not be deprecated in Python but the key to that is dropping the keyword (lambda). If anybody could think of a better syntax for lambdas _with_ arguments, we could develop PEP 312 further. Some suggestions from recent lambda threads (I only considered the ones

Re: Rebinding stdout (was: Re: Python! Is! Truly! Amazing!)

2005-01-03 Thread JanC
Just schreef: > You should always save stdout instead of using __stdout__. It may not be > the same! You're right, especially when this code would execute in an (at programming time) unknown context. -- JanC "Be strict when sending and tolerant when receiving." RFC 1958 - Architectural Prin

Re: What can I do with Python ??

2005-01-03 Thread John J. Lee
Lee Harr <[EMAIL PROTECTED]> writes: [...] > I think it looks pretty good. The only problem I see is section 5 > where it says: > > 5. Did we miss your concern? > > Please add a comment to this page. > > > but the page is immutable. Hopefully one of the site maintainers will read this and de

Re: HTTP GET request with basic authorization?

2005-01-03 Thread John J. Lee
Jonas Galvez <[EMAIL PROTECTED]> writes: > Christopher J. wrote: > > I tried this, but it didn't work: > > conn.request("GET", "/somepage.html", None, > > {"AUTHORIZATION": "Basic username:password"}) [...] > import re, base64, urllib2 > > userpass = ('user', 'pass') > url = 'http://somewhere'

Re: using HTTP Digest auth with arbitrary HTTP methods?

2005-01-03 Thread John J. Lee
John Reese <[EMAIL PROTECTED]> writes: > In comp.lang.python, [I] wrote: [...] > I instead copied it (to urllib3.py) and made the following changes: > a. in AbstractDigestAuthHandler.get_authorization, call > req.get_method() instead of req.has_data() and 'POST' or 'GET' > (python has

Re: Frameworks for "Non-Content Oriented Web Apps"

2005-01-03 Thread remi
Have a look a the new CherryPy (http://www.cherrypy.org). It allows developers to build web applications in much the same way they would build any other object-oriented Python program. This might corespond to what you're looking for. Remi. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python good for graphics?

2005-01-03 Thread drewp
Esmail Bonakdarian wrote: > > Basically, I would like to be able to create some basic animations > where I can help visualize various sorting algorithms (for instance > http://ciips.ee.uwa.edu.au/~morris/Year2/PLDS210/sorting.html#insert_anim) > or graph searches (coloring nodes as each gets visit

RE: Developing Commercial Applications in Python

2005-01-03 Thread Sells, Fred
At Sunrise Software International, we build commercial applications for Cabletron and the Florida DMV. This was ~10 years ago; so no useful docs available, but we had no problems with license. -Original Message- From: Richards Noah (IFR LIT MET) [mailto:[EMAIL PROTECTED] Sent: Monday, Jan

Ann: CherryPy-2.0-beta released

2005-01-03 Thread remi
Hello everyone, I am happy to announce the release of CherryPy-2.0-beta. CherryPy-2 is a pythonic, object-oriented web development framework. CherryPy-2 is a redesign of CherryPy-1 (the unpythonic features have been removed): no more compilation step, pure python source code (no more "CherryClas

Re: How can engineers not understand source-code control? (was: The Industry choice)

2005-01-03 Thread John Roth
In article <[EMAIL PROTECTED]>, Mark Carter <[EMAIL PROTECTED]> wrote: . . . Don't start me! Dammit, too late ... ... Honestly, I thought (real) engineers were supposed to be clever. You might want to read this: http://alistair.cockburn.us/crystal/articles/teoseatsoecg/theendofsoftwareengineering

  1   2   >