Re: WSGI - How Does It Affect Me?

2006-10-08 Thread fumanchu
Gregory PiƱero wrote: > Examples of how frameworks don't meet my needs sometimes: > 1. Working with SQL Server (Most frameworks seem to at least make it extra > work) I don't know about "most frameworks", but there are certainly some that work with SQL Server. My Dejavu ORM does SQL Server and MS

Re: People's names (was Re: sqlite3 error)

2006-10-08 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, John Machin wrote: > Two problems so far: > (1) If you then assume that you should print the phone directory in > order of family name, that's not appropriate in some places e.g. > Iceland; neither is addressing Jon Jonsson as "Mr Jonsson", and BTW it > can be their

Re: print time comparison: IDLE versus terminal on ultra 20

2006-10-08 Thread MrJean1
On my Ultra 20 box, the test program takes 0.00039982 secs in a terminal window and 0.236839 secs in IDLE, i.e. about 600x slower. This is ActivePython 2.4.3 for Solaris 10 on a 2+ GHz Opteron. A partial explanation for the difference in run time between terminal and IDLE is that IDLE uses thru a

Re: Can't get around "IndexError: list index out of range"

2006-10-08 Thread MonkeeSage
On Oct 8, 3:05 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > No: you are proposing to add features to the sequence interface for > which there are few demonstrable use cases. If I really wanted to find them, how many instances do you think I could find [in the standard lib and community-respected

Re: recommendations for personal journaling application

2006-10-08 Thread Terry Reedy
"Donnie Rhodes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] keyword/keyphrase. > > So what I'm interested in is how this would work. Is this 'event > driven' in nature? I would call it line-input driven -- a special case that is easier to program. > Would I define the bulk of t

Re: testing machine responsiveness

2006-10-08 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Tim Arnold wrote: > try: > s.connect((cpu,7)) > except: > return 0 > try: > s.send('test') > s.recv(128) > s.close() > return 1 > except: > return 0

Dive Into Java?

2006-10-08 Thread erikcw
DiveIntoPython.org was the first book I read on python, and I really got a lot out of it. I need to start learning Java (to maintain a project I've inherited), and was wondering if anyone knew of any similar books for Java? Maybe once I know my way around the language, I can sneak Jython in... :-

Re: recommendations for personal journaling application

2006-10-08 Thread [EMAIL PROTECTED]
before you use re there is a quote I have seen on different boards to remember. So you have a problem and you want to use re now you have two problems. It was someone from thescripts.com that helped me realise how to fix my program without re. (sorry if I have thier website name somewhat wro

Google code search (Was: Names changed to protect the guilty)

2006-10-08 Thread Nils R Grotnes
Google has a cool new service. http://www.google.com/codesearch You can use regular expressions! (I found at least 13 distinct utilities that used the idiom.) Nils -- http://mail.python.org/mailman/listinfo/python-list

Python license question

2006-10-08 Thread Martitza
Hi. I work for a small company (actually in process of forming) interested in embedding or extending python as part of our commercial non-open-source product. We have legal counsel, but are interested in the spirit as well as the letter of the law. Not much seems to have been written about the p

Re: Google breaks Usenet (was Re: How can I correct an error in an old post?)

2006-10-08 Thread Blair P. Houghton
Bryan Olson wrote: > Blair P. Houghton wrote: > > Usenet isn't just the "send this message to all leaf nodes via tree" > > behavior, > > it's the "show me the message from 1987 or 1988 written by dickie > > sexton where > > he invents the '(*plonk*)' meme" behavior, and a lot of others. > > That m

Re: Google breaks Usenet (was Re: How can I correct an error in an old post?)

2006-10-08 Thread Blair P. Houghton
Bryan Olson wrote: > Aahz wrote: > > The problem is the network effect. In this case, what Google has that > > can't be replicated is the history of posts. > > There's no magic there. Get them the same way Google and > Dejanews got them, plus you might scrape Google, from some > locality with fav

Re: Python license question

2006-10-08 Thread Tim Peters
[Martitza] |> Hi. I work for a small company (actually in process of forming) > interested in embedding or extending python as part of our commercial > non-open-source product. We have legal counsel, but are interested in > the spirit as well as the letter of the law. Not much seems to have > be

Re: Dive Into Java?

2006-10-08 Thread jmdeschamps
erikcw wrote: > DiveIntoPython.org was the first book I read on python, and I really > got a lot out of it. I need to start learning Java (to maintain a > project I've inherited), and was wondering if anyone knew of any > similar books for Java? > > Maybe once I know my way around the language, I

Re: Raw beginner....

2006-10-08 Thread jmdeschamps
Fabio Zadrozny wrote: > On 10/8/06, Colin Lehmann <[EMAIL PROTECTED]> wrote: > > I am new to Python although I have been using Delphi since version one, > > I have been employed as a C and C++ programmer so when I went to Linux > > (Ubuntu 5.10) I thought Python looked pretty good. > > I downloade

Re: Python license question

2006-10-08 Thread Martitza
Mr. Peters: Thank you for so kindly taking the time to resolve my misunderstandings and to elaborate on the intent of the PSF. In particular, thank you for explaining in plain language how the licenses stack. I'm sure our counsel will figure out what a license from a defunct BeOpen means and any

Re: Dive Into Java?

2006-10-08 Thread Jorge Vargas
Sun's Java tutorial, and went your confortable with it. Thinking in Java Bruce Eckel On 8 Oct 2006 15:30:15 -0700, erikcw <[EMAIL PROTECTED]> wrote: > DiveIntoPython.org was the first book I read on python, and I really > got a lot out of it. I need to start learning Java (to maintain a > projec

Re: Python license question

2006-10-08 Thread Tim Peters
[Martitza] > Mr. Peters: Na, my father's dead -- you can call me Uncle Timmy ;-) > Thank you for so kindly taking the time to resolve my misunderstandings > and to elaborate on the intent of the PSF. > > In particular, thank you for explaining in plain language how the > licenses stack. I'm sure

Re: Python license question

2006-10-08 Thread Terry Reedy
"Tim Peters" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm not a lawyer, so can't give legal advice. I can explain intent, > speaking as a Director of the Python Software Foundation. This strikes me as an excellent reply, which would be worth adding to the site as a FAQ (po

Re: WSGI - How Does It Affect Me?

2006-10-08 Thread goon
> Trying to research this on the web now Lots of articles now appearing summarising WSGI ... For definitive reference: [0] Overview: [1] and [2] Reference [0] python.org,

Re: Asychronous execution *with* return codes?

2006-10-08 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, utabintarbo wrote: > Justin wrote: >> If you're on a POSIX system, you could use the usual fork/exec/wait: >> > Sorry. Win32. We are only allowed spoons - no sharp objects. :-P How about installing Cygwin, then, and running under that? -- http://mail.python.org/m

Re: CGI Tutorial

2006-10-08 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Steve Holden wrote: > Credit card numbers should be encrypted in the database, of course, but > they rarely are (even by companies whose reputations imply they ought to > know better). How would encryption help? They'd still have to be decrypted to be used. -- htt

Re: CGI Tutorial

2006-10-08 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Clodoaldo Pinto Neto wrote: > 2006/10/4, Tim Chase <[EMAIL PROTECTED]>: > >> The code is very dangerous...allowing any ol' schmoe to run >> arbitrary code on your server. At the barest of minimums, I'd >> plaster the code with warnings that this is a Very Dangerous

Re: changing a file's permissions

2006-10-08 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Max Erickson wrote: > James <[EMAIL PROTECTED]> wrote: > >> So my question is: how does one change a file's permissions >> inside of python? > > Assuming you want to operate on the output file: > > import os > os.chmod(path, 755) Shouldn't that be os.chmod(p

Re: Why do this?

2006-10-08 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Duncan Booth wrote: > Corrado Gioannini <[EMAIL PROTECTED]> wrote: > >> I often do things like this: >> >> sql = a_complex_select_sql % (id_foo, value_bar, ...) >> cursor.execute(sql) >> >> inside the body of a function (or a class method), where >> a_complex

RE: Why do this?

2006-10-08 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Tim Golden wrote: > [Matthew Warren] > | But nowadays, I see things like this all over the place; > | > | print("There are %s ways to skin a %s" % (number, furryanimal)) > > The outermost brackets are (at the moment) unnecessary in python, > altho' print is slated

Unicode strings, struct, and files

2006-10-08 Thread Tom Plunket
I am building a file with the help of the struct module. I would like to be able to put Unicode strings into this file, but I'm not sure how to do it. The format I'm trying to write is basically this C structure: struct MyFile { int magic; int flags; short otherFlags; char pad[22];

ANN: geopy 0.93 - Geocoding Toolbox for Python

2006-10-08 Thread Brian Beck
Hi everyone, geopy 0.93 was released tonight. What is geopy? == geopy is a geocoding toolbox for Python. It includes support for many popular geocoders including Google Maps, Yahoo! Maps, Virtual Earth, geocoder.us, GeoNames, MediaWiki (with the GIS extension), and Semantic MediaWiki.

Re: dictionary containing a list

2006-10-08 Thread Hendrik van Rooyen
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote: > Steve Holden wrote: > > > One of the fascinating things about c.l.py is that sometimes a questin > > will be posted that makes almost no sense to me, and somebody else will > > casually read the OP's mind, home in on the issue and provide a useful > >

Re: People's names (was Re: sqlite3 error)

2006-10-08 Thread Hendrik van Rooyen
"Lawrence D'Oliveiro" <[EMAIL PROTECTED]> wrote: 8< > I wonder if we need another "middle" field for holding the "bin/binte" part > (could also hold, e.g. "Van" for those names that use this). NO! - I think of my surname as "van Rooyen"

Re: Names changed to protect the guilty

2006-10-08 Thread Hendrik van Rooyen
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote: > On Fri, 06 Oct 2006 18:29:34 -0700, John Machin wrote: > > MonkeeSage wrote: > >> On Oct 6, 8:02 pm, "MonkeeSage" <[EMAIL PROTECTED]> wrote: > >> > it is clearer to you to make the condition explicit ("blah not False"), > >> > >> "blah not False" -> "

Re: Unicode strings, struct, and files

2006-10-08 Thread John Machin
Tom Plunket wrote: > I am building a file with the help of the struct module. > > I would like to be able to put Unicode strings into this file, but I'm > not sure how to do it. > > The format I'm trying to write is basically this C structure: > > struct MyFile > { >int magic; >int flags;

Re: Asychronous execution *with* return codes?

2006-10-08 Thread Fredrik Lundh
utabintarbo wrote: > If so, how do I handle the poll() on long-running processes? Run a > bunch and then start a check loop? or use a thread to keep track of each external process. -- http://mail.python.org/mailman/listinfo/python-list

Re: Access to static members from inside a method decorator?

2006-10-08 Thread Peter Otten
[EMAIL PROTECTED] wrote: > Thanks Peter. Yeah I had thought of that earlier, but wasn't sure if > this is a standard design pattern for what I'm trying to achieve. It > seems ugly to me to use 2 classes when you are essentially describing a > single type. To me both Exposed and ExposedType lo

<    1   2