Re: Python blogging software

2006-09-13 Thread Cliff Wells
On Wed, 2006-09-13 at 00:29 -0700, Cliff Wells wrote: > Anyone aware of any functional (doesn't need to be complete, beta is > fine) blog software written in Python? Hmph. And as soon as I hit send I find http://wiki.python.org/moin/PythonBlogSoftware Okay, so is there any *n

Re: Python blogging software

2006-09-13 Thread Cliff Wells
On Wed, 2006-09-13 at 08:22 -0700, Fuzzyman wrote: > Cliff Wells wrote: > > On Wed, 2006-09-13 at 00:29 -0700, Cliff Wells wrote: > > > > > Anyone aware of any functional (doesn't need to be complete, beta is > > > fine) blog software written in Python? >

Re: Are Python's reserved words reserved in places they dont need to be?

2006-09-13 Thread Cliff Wells
On Wed, 2006-09-13 at 10:30 +0200, Fredrik Lundh wrote: > Antoon Pardon wrote: > > > One place where I would use such a feature is in a unittest > > package. I think being able to write self.assert or self.raise > > looks better than having to append an underscore. > > patch here: > > http://ma

Re: Python blogging software

2006-09-14 Thread Cliff Wells
On Wed, 2006-09-13 at 19:28 +0200, Irmen de Jong wrote: > Cliff Wells wrote: > > I'm currently using Frog, and it's decent, but lacks some fundamental > > features (tags for one). Since Irmen is probably going to scrap it > > anyway, I'm kind of fishing about

Re: Why not event-driven packages in other than the main thread?

2006-09-14 Thread Cliff Wells
On Thu, 2006-09-14 at 11:13 +0200, Tor Erik wrote: > Hi, > > I've developed an application were I've used Tkinter for the GUI. > When I ran the GUI in another thread than the main, it kept locking > up. > I experienced similar problems with Twisted. > > Both of these tools are event-based, so I g

Re: Why not event-driven packages in other than the main thread?

2006-09-14 Thread Cliff Wells
On Thu, 2006-09-14 at 03:22 -0700, Cliff Wells wrote: > They probably use signals (Twisted I'm sure does) and it's documented > that signals don't work with threads: > > http://docs.python.org/lib/module-signal.html Er, specifically, they only work with the main t

Python extensions on Win32

2006-09-25 Thread Cliff Wells
For various sundry reasons, I find myself needing to deliver a Windows-based Python app. I also chose Python 2.5 for this platform. The app has several requirements, all of which are available for Python 2.5/Win32 except one: pycurl. So I decided to try building the source but as it turns out, b

Re: merits of Lisp vs Python

2006-12-11 Thread Cliff Wells
On Sun, 2006-12-10 at 01:28 -0800, Kay Schluehr wrote: > Who really wants to write web apps? Web apps are just an excuse for > Pythonistas to write web frameworks. I've been lurking, waiting for the right moment to toss in my two cents, and finally, and here it is. I've been using Python heavi

Re: merits of Lisp vs Python

2006-12-11 Thread Cliff Wells
On Mon, 2006-12-11 at 08:11 -0800, [EMAIL PROTECTED] wrote: > Bill Atkins wrote: > > > On the plus side, Python makes less demands on the > > > capabilities of the editor. All you really need > > > is block-shifting commands. Bracket matching is > > > handy for expressions but not vital, and you >

Re: merits of Lisp vs Python

2006-12-11 Thread Cliff Wells
On Sat, 2006-12-09 at 00:26 -0800, hankhero wrote: > The Common-Lisp object systems has all and more OO-features, some which > you never probably have thought of before. Here's one: > Inheritance lets you specialise a method so a rectangle and a circle > can have a different Draw method. If you wo

Re: template engine

2007-01-13 Thread Cliff Wells
piotr wrote: > On Sat, 13 Jan 2007 16:42:16 -0200, Jorge Godoy wrote: > >> Take a look at Kid (http://www.kid-templating.org/) and Genshi >> (http://genshi.edgewall.org/). > > I've already done a short look at kid, but to be honest I don't like it's > XML/Python syntax. I strongly prefer idea fro

Re: Type casting a base class to a derived one?

2007-01-24 Thread Cliff Wells
On Thu, 2007-01-11 at 08:41 -0600, Chris Mellon wrote: > On 11 Jan 2007 15:01:48 +0100, Neil Cerutti <[EMAIL PROTECTED]> wrote: > > On 2007-01-11, Frederic Rentsch <[EMAIL PROTECTED]> wrote: > > > If I derive a class from another one because I need a few extra > > > features, is there a way to prom

Re: Type casting a base class to a derived one?

2007-01-24 Thread Cliff Wells
On Wed, 2007-01-24 at 12:57 -0600, Chris Mellon wrote: > > In Python, you can do this simply by re-assigning the __class__. I'm > not convinced that your type system makes sense, here though. Any > reasonable ORM should be able to persist and reload an object without > losing the type information

Re: Type casting a base class to a derived one?

2007-01-24 Thread Cliff Wells
On Wed, 2007-01-24 at 11:37 -0800, Cliff Wells wrote: > > class Person: # assume this is something from the ORM > name = "Kenny" > > class PersonRow ( Person ): > pass > > def flatten_person ( p ): > return "omg, you've kil

Re: ANN: Dejavu 1.5.0RC1

2007-01-24 Thread Cliff Wells
On Wed, 2007-01-24 at 14:57 -0800, Robert Brewer wrote: > 1. Expressions: pure Python lambda querying. This is perhaps the most >appealing feature of Dejavu. Actually I just went and looked and personally I find the documentation the most appealing feature. Regards, Cliff -- http://mail.p

Re: How to sort using hash's key?

2007-01-31 Thread Cliff Wells
On Thu, 2007-02-01 at 04:54 +0800, JoJo wrote: > I want to sort a dict via its key,but I have no idea on how to do it. > Please help me,thanks. You can't. There is, however, a recipe for an "ordered dict" on ASPN: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/438823 > 3webXS HiSpeed

Re: Some "pythonic" suggestions for Python

2007-11-09 Thread Cliff Wells
On Thu, 2007-11-08 at 15:00 -0500, Frank Samuelson wrote: > I love Python, and it is one of my 2 favorite > languages. I would suggest that Python steal some > aspects of the S language. In general, I agree that Python has some antiquated concepts at its core (statements being a major one) and th

Re: Is anyone happy with csv module?

2007-12-11 Thread Cliff Wells
On Wed, 2007-12-12 at 09:50 +1100, Ben Finney wrote: > "massimo s." <[EMAIL PROTECTED]> writes: > > Yes, but it's natural for a spreadsheet-like thing to have organized > > columns of data, often. > > Perhaps, but that's not relevant. CSV is a serialisation format for > tabular data, and is only

Re: Is anyone happy with csv module?

2007-12-14 Thread Cliff Wells
On Wed, 2007-12-12 at 07:04 -0800, massimo s. wrote: > If by "thoroughly" you mean "it actually describes technically what it > is and does but not how to really do things", yes, it is thoroughly > documented. > The examples section is a joke. Actually I rarely use the csv module these days, but

Re: Default parameter for a method

2008-04-16 Thread Cliff Wells
On Wed, 2008-04-16 at 13:47 -0500, Larry Bates wrote: > [EMAIL PROTECTED] wrote: > > I wanted to know if there's any way to create a method that takes a > > default parameter, and that parameter's default value is the return > > value of another method of the same class. For example: > > > > clas

<    1   2