Re: sqlstring -- a library to build a SELECT statement

2005-10-20 Thread Jason Stitt
On Oct 19, 2005, at 11:55 PM, [EMAIL PROTECTED] wrote: > > Jason Stitt wrote: > >> >> Using // for 'in' looks really weird, too. It's too bad you can't >> overload Python's 'in' operator. (Can you? It seems to be hard-coded >>

Re: sqlstring -- a library to build a SELECT statement

2005-10-20 Thread Jason Stitt
On Oct 20, 2005, at 2:19 AM, Steve Holden wrote: > Jason Stitt wrote: >> Using // for 'in' looks really weird, too. It's too bad you can't >> overload Python's 'in' operator. (Can you? It seems to be hard-coded >> to iterate through an i

Re: sqlstring -- a library to build a SELECT statement

2005-10-19 Thread Jason Stitt
On Oct 19, 2005, at 9:18 PM, [EMAIL PROTECTED] wrote: > My solution is sqlstring. A single-purpose library: to create SQL > statement objects. These objects (such as sqlstring.Select), represent > complex SQL Statements, but as Python objects. First of all, I like this idea. I've been thinkin

Re: Python vs Ruby

2005-10-19 Thread Jason Stitt
On Oct 19, 2005, at 10:01 PM, Roy Smith wrote: > In article <[EMAIL PROTECTED]>, > "jean-marc" <[EMAIL PROTECTED]> wrote: > >> I'd believe that would be Lua, but then again what is common to one >> might not be to another ;-) >> > > Dang, you're right! Lua's got Ruby beat two-fold! And lack of

Re: Having trouble deleting objects from a list...

2005-10-19 Thread Jason Stitt
On Oct 19, 2005, at 8:16 PM, KraftDiner wrote: > I have a list, and within it, objects are marked for deletion. > However when I iterate through the list to remove objects > not all the marked objects are deleted.. > here is a code portion: > > i = 0 > for obj in self.objLis

Upper/lowercase regex matching in unicode

2005-10-19 Thread Jason Stitt
What's the best way to match uppercase or lowercase characters with a regular expression in a unicode-aware way? Obviously [A-Z] and [a-z] aren't going to cut it. I thought there were character classes of the form ::upper:: or similar syntax, but can't find them in the docs. Maybe I'm getti

Re: UI toolkits for Python

2005-10-17 Thread Jason Stitt
On Oct 17, 2005, at 12:19 PM, Kenneth McDonald wrote: > Web interfaces are missing a lot more than this. Here are just a > few things that cannot be done with web-based interfaces (correct > me where I'm wrong): > > 1) A real word processor. > 2) Keybindings in a web application > 3) Drag and

Re: Problem splitting a string

2005-10-14 Thread Jason Stitt
On Oct 14, 2005, at 11:52 PM, Anthony Liu wrote:I have this simple string:mystr = 'this_NP is_VL funny_JJ'I want to split it and give me a list as['this', 'NP', 'is', 'VL', 'funny', 'JJ']1. I tried mystr.split('_| '), but this gave me:['this_NP is_VL funny_JJ']Try re.split, as in:import rere.split(