Re: ? about file() and open()

2005-01-03 Thread Reinhold Birkenfeld
Sean wrote: Was wondering if there was any difference between these two functions. I have read some text that said file() wasn't introduced until 2.2 and that it was synonymous with open(). Does this mean that I should be using file() where I used open() before? FYI, I submitted a patch to

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

2005-01-03 Thread JanC
Ron Garret schreef: But this topic does bring up a legitimate question: I have a bunch of code that generates HTML using PRINT statements. I need to convert all this code to return strings rather than actually printing them (so I can use the results to populate templates). In Lisp I

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

2005-01-03 Thread Just
In article [EMAIL PROTECTED], JanC [EMAIL PROTECTED] wrote: Something like this: py import cStringIO py import sys py py def foo(): ... print test ... py f = cStringIO.StringIO() py sys.stdout = f py foo() py s = f.getvalue() py sys.stdout = sys.__stdout__ You should always

Re: UserDict deprecated

2005-01-03 Thread Wolfgang
Hello, Alex Martelli wrote: The DictMixin class from the UserDict module is *not* deprecated -- only the UserDict class from the same module. (If you found info saying otherwise pls provide a URL: the info is wrong and I'll try to get it fixed -- thanks!). DictMixin's purpose is exactly as you

Re: [Twisted-Python] Problem with Echoserver (TCP), Help!

2005-01-03 Thread SeSe
Thanks. I have disabled my firewall. But still failed. It is a bit strange that echo server UDP works. Only TCP doesn't. Regards, SeSe Kartic wrote: Hi, My experience with Twisted is also limited but let me try to help you. I tried the same combo as you and it worked well with the following

MDaemon Warning - virus found: Error

2005-01-03 Thread l . cubells
*** WARNING ** Este mensaje ha sido analizado por MDaemon AntiVirus y ha encontrado un fichero anexo(s) infectado(s). Por favor revise el reporte de abajo. AttachmentVirus name Action taken

Re: The Industry choice

2005-01-03 Thread JanC
Paul Rubin schreef: The AOL web server also uses tcl as a built-in dynamic content generation language (i.e. sort of like mod_python), or at least it used to. It still does: AOLserver is America Online's Open-Source web server. AOLserver is the backbone of the largest and busiest production

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

2005-01-03 Thread Simo Melenius
Ron Garret [EMAIL PROTECTED] writes: (with-output-to-string (s) (let ( (*standard-output* s) ) (call-html-generating-code) s)) Is there an equivalent Python trick to capture a function call's output as a string? I've sometimes replaced sys.stdout (and/or sys.stderr) to

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

2005-01-03 Thread Just
In article [EMAIL PROTECTED], Simo Melenius [EMAIL PROTECTED] wrote: I've sometimes replaced sys.stdout (and/or sys.stderr) to capture/redirect debugging information in existing code that has unwisely just printed error and warning messages, instead of using sys.stderr or error logging

Re: Problem remotely shutting down a windows computer with python

2005-01-03 Thread Duncan Booth
Kartic wrote: Looks like this is the documented outcome. You could alternatively try setting a little XML-RPC app to invoke 'shutdown -s' on the remote PC from your PC (e.g. using Twisted Python). Or invoke 'shutdown -s -m \\machinename' on the local machine to shutdown a remote machine.

Re: Python! Is! Truly! Amazing!

2005-01-03 Thread jfj
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 lisp posts lately ;-) There were functional and non-functional programming languages

Developing Commercial Applications in Python

2005-01-03 Thread eeykay
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 applications. Is there any

Re: emulating an and operator in regular expressions

2005-01-03 Thread Craig Ringer
On Mon, 2005-01-03 at 08:52, Ross La Haye wrote: How can an and operator be emulated in regular expressions in Python? Specifically, I want to return a match on a string if and only if 2 or more substrings all appear in the string. For example, for a string s = 'Jones John' and substrings sg0

Re: Developing Commercial Applications in Python

