Re: push-style templating - an xml-like way to process xhtml

2008-11-05 Thread Glenn Linderman
On approximately 11/3/2008 2:51 PM, came the following characters from the keyboard of has: On 3 Nov 2008, at 18:18, Glenn Linderman wrote: On approximately 11/3/2008 12:20 AM, came the following characters from the keyboard of has: On 2 Nov, 14:06, Tino Wildenhain <[EMAIL PROTECTED]> w

Re: locating the chorus in a MIDI song?

2008-11-05 Thread Tim Rowe
2008/11/4 Banibrata Dutta <[EMAIL PROTECTED]>: > Without pretending to be an expert on the subject of music-theory or > audio-processing, my n00b'ish doubt is -- MIDI, unlike MP3 would be devoid > of voice... and in my overtly simplistic thinking -- presence / absence of > which (i.e. voice) could

Re: Rewriting a bash script in python

2008-11-05 Thread Chris Jones
On Wed, Nov 05, 2008 at 08:12:40PM EST, Tim Rowe wrote: > 2008/11/6 Chris Jones <[EMAIL PROTECTED]>: > > > Begs the question .. how do I tell what is an object-oriented vs. a > > procedural problem? > > Practice, largely, so you're doing the right thing (provided you don't > trust your /real/ bac

Re: damn street venders

2008-11-05 Thread James Mills
On Tue, Nov 4, 2008 at 12:13 AM, Aspersieman <[EMAIL PROTECTED]> wrote: > +1 +1 -- http://mail.python.org/mailman/listinfo/python-list

Re: find an object ancestor

2008-11-05 Thread James Mills
On Mon, Nov 3, 2008 at 7:16 AM, Michel Perez <[EMAIL PROTECTED]> wrote: > HI all: > > imagine something like this: > > class father: >pass > class son( father ): >pass > > I need to know the son ancestor class how can i know this. >>> class Father(object): pass ... >>> class Son(Father): p

Re: damn street venders

2008-11-05 Thread James Mills
On Tue, Nov 4, 2008 at 7:31 AM, Benjamin Kaplan <[EMAIL PROTECTED]> wrote: > I'm pretty sure all of the spam is automated, so your message won't get > through to anyone. It feels good to let our frustration out :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Regexp parser and generator

2008-11-05 Thread George Sakkis
On Nov 4, 3:30 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > George Sakkis wrote: > > Is there any package that parses regular expressions and returns an > > AST ? Something like: > > parse_rx(r'i (love|hate) h(is|er) (cat|dog)s?\s*!+') > > Regex('i ', Or('love', 'hate'), ' h', Or('is', 'er'),

Re: Rewriting a bash script in python

2008-11-05 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Chris Jones wrote: > I'm one of them that need to get their hands dirty a bith .. lack the > power of abstraction. Need to do some building before I can specify. Nothing wrong with rapid prototyping. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: find an object ancestor

2008-11-05 Thread Chris Rebert
On Sun, Nov 2, 2008 at 1:16 PM, Michel Perez <[EMAIL PROTECTED]> wrote: > HI all: > > imagine something like this: > > class father: >pass > class son( father ): >pass > > I need to know the son ancestor class how can i know this. Help on built-in function issubclass in module __builtin__:

Re: Rewriting a bash script in python

2008-11-05 Thread Chris Jones
On Wed, Nov 05, 2008 at 09:21:38PM EST, Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, Marc 'BlackJack' Rintsch > wrote: > > > Well, if it handles your backups it doesn't work. It just pretends until > > you really *need* the backed up data. ;-) > > That's why a backup system need

Re: find an object ancestor

2008-11-05 Thread Michel Perez
Thanks it works OK On Thu, 2008-11-06 at 13:14 +1000, James Mills wrote: > On Mon, Nov 3, 2008 at 7:16 AM, Michel Perez <[EMAIL PROTECTED]> > wrote: > > HI all: > > > > imagine something like this: > > > > class father: > >pass > > class son( father ): > >pass > > > > I need to know the so

Re: Snippets management

2008-11-05 Thread r
On Nov 5, 7:55 pm, [EMAIL PROTECTED] (Edwin) wrote: > Hi there, > > I've been looking for a snippet manager and found PySnippet but it > requires PyGTK. Do you know any other option that doesn't need much? > > I'm sort of new to python and user interfaces seem a bit far for me > right now, that's w

Re: Snippets management

2008-11-05 Thread RP
I would be interested in something like that as well. Can you please post your links? I'm new to python. Well, I've been using it for a few months. GUI Application development would be a highly desire thing for some of my classes right now. I've done some PyGTK and wxPython tuts, but it's not sinki

modifying a codec

2008-11-05 Thread Tim Arnold
Hi, I'm using the codecs module to read in utf8 and write out cp1252 encodings. For some characters I'd like to override the default behavior. For example, the mdash character comes out as the code point \227 and I'd like to translate it as — instead. Example: the file myutf8.txt contains this s

Re: Snippets management

2008-11-05 Thread Edwin B.
r <[EMAIL PROTECTED]> writes: > On Nov 5, 7:55 pm, [EMAIL PROTECTED] (Edwin) wrote: >> Hi there, >> >> I've been looking for a snippet manager and found PySnippet but it >> requires PyGTK. Do you know any other option that doesn't need much? >> >> I'm sort of new to python and user interfaces seem

Re: Snippets management

2008-11-05 Thread Glenn Linderman
On approximately 11/5/2008 8:23 PM, came the following characters from the keyboard of r: I don't use one, but why not take a stab at coding one yourself. Use Tkinter to start, its easy. well documented gotta learn GUI somehow Since you are recommending tkinter, maybe you know what is the stat

Re: damn street venders

2008-11-05 Thread D'Arcy J.M. Cain
On Mon, 3 Nov 2008 16:31:24 -0500 "Benjamin Kaplan" <[EMAIL PROTECTED]> wrote: > I'm pretty sure all of the spam is automated, so your message won't get > through to anyone. Well, it got through to us adding to our spam problem. -- D'Arcy J.M. Cain <[EMAIL PROTECTED]> | Democracy is thr

Re: modifying a codec

2008-11-05 Thread Martin v. Löwis
> The codec is doing its job, but I want to override the codepoint for this > character (plus others) to use the html entity instead (from \227 to > — in this case). > > I see hints writing your own codec and updating the decoding_map, but I > could use some more detail. > > Is that the best

Re: subprocess and PPID

2008-11-05 Thread Michele Petrazzo
Jorgen Grahn wrote: On Wed, 5 Nov 2008 08:19:34 -0800 (PST), [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: On Nov 5, 5:12 pm, Michele Petrazzo <[EMAIL PROTECTED]> wrote: Hi all, I believe that this is a *nix question, but since I'm developing in python, I'm here. I have a code that execute into

<    1   2