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 t

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 c

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

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 st

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 respons

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 produ

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 "print"ed error and warning messages, instead of using > sys.stderr or error logg

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 languag

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 othe

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

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 P

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

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 wh

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

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

Re: Async-signal safe functions in signal handlers (unix)

2005-01-03 Thread Diez B. Roggisch
> So, is there a) any mechanism inside Python that can detect if the > current code is executed in a signal handler, or b) a list of > statements that must not be used in a Python signal handler in order > to avoid glibc function calls that are not async-signal safe? The execution of signal handle

Re: cosmetic Tkinter question

2005-01-03 Thread harold fellermann
On 26.12.2004, at 16:38, 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 gr

Re: Switch statement (was: Lambda going out of fashion)

2005-01-03 Thread TZOTZIOY
On Thu, 23 Dec 2004 19:57:27 GMT, rumours say that rzed <[EMAIL PROTECTED]> might have written: [Why did PEP 275 stall?] >It seems to me that it was regarded as misguidod. QOTPE +1 (PE=Python Era) Oncoming Python book: "Hitchhiker's Guido to the Python Language" -- TZOTZIOY, I speak England v

Re: UserDict deprecated

2005-01-03 Thread Steve Holden
Wolfgang wrote: 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 e

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

Re: Advice request for project

2005-01-03 Thread Steve Holden
John French wrote: I've been interested in Python for a while now but haven't had an opportunity to use / learn it. I'm tasked now with a project at work that might be my first opportunity. I have to write a ~75 concurrent user document storage app. that allows users to scan documents from lo

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

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 "print"ed error and warning messages, instead of using >

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 guess

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 to

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 " def rmcom

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 p

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

2005-01-03 Thread Roman Suzi
Hi all, BTW, Alex Martelli and me have created a PEP 312 some time ago (when the debate of inline if was hot). 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 de

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

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

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 somewher

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

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 1

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

RE: removing comments form a file

2005-01-03 Thread Craig Ringer
On Mon, 2005-01-03 at 11:46 -0300, Batista, Facundo wrote: > - Used file instead of open, to don't read the whole file in memory. [EMAIL PROTECTED] ~]$ python Python 2.3.4 (#1, Oct 26 2004, 16:42:40) .>>> file is open True .>>> print repr(file), repr(open) I'd be interested if you could clarif

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

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: removing comments form a file

2005-01-03 Thread Noud Aldenhoven
Ah, Thank you, I never thaught about the re module. Now I can do some cool stuf. Greetings, Noud Aldenhoven ps. Zal ik een keer langs komen? ;-P [EMAIL PROTECTED] wrote: > You cold do something like this: > import re commentpattern = re.compile('.*(?=//)|.*(?!//)') stringwithc

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! > > > > ;-)

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

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.

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

2005-01-03 Thread Dave Benjamin
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. Well, my vote is still with Ruby-style codeblock syntax, but as a compro

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 Pytho

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

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

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 licenc

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 express

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

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

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

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

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

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

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 scr

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

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

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

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

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

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 applic

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

  1   2   >