2005-01-03 Thread Craig Ringer
On Mon, 2005-01-03 at 19:00, [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

Re: Python! Is! Truly! Amazing!

2005-01-03 Thread Ville Vainio
jfj == jfj [EMAIL PROTECTED] writes: jfj There were functional and non-functional programming jfj languages (the first being *much* simpler to jfj implement). There is a *reason* people chose C over jfj lisp. It's not that we were all blind and didn't see the jfj amazingness

Async-signal safe functions in signal handlers (unix)

2005-01-03 Thread Michael Pronath
Hi, can I make sure that Python uses only async-signal safe glibc functions in signal handlers? For example, you must not call malloc or free in signal handlers, see http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html#tag_02_04_03 The reason is, that if a signal is caught

Re: Python! Is! Truly! Amazing!

2005-01-03 Thread Christopher Koppler
On Mon, 03 Jan 2005 13:05:48 +0200, Ville Vainio wrote: jfj == jfj [EMAIL PROTECTED] writes: jfj There were functional and non-functional programming jfj languages (the first being *much* simpler to jfj implement). There is a *reason* people chose C over jfj lisp. It's not

Re: Continuations Based Web Framework - Seaside.

2005-01-03 Thread Kendall Clark
On Mon, Jan 03, 2005 at 01:46:54AM -0600, Ian Bicking wrote: Kendall Clark wrote: Between this pressure (which isn't new, since as Steve points out, I was talking about this in Python community last year, and I wasn't nearly the first) and the growing popularity of Ruby on Rails, there's some

removing comments form a file

2005-01-03 Thread Noud Aldenhoven
Hello everyone, I was wondering how to remove comments away form a file. So that's why I made this script. === #!/usr/bin/env python import sys import string import time helptext = usage: python rmcomment [oldfile] [newfile] [comment] def rmcomment(oldfile,

Re: The Industry choice

2005-01-03 Thread Peter Dembinski
Peter Hansen [EMAIL PROTECTED] writes: Roy Smith wrote: Terry Reedy [EMAIL PROTECTED] wrote: None has been reserved because there is no known good use for overriding it. Should I infer from the above that there's a known bad use? Yes: making None equal to the integer 3. That's one of

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

2005-01-03 Thread michele . simionato
Just wrote: In article [EMAIL PROTECTED], Simo Melenius [EMAIL PROTECTED] wrote: I've sometimes replaced sys.stdout (and/or sys.stderr) to capture/redirect debugging information in existing code that has unwisely just printed error and warning messages, instead of using sys.stderr or

Py2exe and extension issues

2005-01-03 Thread kdahlhaus
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 python interpreter. I had a

Re: cosmetic Tkinter question

2005-01-03 Thread Eric Brunel
Sean McIlroy wrote: I've got a bunch of Frames, all packed into the root window with side=TOP, and in each Frame I've got a Checkbutton packed with side=LEFT. I expected the Checkbuttons to be flush with the left edge of the window, but they're not, and it looks a little gross. How do I get them

RE: removing comments form a file

2005-01-03 Thread Batista, Facundo
Title: RE: removing comments form a file [Noud Aldenhoven] #- Hello everyone, #- #- I was wondering how to remove comments away form a file. I remade it: #!/usr/bin/env python import sys import time helptext = usage: python rmcomment oldfile newfile

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

2005-01-03 Thread michele . simionato
(Not sure if my other message arrived) I am guilty of using this idiom, too. The standard library http://www.python.org/dev/doc/devel/lib/module-sys.html#l2h-396 says: __stdin__ __stdout__ __stderr__ These objects contain the original values of stdin, stderr and stdout at the start of the

Tkinter zoom box

2005-01-03 Thread Philippe C. Martin
Hi, I have the following convern: I have Tkinter applications that require a zoom box, and have had the following behavior without changing a line of code: 1) Mandrake 10.0/KDE 3.2/Python 2.3: no zoom box 2) Mandrake 10.0/KDE 3.2/Python 2.4: zoom box shows 3) Mandrake 10.1/KDE 3.3/Python 2.4:

Industrial organization (was: The Industry choice)

2005-01-03 Thread Cameron Laird
In article [EMAIL PROTECTED], Alex Martelli [EMAIL PROTECTED] wrote: Bulba! [EMAIL PROTECTED] wrote: True. I have a bit of interest in economics, so I've seen e.g. this example - why is it that foreign branches of companies tend to cluster themselves in one city or country (e.g. It's not just

Re: The Industry choice

2005-01-03 Thread Cameron Laird
In article [EMAIL PROTECTED], Terry Reedy [EMAIL PROTECTED] 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

Compiler benefits (was: The Industry choice)

2005-01-03 Thread Cameron Laird
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Roy Smith wrote: I think you've hit the nail on the head. In awk (and perl, and most shells, and IIRC, FORTRAN), using an undefined variable silently gets you a default value (empty string or zero). This tends to propagate errors and make

Re: Tkinter zoom box

2005-01-03 Thread Eric Brunel
Philippe C. Martin wrote: Hi, I have the following convern: I have Tkinter applications that require a zoom box, and have had the following behavior without changing a line of code: 1) Mandrake 10.0/KDE 3.2/Python 2.3: no zoom box 2) Mandrake 10.0/KDE 3.2/Python 2.4: zoom box shows 3) Mandrake

Re: removing comments form a file

2005-01-03 Thread [EMAIL PROTECTED]
You cold do something like this: import re commentpattern = re.compile('.*(?=//)|.*(?!//)') stringwithcomment = 'Blah di blah // some comment' match = commentpattern.match(stringwithcomment) match.group() 'Blah di blah ' stringwithoutcomment = 'Blah di blah' match =

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

2005-01-03 Thread Ron Garret
In article [EMAIL PROTECTED], Just [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Simo Melenius [EMAIL PROTECTED] wrote: I've sometimes replaced sys.stdout (and/or sys.stderr) to capture/redirect debugging information in existing code that has unwisely just printed error and

RE: Compiler benefits (was: The Industry choice)

2005-01-03 Thread Batista, Facundo
Title: RE: Compiler benefits (was: The Industry choice) [EMAIL PROTECTED] #- I think your point was that the checking present in modern Fortran #- compilers, or PyCheckers, but absent from core Python, is a net #- benefit. That I grant. I'm reluctant to argue for a change in #- Python. I

Tkinter zoom box = maximize/unmaximize box/button

2005-01-03 Thread Philippe C. Martin
By zoom box I meant one of the top right button/box one uses to maximize/unmaximize the current window. -- * Philippe C. Martin SnakeCard LLC www.snakecard.com * -- http://mail.python.org/mailman/listinfo/python-list

Re: Python! Is! Truly! Amazing!

2005-01-03 Thread Ron Garret
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: Tkinter (OOP?) help

2005-01-03 Thread 3c273
Mike Meyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Every time you call newwindow, you rebind self.new to the window just created. So any close button that works will close the last window opened. You need to create a separate class for new windows, each with it's own

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

2005-01-03 Thread Cameron Laird
In article [EMAIL PROTECTED], Mark Carter [EMAIL PROTECTED] wrote: . . . Don't start me! Dammit, too late ... I've noticed that they have an overwhelming obsession with GUIs, too. They design wizards for everything. Damn

Re: Developing Commercial Applications in Python

2005-01-03 Thread It's me
Shaw-PTI (www.pti-us.com) uses Python in their software. See: http://www.pti-us.com/pti/news/index.cfm and search 2004 PSS/E User Group Meeting [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello All, I am trying to convince my client to use Python in his new product. He is

Re: Is it possible to open a dbf

2005-01-03 Thread Helmut Jarausch
Miklós P wrote: Paul Rubin wrote: John Fabiani [EMAIL PROTECTED] writes: I'm wondering if there is a module available that will open a dbf So far (more than a minute) I have discovered a reader only. So if you have a URL or a search string it would be very helpful. TIA John Yes, dBase Python

Re: Frameworks for Non-Content Oriented Web Apps

2005-01-03 Thread mirnazim
Well, I think a we can say that a framework for Non Content Oriented Web Apps is something that can help in (*) creating N tier data aware web applications (*) creating data-aware controls (forms etc.). (*) managing different data sources transparently(ZODB, MySQL,PostGreSQL, etc). (*) de-coupling

Re: Tkinter zoom box = maximize/unmaximize box/button

2005-01-03 Thread Eric Brunel
Philippe C. Martin wrote: By zoom box I meant one of the top right button/box one uses to maximize/unmaximize the current window. This is a known problem in tcl/tk. See http://minilien.com/?7O2BAOm9t0 There is apparently a patch available. Latest tcl/tk versions apparently include the

Re: Developing Commercial Applications in Python

2005-01-03 Thread Richards Noah (IFR LIT MET)
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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

Vancouver Python/Zope/Plone Meeting Reminder

2005-01-03 Thread Paul Prescod
Tuesday January 4th is the first Tuesday of the month and the Vancouver Python, Zope and Plone user's group will have its monthly meeting at ActiveState. The topic is What's new in Python 2.4: Among other things, we will discuss: * Function/method decorators * Generator

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:

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

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,

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 visited).

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: 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 a

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' request =

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. pedant Hopefully one of the site maintainers will read this and

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

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

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 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 be used

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 CGFEDCGFEDCGFEFB Now wait a minute, shouldn't that be... PLAY CGFEDCGFEDCGFEFD ? :^) You tell us :) *** music.py --

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: 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

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

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/PSSE.pdf). It

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 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 can

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 =

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

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, and

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
Aahz wrote: In article [EMAIL PROTECTED], Steve Holden [EMAIL PROTECTED] wrote: Aahz wrote: In article [EMAIL PROTECTED], Paul Rubin http://[EMAIL PROTECTED] wrote: I was pretty skeptical of Java's checked exceptions when I first used them but have been coming around about them. There's just

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 easily

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 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

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 --

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

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

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 http://[EMAIL PROTECTED] wrote: I was pretty skeptical of Java's checked exceptions when I first used them but have been coming around about

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 then not only

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 sorts of

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. pedant Hopefully one of the site maintainers will read this and

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 : python

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 sock.py

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 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

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

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

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 lisp

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

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 searching for

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 as the horror that they

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: 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 does the

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: 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 people

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: 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

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: 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 commercial

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 with a

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: 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 enough like

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 :( --

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 has a GUI,

  1   2   >